OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Cyclotron::RFPhaseCache Struct Reference

Public Member Functions

 RFPhaseCache ()
 

Public Attributes

double t [size]
 
double cosPhase [size]
 
double sinPhase [size]
 
int next = 0
 

Static Public Attributes

static constexpr int size = 4
 

Detailed Description

cos and sin of the RF phase of one RF map for the last few times t. Within one RK4 step every particle asks for the same three times (t, t+h/2, t+h), so this turns two transcendental calls per map per field evaluation into a lookup. BANDRF only: there the phase depends on nothing but t.

Definition at line 323 of file Cyclotron.h.

Constructor & Destructor Documentation

◆ RFPhaseCache()

Cyclotron::RFPhaseCache::RFPhaseCache ( )

Definition at line 121 of file Cyclotron.cpp.

References cosPhase, sinPhase, size, and t.

Member Data Documentation

◆ cosPhase

double Cyclotron::RFPhaseCache::cosPhase[size]

Definition at line 326 of file Cyclotron.h.

Referenced by Cyclotron::rfPhase(), and RFPhaseCache().

◆ next

int Cyclotron::RFPhaseCache::next = 0

Definition at line 328 of file Cyclotron.h.

Referenced by Cyclotron::rfPhase().

◆ sinPhase

double Cyclotron::RFPhaseCache::sinPhase[size]

Definition at line 327 of file Cyclotron.h.

Referenced by Cyclotron::rfPhase(), and RFPhaseCache().

◆ size

constexpr int Cyclotron::RFPhaseCache::size = 4
staticconstexpr

Definition at line 324 of file Cyclotron.h.

Referenced by Cyclotron::rfPhase(), and RFPhaseCache().

◆ t

double Cyclotron::RFPhaseCache::t[size]

Definition at line 325 of file Cyclotron.h.

Referenced by Cyclotron::rfPhase(), and RFPhaseCache().


The documentation for this struct was generated from the following files: