OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
Physics Namespace Reference

Namespaces

namespace  LinearBreitWheeler
 
namespace  LinearCompton
 
namespace  MuonDecay
 

Classes

class  Air
 
class  AluminaAL2O3
 
class  Aluminum
 
class  Beryllium
 
class  BoronCarbide
 
class  Copper
 
class  Gold
 
class  Graphite
 
class  GraphiteR6710
 
class  Kapton
 
class  Material
 
class  Molybdenum
 
class  Mylar
 
class  Titanium
 
class  Water
 

Variables

constexpr double pi = 3.14159265358979323846
 The value of.
 
constexpr double two_pi = 2 * pi
 The value of.
 
constexpr double u_two_pi = 1.0 / two_pi
 The value of.
 
constexpr double e = 2.7182818284590452354
 The value of.
 
constexpr double log10e = 0.43429448190325182765
 The logarithm of $e$ to the base 10.
 
constexpr double c = 299792458.0
 The velocity of light in m/s.
 
constexpr double mu_0 = 1.25663706212e-06
 The permeability of vacuum in Vs/Am.
 
constexpr double epsilon_0 = 8.8541878128e-12
 The permittivity of vacuum in As/Vm.
 
constexpr double h_bar = 6.582119569e-25
 The reduced Planck constant in GeVs.
 
constexpr double Avo = 6.02214076e23
 The Avogadro's number.
 
constexpr double kB = 8.617333262e-5
 Boltzman's constant in eV/K.
 
constexpr double E_ryd = 13.605693122994e-9
 Rydberg's energy (Rydberg's constant times hc) in GeV.
 
constexpr double a0 = 5.29177210903e-11
 Bohr radius in m.
 
constexpr double q_e = 1.602176634e-19
 The elementary charge in As.
 
constexpr double alpha = 7.2973525693e-03
 The fine structure constant, no dimension.
 
constexpr double amu = 0.93149410242
 The atomic mass unit energy equivalent in GeV.
 
constexpr double m_e = 0.51099895000e-03
 The electron rest mass in GeV.
 
constexpr double r_e = 2.8179403262e-15
 The classical electron radius in m.
 
constexpr double lamda_e = 3.8615926796e-13
 The reduced Compton wave length for electrons in m.
 
constexpr double a_e = 1.15965218128e-03
 The magnetic momentum anomaly for electrons, no dimension.
 
constexpr double m_p = 0.93827208816e+00
 The proton rest mass in GeV.
 
constexpr double r_p = 1.53469857e-18
 The classical proton radius in m.
 
constexpr double lamda_p = 2.10308910336e-16
 The reduced Compton wave length for protons in m.
 
constexpr double a_p = 1.792847386e+00
 The magnetic momentum anomaly for protons, no dimension.
 
constexpr double z_p = 1
 The charge of proton.
 
constexpr double m_c = 11.9967074146787 * amu
 The carbon-12 (fully-stripped) rest mass in GeV.
 
constexpr double m_hm = 1.00837 * amu
 The H- rest mass in GeV.
 
constexpr double m_u = 237.999501 * amu
 The uranium-238 (fully-stripped) rest mass in GeV.
 
constexpr double m_mu = 0.1056583755
 The muon rest mass in GeV.
 
constexpr double tau_mu = 2.1969811e-6
 Muon mean lifetime at rest [s] (PDG)
 
constexpr double a_mu = 1.16592061e-03
 The magnetic moment anomaly for muons, no dimension (PDG, (g-2)/2)
 
constexpr double m_pi = 0.13957039
 The charged pion rest mass in GeV (PDG)
 
constexpr double tau_pi = 2.6033e-8
 Charged pion mean lifetime at rest [s] (PDG)
 
constexpr double m_d = 2.013553212745 * amu
 The deuteron rest mass in GeV.
 
constexpr double m_xe = 128.87494026 * amu
 The xenon-129 (fully-stripped) rest mass in GeV.
 
constexpr double m_alpha = 4.001506179127 * amu
 The alpha particle rest mass in GeV.
 
constexpr double m_h = 1.00782503224 * amu
 The hydrogen atom rest mass in GeV.
 
constexpr double m_h2p = 2.01510 * amu
 The H2+ rest mass in GeV.
 
constexpr double m_h3p = 3.02293 * amu
 The H3+ rest mass in GeV.
 
constexpr double PMASS = 1.67262192369e-27
 
constexpr double EMASS = 9.1093837015e-31
 
constexpr double PCHARGE = 1.602176634e-19
 
constexpr double Ia = 17.045148e+03
 
constexpr double e0m = 1.75882001076e+11
 
constexpr double e0mc = e0m / c
 

Variable Documentation

◆ a0

constexpr double Physics::a0 = 5.29177210903e-11
constexpr

Bohr radius in m.

Definition at line 81 of file Physics.h.

◆ a_e

constexpr double Physics::a_e = 1.15965218128e-03
constexpr

The magnetic momentum anomaly for electrons, no dimension.

Definition at line 102 of file Physics.h.

Referenced by ParticleProperties::getParticleAnomaly().

◆ a_mu

constexpr double Physics::a_mu = 1.16592061e-03
constexpr

The magnetic moment anomaly for muons, no dimension (PDG, (g-2)/2)

Definition at line 135 of file Physics.h.

Referenced by ParticleProperties::getParticleAnomaly().

◆ a_p

constexpr double Physics::a_p = 1.792847386e+00
constexpr

The magnetic momentum anomaly for protons, no dimension.

Definition at line 114 of file Physics.h.

Referenced by ParticleProperties::getParticleAnomaly().

◆ alpha

constexpr double Physics::alpha = 7.2973525693e-03
constexpr

The fine structure constant, no dimension.

Definition at line 87 of file Physics.h.

◆ amu

constexpr double Physics::amu = 0.93149410242
constexpr

The atomic mass unit energy equivalent in GeV.

Definition at line 90 of file Physics.h.

Referenced by RealConstant::RealConstant().

◆ Avo

constexpr double Physics::Avo = 6.02214076e23
constexpr

The Avogadro's number.

Definition at line 72 of file Physics.h.

◆ c

constexpr double Physics::c = 299792458.0
constexpr

The velocity of light in m/s.

Definition at line 60 of file Physics.h.

Referenced by Monitor::apply(), Monitor::apply(), Corrector::apply(), ParticleContainer< T, Dim >::applyFractionalStep(), Monitor::applyToReferenceParticle(), Astra1DDynamic::Astra1DDynamic(), ParallelTracker::autophaseCavities(), BendBase::calcDesignRadius(), BendBase::calcFieldAmplitude(), PluginElement::changeWidth(), OrbitThreader::checkElementLengths(), DistributionMoments::computeDebyeLength(), Astra1DDynamic::computeField(), RK4< FieldFunction, Arguments >::derivate_m(), Monitor::driftToCorrectPositionAndSave(), SpinTBMTPusher::evolve(), OrbitThreader::execute(), ParallelTracker::execute(), ParallelTracker::findStartPositions(), EmittedFromFile::generateLocalParticles(), OpalFlatTop::generateLocalParticles(), FlatTop::generateUniformDisk(), RFCavity::getAutoPhaseEstimate(), TravelingWave::getdT(), RFCavity::getdT(), RFCavity::getMomentaKick(), CavityAutophaser::getPhaseAtMaxEnergy(), DistributionMoments::getTemperature(), Corrector::goOnline(), FlatTop::initDomainDecomp(), OpalFlatTop::initDomainDecomp(), OrbitThreader::integrate(), BorisPusher::kick(), BoundaryGeometry::partInside(), Physics::LinearBreitWheeler::photonEnergyFromWavelengthGeV(), Physics::LinearCompton::photonEnergyFromWavelengthGeV(), LF2< FieldFunction, Arguments >::push_m(), RealConstant::RealConstant(), Util::rewindLinesSDDS(), Corrector::setDesignEnergy(), ParticleContainer< T, Dim >::switchOffUnitlessPositions(), ParticleContainer< T, Dim >::switchToUnitlessPositions(), TEST(), TEST(), TEST(), TEST(), TEST_F(), TEST_F(), FlatTop::testNumEmitParticles(), OrbitThreader::trackBack(), RFCavity::trackOnAxisParticle(), OpalMultipole::update(), OpalQuadrupole::update(), OpalRBend::update(), OpalSBend::update(), OpalSolenoid::update(), OrbitThreader::updateBoundingBoxWithCurrentPosition(), ParallelTracker::updateReferenceParticles(), and H5PartWrapperForPT::writeStepHeader().

◆ e

constexpr double Physics::e = 2.7182818284590452354
constexpr

The value of.

\[ e \]

Definition at line 49 of file Physics.h.

Referenced by RealConstant::RealConstant().

◆ e0m

constexpr double Physics::e0m = 1.75882001076e+11
constexpr

Definition at line 170 of file Physics.h.

◆ e0mc

constexpr double Physics::e0mc = e0m / c
constexpr

Definition at line 172 of file Physics.h.

◆ E_ryd

constexpr double Physics::E_ryd = 13.605693122994e-9
constexpr

Rydberg's energy (Rydberg's constant times hc) in GeV.

Definition at line 78 of file Physics.h.

◆ EMASS

constexpr double Physics::EMASS = 9.1093837015e-31
constexpr

Definition at line 163 of file Physics.h.

◆ epsilon_0

constexpr double Physics::epsilon_0 = 8.8541878128e-12
constexpr

The permittivity of vacuum in As/Vm.

Definition at line 66 of file Physics.h.

Referenced by DistributionMoments::computeDebyeLength(), FieldSolver< T, Dim >::getCouplingConstant(), and H5PartWrapperForPT::writeStepHeader().

◆ h_bar

constexpr double Physics::h_bar = 6.582119569e-25
constexpr

The reduced Planck constant in GeVs.

Definition at line 69 of file Physics.h.

Referenced by Physics::LinearBreitWheeler::photonEnergyFromWavelengthGeV(), and Physics::LinearCompton::photonEnergyFromWavelengthGeV().

◆ Ia

constexpr double Physics::Ia = 17.045148e+03
constexpr

Definition at line 168 of file Physics.h.

◆ kB

constexpr double Physics::kB = 8.617333262e-5
constexpr

Boltzman's constant in eV/K.

Definition at line 75 of file Physics.h.

Referenced by DistributionMoments::getTemperature().

◆ lamda_e

constexpr double Physics::lamda_e = 3.8615926796e-13
constexpr

The reduced Compton wave length for electrons in m.

Definition at line 99 of file Physics.h.

◆ lamda_p

constexpr double Physics::lamda_p = 2.10308910336e-16
constexpr

The reduced Compton wave length for protons in m.

Definition at line 111 of file Physics.h.

◆ log10e

constexpr double Physics::log10e = 0.43429448190325182765
constexpr

The logarithm of $e$ to the base 10.

Definition at line 56 of file Physics.h.

◆ m_alpha

constexpr double Physics::m_alpha = 4.001506179127 * amu
constexpr

The alpha particle rest mass in GeV.

Definition at line 150 of file Physics.h.

Referenced by RealConstant::RealConstant().

◆ m_c

constexpr double Physics::m_c = 11.9967074146787 * amu
constexpr

The carbon-12 (fully-stripped) rest mass in GeV.

Definition at line 120 of file Physics.h.

Referenced by RealConstant::RealConstant().

◆ m_d

constexpr double Physics::m_d = 2.013553212745 * amu
constexpr

The deuteron rest mass in GeV.

Definition at line 144 of file Physics.h.

Referenced by RealConstant::RealConstant().

◆ m_e

◆ m_h

constexpr double Physics::m_h = 1.00782503224 * amu
constexpr

The hydrogen atom rest mass in GeV.

Definition at line 153 of file Physics.h.

◆ m_h2p

constexpr double Physics::m_h2p = 2.01510 * amu
constexpr

The H2+ rest mass in GeV.

Definition at line 156 of file Physics.h.

Referenced by RealConstant::RealConstant().

◆ m_h3p

constexpr double Physics::m_h3p = 3.02293 * amu
constexpr

The H3+ rest mass in GeV.

Definition at line 159 of file Physics.h.

◆ m_hm

constexpr double Physics::m_hm = 1.00837 * amu
constexpr

The H- rest mass in GeV.

Definition at line 123 of file Physics.h.

Referenced by RealConstant::RealConstant().

◆ m_mu

constexpr double Physics::m_mu = 0.1056583755
constexpr

The muon rest mass in GeV.

Definition at line 129 of file Physics.h.

Referenced by Physics::MuonDecay::maxElectronEnergy(), and RealConstant::RealConstant().

◆ m_p

constexpr double Physics::m_p = 0.93827208816e+00
constexpr

The proton rest mass in GeV.

Definition at line 105 of file Physics.h.

Referenced by RealConstant::RealConstant(), and Beam::update().

◆ m_pi

constexpr double Physics::m_pi = 0.13957039
constexpr

The charged pion rest mass in GeV (PDG)

Definition at line 138 of file Physics.h.

◆ m_u

constexpr double Physics::m_u = 237.999501 * amu
constexpr

The uranium-238 (fully-stripped) rest mass in GeV.

Definition at line 126 of file Physics.h.

Referenced by RealConstant::RealConstant().

◆ m_xe

constexpr double Physics::m_xe = 128.87494026 * amu
constexpr

The xenon-129 (fully-stripped) rest mass in GeV.

Definition at line 147 of file Physics.h.

Referenced by RealConstant::RealConstant().

◆ mu_0

constexpr double Physics::mu_0 = 1.25663706212e-06
constexpr

The permeability of vacuum in Vs/Am.

Definition at line 63 of file Physics.h.

Referenced by FM2DDynamic::readMap(), TEST_F(), and TEST_F().

◆ PCHARGE

constexpr double Physics::PCHARGE = 1.602176634e-19
constexpr

Definition at line 165 of file Physics.h.

◆ pi

◆ PMASS

constexpr double Physics::PMASS = 1.67262192369e-27
constexpr

Definition at line 161 of file Physics.h.

◆ q_e

constexpr double Physics::q_e = 1.602176634e-19
constexpr

◆ r_e

constexpr double Physics::r_e = 2.8179403262e-15
constexpr

◆ r_p

constexpr double Physics::r_p = 1.53469857e-18
constexpr

The classical proton radius in m.

Definition at line 108 of file Physics.h.

◆ tau_mu

constexpr double Physics::tau_mu = 2.1969811e-6
constexpr

Muon mean lifetime at rest [s] (PDG)

Definition at line 132 of file Physics.h.

◆ tau_pi

constexpr double Physics::tau_pi = 2.6033e-8
constexpr

Charged pion mean lifetime at rest [s] (PDG)

Definition at line 141 of file Physics.h.

◆ two_pi

constexpr double Physics::two_pi = 2 * pi
constexpr

The value of.

\[2 \pi \]

Definition at line 40 of file Physics.h.

Referenced by Astra1DDynamic::Astra1DDynamic(), OpalFlatTop::buildBirthTimeInventory(), Fieldmap::checkMap(), Astra1DMagnetoStatic::computeField(), VariableRFCavity::computeField(), Astra1DDynamic::computeField(), Physics::LinearCompton::differentialCrossSectionOmegaERF(), FM2DDynamic::FM2DDynamic(), OpalFlatTop::generateLocalParticles(), RFCavity::getAutoPhaseEstimate(), TravelingWave::getAutoPhaseEstimate(), RFCavity::getAutoPhaseEstimateFallback(), MeshGenerator::getCylinder(), Astra1DDynamic::getFieldDerivative(), SinusoidalTimeDependence::getIntegral(), RFCavity::getMomentaKick(), CavityAutophaser::getPhaseAtMaxEnergy(), Util::getTaitBryantAngles(), MeshGenerator::getTube(), CavityAutophaser::guessCavityPhase(), RFCavity::initialise(), TravelingWave::initialise(), LinearComptonBenchmark::integrateLabAngularSpectrum(), LinearComptonBenchmark::integrateLabJointSpectrum(), LinearComptonBenchmark::integrateLabSpectrum(), CavityAutophaser::optimizeCavityPhase(), Physics::LinearBreitWheeler::photonEnergyFromWavelengthGeV(), Physics::LinearCompton::photonEnergyFromWavelengthGeV(), Astra1DDynamic::readMap(), Astra1DMagnetoStatic::readMap(), RealConstant::RealConstant(), Physics::LinearBreitWheeler::sampleEvent(), Physics::LinearCompton::sampleEvent(), FlatTop::setInternalVariables(), OpalFlatTop::setInternalVariables(), TravelingWave::setPhasem(), TEST(), TEST(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), OpalCavity::update(), OpalTravelingWave::update(), and mslang::Ellipse::writeGnuplot().

◆ u_two_pi

constexpr double Physics::u_two_pi = 1.0 / two_pi
constexpr

The value of.

\[ \frac{1}{2} \pi \]

Definition at line 43 of file Physics.h.

◆ z_p

constexpr double Physics::z_p = 1
constexpr

The charge of proton.

Definition at line 117 of file Physics.h.