#include <CFbend.H>
|
| CFbend (amrex::ParticleReal const ds, amrex::ParticleReal const rc, amrex::ParticleReal const k, int const nslice) |
|
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, 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) |
|
| Thick (amrex::ParticleReal const ds, int const nslice) |
|
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE int | nslice () const |
|
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::ParticleReal | ds () const |
|
void | finalize () |
|
|
static constexpr auto | name = "CFbend" |
|
|
amrex::ParticleReal | m_rc |
|
amrex::ParticleReal | m_k |
| bend radius in m More...
|
|
◆ PType
◆ CFbend()
impactx::CFbend::CFbend |
( |
amrex::ParticleReal const |
ds, |
|
|
amrex::ParticleReal const |
rc, |
|
|
amrex::ParticleReal const |
k, |
|
|
int const |
nslice |
|
) |
| |
|
inline |
An combined-function bend, consisting of an ideal sector bend with an upright quadrupole focusing component.
- Parameters
-
ds | Segment length in m. |
rc | Radius of curvature in m. |
k | Quadrupole strength in m^(-2) (MADX convention) = (gradient in T/m) / (rigidity in T-m) k > 0 horizontal focusing k < 0 horizontal defocusing |
nslice | number of slices used for the application of space charge |
◆ operator()() [1/2]
This is a cfbend functor, so that a variable of this type can be used like a cfbend 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_k
amrex::ParticleReal impactx::CFbend::m_k |
|
private |
◆ m_rc
amrex::ParticleReal impactx::CFbend::m_rc |
|
private |
◆ name
constexpr auto impactx::CFbend::name = "CFbend" |
|
staticconstexpr |
The documentation for this struct was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/impactx/checkouts/23.12/src/particles/elements/CFbend.H