#include <Sbend.H>
|
static constexpr auto | name = "Sbend" |
|
◆ PType
◆ Sbend()
impactx::Sbend::Sbend |
( |
amrex::ParticleReal const |
ds, |
|
|
amrex::ParticleReal const |
rc, |
|
|
int const |
nslice |
|
) |
| |
|
inline |
An ideal sector bend
- Parameters
-
ds | Segment length in m. |
rc | Radius of curvature in m. |
nslice | number of slices used for the application of space charge |
◆ ds()
Return the segment length
- Returns
- value in meters
◆ nslice()
Number of slices used for the application of space charge
- Returns
- positive integer
◆ operator()() [1/2]
This is a sbend functor, so that a variable of this type can be used like a sbend 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_ds
amrex::ParticleReal impactx::Sbend::m_ds |
|
private |
◆ m_nslice
int impactx::Sbend::m_nslice |
|
private |
◆ m_rc
amrex::ParticleReal impactx::Sbend::m_rc |
|
private |
◆ name
constexpr auto impactx::Sbend::name = "Sbend" |
|
static |
The documentation for this struct was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/impactx/checkouts/22.12/src/particles/elements/Sbend.H