#include <ChrUniformAcc.H>
|
| ChrAcc (amrex::ParticleReal const ds, amrex::ParticleReal const ez, amrex::ParticleReal const bz, 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 = "ChrAcc" |
|
|
amrex::ParticleReal | m_ez |
|
amrex::ParticleReal | m_bz |
| electric field strength in 1/m More...
|
|
◆ PType
◆ ChrAcc()
impactx::ChrAcc::ChrAcc |
( |
amrex::ParticleReal const |
ds, |
|
|
amrex::ParticleReal const |
ez, |
|
|
amrex::ParticleReal const |
bz, |
|
|
int const |
nslice |
|
) |
| |
|
inline |
Acceleration in a uniform field Ez, with a uniform solenoidal field Bz.
The Hamiltonian is expanded through second order in the transverse variables (x,px,y,py), with the exact pt dependence retained.
- Parameters
-
ds | Segment length in m. |
ez | electric field strength in m^(-1) = (charge * electric field Ez in V/m) / (m*c^2) |
bz | magnetic field strength in m^(-1) = (charge * magnetic field Bz in T) / (m*c) |
nslice | number of slices used for the application of space charge |
◆ operator()() [1/2]
This is a chracc functor, so that a variable of this type can be used like a chracc 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_bz
amrex::ParticleReal impactx::ChrAcc::m_bz |
|
private |
electric field strength in 1/m
◆ m_ez
amrex::ParticleReal impactx::ChrAcc::m_ez |
|
private |
◆ name
constexpr auto impactx::ChrAcc::name = "ChrAcc" |
|
staticconstexpr |
The documentation for this struct was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/impactx/checkouts/23.08/src/particles/elements/ChrUniformAcc.H