|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
|
Particle reference data. More...
#include <PartData.h>

Public Member Functions | |
| PartData (double charge, double mass, double momentum) | |
| Constructor. | |
| PartData () | |
| KOKKOS_INLINE_FUNCTION double | getQ () const |
| The constant charge per particle. | |
| KOKKOS_INLINE_FUNCTION double | getM () const |
| The constant mass per particle. | |
| double | getP () const |
| The constant reference momentum per particle. | |
| double | getE () const |
| The constant reference Energy per particle. | |
| double | getBeta () const |
| The relativistic beta per particle. | |
| double | getGamma () const |
| The relativistic gamma per particle. | |
| void | setP (double p) |
| Set reference momentum. | |
| void | setE (double E) |
| Set reference energy. | |
| void | setBeta (double beta) |
| Set beta. | |
| void | setGamma (double gamma) |
| Set gamma. | |
| void | setM (double m) |
| Set reference mass expressed in eV/c^2. | |
| void | setQ (double q) |
| Set reference charge expressed in proton charges,. | |
| double | getAnomaly () const |
| void | setAnomaly (double a) |
Protected Attributes | |
| double | charge |
| double | mass |
| double | beta |
| double | gamma |
| double | anomaly = 0.0 |
Particle reference data.
Definition at line 37 of file PartData.h.
| PartData::PartData | ( | double | charge, |
| double | mass, | ||
| double | momentum | ||
| ) |
Constructor.
Definition at line 28 of file PartData.cpp.
References charge, mass, and setP().

| PartData::PartData | ( | ) |
|
inline |
The magnetic moment anomaly G = (g - 2) / 2 for this species. Zero by default; populated by Beam::update() when PARTICLE is set.
Definition at line 92 of file PartData.h.
References anomaly.
Referenced by ParallelTracker::evolveSpinTBMT().
|
inline |
|
inline |
The constant reference Energy per particle.
Definition at line 113 of file PartData.h.
|
inline |
| KOKKOS_INLINE_FUNCTION double PartData::getM | ( | ) | const |
The constant mass per particle.
Definition at line 109 of file PartData.h.
References mass.
Referenced by BendBase::calcDesignRadius(), BendBase::calcFieldAmplitude(), BendBase::calcGamma(), ParallelTracker::evolveSpinTBMT(), ParallelTracker::execute(), CavityAutophaser::getPhaseAtMaxEnergy(), CavityAutophaser::guessCavityPhase(), OrbitThreader::integrate(), ParallelTracker::kickParticles(), OrbitThreader::setDesignEnergy(), PartBunch< T, Dim >::setReference(), ParticleContainer< T, Dim >::setReference(), CavityAutophaser::track(), RFCavity::trackOnAxisParticle(), Beam::update(), and ParallelTracker::updateReferenceParticles().
|
inline |
The constant reference momentum per particle.
Definition at line 111 of file PartData.h.
References beta, gamma, and mass.
Referenced by ParallelTracker::execute(), Beam::getMomentum(), and Beam::print().
| KOKKOS_INLINE_FUNCTION double PartData::getQ | ( | ) | const |
The constant charge per particle.
Definition at line 107 of file PartData.h.
References charge.
Referenced by ParallelTracker::evolveSpinTBMT(), CavityAutophaser::getPhaseAtMaxEnergy(), CavityAutophaser::guessCavityPhase(), OrbitThreader::integrate(), ParallelTracker::kickParticles(), CavityAutophaser::track(), RFCavity::trackOnAxisParticle(), and ParallelTracker::updateReferenceParticles().
|
inline |
| void PartData::setBeta | ( | double | beta | ) |
| void PartData::setE | ( | double | E | ) |
Set reference energy.
Definition at line 55 of file PartData.cpp.
References beta, gamma, and mass.
Referenced by Beam::update().
| void PartData::setGamma | ( | double | gamma | ) |
|
inline |
Set reference mass expressed in eV/c^2.
Definition at line 85 of file PartData.h.
References mass.
Referenced by Beam::update().
| void PartData::setP | ( | double | p | ) |
Set reference momentum.
Definition at line 41 of file PartData.cpp.
References beta, gamma, and mass.
Referenced by PartData(), and Beam::update().
|
inline |
Set reference charge expressed in proton charges,.
Definition at line 88 of file PartData.h.
References charge.
Referenced by Beam::update().
|
protected |
Definition at line 101 of file PartData.h.
Referenced by getAnomaly(), and setAnomaly().
|
protected |
Definition at line 99 of file PartData.h.
Referenced by getBeta(), getP(), PartData(), setBeta(), setE(), setGamma(), and setP().
|
protected |
Definition at line 97 of file PartData.h.
Referenced by getQ(), PartData(), PartData(), and setQ().
|
protected |
Definition at line 100 of file PartData.h.
Referenced by getE(), getGamma(), getP(), PartData(), setBeta(), setE(), setGamma(), and setP().
|
protected |
Definition at line 98 of file PartData.h.
Referenced by getE(), getM(), getP(), PartData(), PartData(), setE(), setM(), and setP().