#include <ShortRF.H>
|
static constexpr auto | name = "ShortRF" |
|
◆ PType
◆ ShortRF()
impactx::ShortRF::ShortRF |
( |
amrex::ParticleReal const |
V, |
|
|
amrex::ParticleReal const |
freq, |
|
|
amrex::ParticleReal const |
phase |
|
) |
| |
|
inline |
A short RF cavity element
- Parameters
-
V | Normalized RF voltage V = maximum energy gain/(m*c^2) |
freq | RF frequency in Hz |
phase | RF synchronous phase of the reference particle in deg phi = 0: maximum energy gain (on-crest) phi = -90 deg: zero-crossing for bunching phi = 90 deg: zero-crossing for debunching |
◆ operator()() [1/2]
This is a shortrf functor, so that a variable of this type can be used like a shortrf function.
- Parameters
-
p | Particle AoS data for positions and cpu/id |
px | particle momentum in x |
py | particle momentum in y |
pt | particle momentum in t |
refpart | reference particle |
◆ operator()() [2/2]
This pushes the reference particle.
- Parameters
-
[in,out] | refpart | reference particle |
◆ m_freq
amrex::ParticleReal impactx::ShortRF::m_freq |
|
private |
normalized (max) RF voltage drop.
◆ m_phase
amrex::ParticleReal impactx::ShortRF::m_phase |
|
private |
◆ m_V
amrex::ParticleReal impactx::ShortRF::m_V |
|
private |
◆ name
constexpr auto impactx::ShortRF::name = "ShortRF" |
|
staticconstexpr |
The documentation for this struct was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/impactx/checkouts/23.09/src/particles/elements/ShortRF.H