#include <ThinDipole.H>
|
| ThinDipole (amrex::ParticleReal theta, amrex::ParticleReal rc, amrex::ParticleReal dx=0, amrex::ParticleReal dy=0, amrex::ParticleReal rotation_degree=0) |
|
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | operator() (amrex::ParticleReal &AMREX_RESTRICT x, amrex::ParticleReal &AMREX_RESTRICT y, amrex::ParticleReal &AMREX_RESTRICT t, amrex::ParticleReal &AMREX_RESTRICT px, amrex::ParticleReal &AMREX_RESTRICT py, amrex::ParticleReal &AMREX_RESTRICT pt, [[maybe_unused]] uint64_t &AMREX_RESTRICT idcpu, RefPart const &refpart) const |
|
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | operator() (RefPart &AMREX_RESTRICT 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_theta |
|
amrex::ParticleReal | m_rc |
| dipole bending angle (rad) More...
|
|
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
◆ ThinDipole()
impactx::ThinDipole::ThinDipole |
( |
amrex::ParticleReal |
theta, |
|
|
amrex::ParticleReal |
rc, |
|
|
amrex::ParticleReal |
dx = 0 , |
|
|
amrex::ParticleReal |
dy = 0 , |
|
|
amrex::ParticleReal |
rotation_degree = 0 |
|
) |
| |
|
inline |
A general thin-kick dipole element with chromatic effects
This model is equivalent to the model described in Section 3.1 of G. Ripken, F. Schmidt, "A Symplectic Six-Dimensional Thin-Lens Formalism
for Tracking," CERN/SL/95-12 (AP), 1995. It is intended to replicate the thin-lens dipole model in MAD-X.
- Parameters
-
theta | - the total bending angle (degrees) |
rc | - the curvature radius (m) |
dx | horizontal translation error in m |
dy | vertical translation error in m |
rotation_degree | rotation error in the transverse plane [degrees] |
◆ operator()() [1/2]
This is a multipole functor, so that a variable of this type can be used like a multipole function.
- Parameters
-
x | particle position in x |
y | particle position in y |
t | particle position in t |
px | particle momentum in x |
py | particle momentum in y |
pt | particle momentum in t |
idcpu | particle global index (unused) |
refpart | reference particle |
◆ operator()() [2/2]
This pushes the reference particle.
- Parameters
-
[in,out] | refpart | reference particle |
◆ degree2rad
◆ m_rc
amrex::ParticleReal impactx::ThinDipole::m_rc |
dipole bending angle (rad)
◆ m_theta
amrex::ParticleReal impactx::ThinDipole::m_theta |
◆ name
constexpr auto impactx::ThinDipole::name = "ThinDipole" |
|
staticconstexpr |
The documentation for this struct was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/impactx/checkouts/24.03/src/particles/elements/ThinDipole.H