#include <Kicker.H>
|
| Kicker (amrex::ParticleReal xkick, amrex::ParticleReal ykick, UnitSystem unit, amrex::ParticleReal dx=0, amrex::ParticleReal dy=0, amrex::ParticleReal rotation_degree=0) |
|
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | operator() (PType &AMREX_RESTRICT p, amrex::ParticleReal &AMREX_RESTRICT px, amrex::ParticleReal &AMREX_RESTRICT py, amrex::ParticleReal &AMREX_RESTRICT pt, [[maybe_unused]] RefPart const &refpart) const |
|
void | operator() (ImpactXParticleContainer &pc, int step) |
|
void | operator() (ImpactXParticleContainer::iterator &pti, RefPart &AMREX_RESTRICT ref_part) |
|
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | operator() ([[maybe_unused]] RefPart &AMREX_RESTRICT refpart) const |
|
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE int | nslice () const |
|
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::ParticleReal | ds () const |
|
| Alignment (amrex::ParticleReal dx, amrex::ParticleReal dy, amrex::ParticleReal rotation_degree) |
|
| Alignment ()=default |
|
| Alignment (Alignment const &)=default |
|
Alignment & | operator= (Alignment const &)=default |
|
| Alignment (Alignment &&)=default |
|
Alignment & | operator= (Alignment &&rhs)=default |
|
| ~Alignment ()=default |
|
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | shift_in (amrex::ParticleReal &AMREX_RESTRICT x, amrex::ParticleReal &AMREX_RESTRICT y, amrex::ParticleReal &AMREX_RESTRICT px, amrex::ParticleReal &AMREX_RESTRICT py) const |
|
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | shift_out (amrex::ParticleReal &AMREX_RESTRICT x, amrex::ParticleReal &AMREX_RESTRICT y, amrex::ParticleReal &AMREX_RESTRICT px, amrex::ParticleReal &AMREX_RESTRICT py) const |
|
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::ParticleReal | dx () const |
|
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::ParticleReal | dy () const |
|
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::ParticleReal | rotation () const |
|
void | finalize () |
|
|
amrex::ParticleReal | m_dx = 0 |
|
amrex::ParticleReal | m_dy = 0 |
| horizontal translation error [m] More...
|
|
amrex::ParticleReal | m_rotation = 0 |
| vertical translation error [m] More...
|
|
◆ PType
◆ UnitSystem
Enumerator |
---|
dimensionless | |
Tm | in units of the magnetic rigidity of the reference particle
|
◆ Kicker()
impactx::Kicker::Kicker |
( |
amrex::ParticleReal |
xkick, |
|
|
amrex::ParticleReal |
ykick, |
|
|
UnitSystem |
unit, |
|
|
amrex::ParticleReal |
dx = 0 , |
|
|
amrex::ParticleReal |
dy = 0 , |
|
|
amrex::ParticleReal |
rotation_degree = 0 |
|
) |
| |
|
inline |
A thin transverse kicker element, inducing a transverse momentum displacement from the reference orbit.
- Parameters
-
xkick | Strength of horizontal kick |
ykick | Strength of vertical kick |
unit | units of xkick and ykick |
dx | horizontal translation error in m |
dy | vertical translation error in m |
rotation_degree | rotation error in the transverse plane [degrees] |
◆ operator()()
This is a transverse kicker functor, so that a variable of this type can be used like a 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 (unused) |
◆ m_unit
◆ m_xkick
amrex::ParticleReal impactx::Kicker::m_xkick |
|
private |
◆ m_ykick
amrex::ParticleReal impactx::Kicker::m_ykick |
|
private |
◆ name
constexpr auto impactx::Kicker::name = "Kicker" |
|
staticconstexpr |
The documentation for this struct was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/impactx/checkouts/24.02/src/particles/elements/Kicker.H