|
ImpactX
|
#include <ReferenceParticle.H>
Public Attributes | |
| amrex::ParticleReal | s = 0.0 |
| integrated orbit path length, in meters | |
| amrex::ParticleReal | x = 0.0 |
| horizontal position x, in meters | |
| amrex::ParticleReal | y = 0.0 |
| vertical position y, in meters | |
| amrex::ParticleReal | z = 0.0 |
| longitudinal position z, in meters | |
| amrex::ParticleReal | t = 0.0 |
| clock time * c in meters | |
| amrex::ParticleReal | px = 0.0 |
| momentum in x divided by m*c = beta_x*gamma [unitless] | |
| amrex::ParticleReal | py = 0.0 |
| momentum in y divided by m*c = beta_y*gamma [unitless] | |
| amrex::ParticleReal | pz = 0.0 |
| momentum in z divided by m*c = beta_z*gamma [unitless] | |
| amrex::ParticleReal | pt = 0.0 |
| energy, normalized by rest energy | |
| amrex::ParticleReal | mass = 0.0 |
| reference rest mass, in kg | |
| amrex::ParticleReal | charge = 0.0 |
| reference charge, in C | |
| amrex::ParticleReal | gyromagnetic_anomaly = 0.0 |
| anomalous magnetic moment [unitless] | |
| amrex::ParticleReal | sedge = 0.0 |
| value of s at entrance of the current beamline element | |
This struct stores the reference particle attributes stored in ImpactXParticleContainer
|
inline |
Get reference particle relativistic beta
|
inline |
Get reference particle beta*gamma
|
inline |
Get reference particle charge
|
inline |
Copy the reference particle
Use this if you want to do an operation that modifies the reference particle, but you want to avoid modifying the particle container that it is assigned to.
|
inline |
Get reference particle relativistic gamma
|
inline |
Get reference particle kinetic energy
|
inline |
Get reference particle rest mass expressed in MeV
|
inline |
Get reference particle charge to mass ratio
|
inline |
Reset the reference particle
| keep_mass | do not reset the reference particle mass |
| keep_charge | do not reset the reference particle charge |
|
inline |
Get reference particle magnetic rigidity
|
inline |
Set reference particle charge
| charge_qe | in multiples of the (positive) elementary charge |
|
inline |
Set reference particle anomalous magnetic dipole moment (aka gyromagnetic anomaly).
| gyromagnetic_anomaly_ref | unitless |
|
inline |
Set reference particle kinetic energy
| kin_energy | initial kinetic energy (MeV) |
|
inline |
Set reference particle rest mass
| massE | reference particle rest mass * c^2, expressed as an energy (MeV) |
|
inline |
Set reference particle species by name
Sets charge, mass, and gyromagnetic anomaly for a known particle species.
| species_name | particle species name |
| amrex::ParticleReal impactx::RefPart::charge = 0.0 |
reference charge, in C
| amrex::ParticleReal impactx::RefPart::gyromagnetic_anomaly = 0.0 |
anomalous magnetic moment [unitless]
| amrex::ParticleReal impactx::RefPart::mass = 0.0 |
reference rest mass, in kg
| amrex::ParticleReal impactx::RefPart::pt = 0.0 |
energy, normalized by rest energy
| amrex::ParticleReal impactx::RefPart::px = 0.0 |
momentum in x divided by m*c = beta_x*gamma [unitless]
| amrex::ParticleReal impactx::RefPart::py = 0.0 |
momentum in y divided by m*c = beta_y*gamma [unitless]
| amrex::ParticleReal impactx::RefPart::pz = 0.0 |
momentum in z divided by m*c = beta_z*gamma [unitless]
| amrex::ParticleReal impactx::RefPart::s = 0.0 |
integrated orbit path length, in meters
| amrex::ParticleReal impactx::RefPart::sedge = 0.0 |
value of s at entrance of the current beamline element
| amrex::ParticleReal impactx::RefPart::t = 0.0 |
clock time * c in meters
| amrex::ParticleReal impactx::RefPart::x = 0.0 |
horizontal position x, in meters
| amrex::ParticleReal impactx::RefPart::y = 0.0 |
vertical position y, in meters
| amrex::ParticleReal impactx::RefPart::z = 0.0 |
longitudinal position z, in meters