|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
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 |
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.
| Cyclotron::RFPhaseCache::RFPhaseCache | ( | ) |
| double Cyclotron::RFPhaseCache::cosPhase[size] |
Definition at line 326 of file Cyclotron.h.
Referenced by Cyclotron::rfPhase(), and RFPhaseCache().
| int Cyclotron::RFPhaseCache::next = 0 |
Definition at line 328 of file Cyclotron.h.
Referenced by Cyclotron::rfPhase().
| double Cyclotron::RFPhaseCache::sinPhase[size] |
Definition at line 327 of file Cyclotron.h.
Referenced by Cyclotron::rfPhase(), and RFPhaseCache().
|
staticconstexpr |
Definition at line 324 of file Cyclotron.h.
Referenced by Cyclotron::rfPhase(), and RFPhaseCache().
| double Cyclotron::RFPhaseCache::t[size] |
Definition at line 325 of file Cyclotron.h.
Referenced by Cyclotron::rfPhase(), and RFPhaseCache().