|
ImpactX
|
#include <PlaneXYRot.H>
Public Types | |
| using | PType = ImpactXParticleContainer::ParticleType |
Public Attributes | |
| amrex::ParticleReal | m_phi |
| Public Attributes inherited from impactx::elements::mixin::Alignment | |
| amrex::ParticleReal | m_dx = 0 |
| amrex::ParticleReal | m_dy = 0 |
| horizontal translation error [m] | |
| amrex::ParticleReal | m_rotation = 0 |
| vertical translation error [m] | |
Static Public Attributes | |
| static constexpr auto | type = "PlaneXYRot" |
| Static Public Attributes inherited from impactx::elements::mixin::Named | |
| static constexpr std::nullopt_t | DEFAULT_name = std::nullopt |
| Static Public Attributes inherited from impactx::elements::mixin::LinearTransport< PlaneXYRot > | |
| static constexpr bool | has_linear_transport |
| Static Public Attributes inherited from impactx::elements::mixin::Alignment | |
| static constexpr amrex::ParticleReal | degree2rad |
| static constexpr amrex::ParticleReal | DEFAULT_dx = 0 |
| static constexpr amrex::ParticleReal | DEFAULT_dy = 0 |
| static constexpr amrex::ParticleReal | DEFAULT_rotation_degree = 0 |
Private Attributes | |
| amrex::ParticleReal | m_sin_phi |
| angle of rotation (rad) | |
| amrex::ParticleReal | m_cos_phi |
|
inline |
A simple rotation by an angle phi in the plane transverse to the velocity of the reference particle (x-y plane). This is the linear symplectic map generated by the longitudinal angular momentum J_z.
| phi | angle of rotation in the x-y plane (about the direction of the ref traj) (degrees) |
| dx | horizontal translation error in m |
| dy | vertical translation error in m |
| rotation_degree | rotation error in the transverse plane [degrees] |
| name | a user defined and not necessarily unique name of the element |
|
inline |
Compute and cache the constants for the push.
In particular, used to pre-compute and cache variables that are independent of the individually tracked particle.
| refpart | reference particle |
|
inline |
This is a prot functor, so that a variable of this type can be used like a prot function.
The
| x | particle position in x |
| y | particle position in y |
| t | particle position in t (unused) |
| px | particle momentum in x |
| py | particle momentum in y |
| pt | particle momentum in t (unused) |
| idcpu | particle global index (unused) |
| refpart | reference particle |
|
inline |
Reverse the element (negate rotation angle)
|
inline |
This function returns the linear transport map.
| [in] | refpart | reference particle |
|
private |
| amrex::ParticleReal impactx::elements::PlaneXYRot::m_phi |
|
private |
angle of rotation (rad)
|
staticconstexpr |