#include <Quad.H>
|
| static constexpr auto | name = "Quad" |
| |
◆ PType
◆ Quad()
| impactx::Quad::Quad |
( |
amrex::ParticleReal const |
ds, |
|
|
amrex::ParticleReal const |
k, |
|
|
int const |
nslice |
|
) |
| |
|
inline |
A Quadrupole magnet
- Parameters
-
| ds | Segment length 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 quad functor, so that a variable of this type can be used like a quad 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::Quad::m_k |
|
private |
◆ name
| constexpr auto impactx::Quad::name = "Quad" |
|
staticconstexpr |
The documentation for this struct was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/impactx/checkouts/23.06/src/particles/elements/Quad.H