OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
Variables
Units Namespace Reference

Variables

constexpr double m2mm = 1e+3
 
constexpr double mm2m = 1 / m2mm
 
constexpr double m2cm = 1e+2
 
constexpr double cm2m = 1 / m2cm
 
constexpr double s2us = 1e+6
 
constexpr double us2s = 1 / s2us
 
constexpr double s2ns = 1e+9
 
constexpr double ns2s = 1 / s2ns
 
constexpr double s2ps = 1e+12
 
constexpr double ps2s = 1 / s2ps
 
constexpr double T2kG = 1e+1
 
constexpr double kG2T = 1 / T2kG
 
constexpr double kV2V = 1e+3
 
constexpr double V2kV = 1 / kV2V
 
constexpr double GeV2eV = 1e+9
 
constexpr double eV2GeV = 1 / GeV2eV
 
constexpr double MeV2eV = 1e+6
 
constexpr double eV2MeV = 1 / MeV2eV
 
constexpr double GeV2MeV = GeV2eV * eV2MeV
 
constexpr double MeV2GeV = 1 / GeV2MeV
 
constexpr double keV2eV = 1e+3
 
constexpr double eV2keV = 1 / keV2eV
 
constexpr double GeV2keV = GeV2eV * eV2keV
 
constexpr double keV2GeV = keV2eV * eV2GeV
 
constexpr double MeV2keV = MeV2eV * eV2keV
 
constexpr double keV2MeV = 1 / MeV2keV
 
constexpr double GeV2kg = 1.0e+9 * Physics::q_e / Physics::c / Physics::c
 
constexpr double kg2GeV = 1 / GeV2kg
 
constexpr double eV2kg = 1.782661921e-36
 
constexpr double MHz2Hz = 1e+6
 
constexpr double Hz2MHz = 1 / MHz2Hz
 
constexpr double GHz2Hz = 1e+9
 
constexpr double Hz2GHz = 1 / GHz2Hz
 
constexpr double Vpm2MVpm = 1e-6
 
constexpr double MVpm2Vpm = 1 / Vpm2MVpm
 
constexpr double A2mA = 1e+3
 
constexpr double mA2A = 1 / A2mA
 
constexpr double rad2mrad = 1e3
 
constexpr double mrad2rad = 1 / rad2mrad
 
constexpr double deg2rad = Physics::pi / 180
 
constexpr double rad2deg = 1 / deg2rad
 

Variable Documentation

◆ A2mA

constexpr double Units::A2mA = 1e+3
constexpr

Definition at line 131 of file Units.h.

Referenced by Distribution::createMatchedGaussDistribution().

◆ cm2m

constexpr double Units::cm2m = 1 / m2cm
constexpr

◆ deg2rad

constexpr double Units::deg2rad = Physics::pi / 180
constexpr

◆ eV2GeV

constexpr double Units::eV2GeV = 1 / GeV2eV
constexpr

◆ eV2keV

constexpr double Units::eV2keV = 1 / keV2eV
constexpr

◆ eV2kg

constexpr double Units::eV2kg = 1.782661921e-36
constexpr

◆ eV2MeV

constexpr double Units::eV2MeV = 1 / MeV2eV
constexpr

◆ GeV2eV

constexpr double Units::GeV2eV = 1e+9
constexpr

◆ GeV2keV

constexpr double Units::GeV2keV = GeV2eV * eV2keV
constexpr

◆ GeV2kg

constexpr double Units::GeV2kg = 1.0e+9 * Physics::q_e / Physics::c / Physics::c
constexpr

Definition at line 104 of file Units.h.

Referenced by BeamStrippingPhysics::evalLorentzStripping().

◆ GeV2MeV

constexpr double Units::GeV2MeV = GeV2eV * eV2MeV
constexpr

Definition at line 80 of file Units.h.

Referenced by Distribution::createMatchedGaussDistribution(), and OpalCyclotron::update().

◆ GHz2Hz

constexpr double Units::GHz2Hz = 1e+9
constexpr

Definition at line 119 of file Units.h.

◆ Hz2GHz

constexpr double Units::Hz2GHz = 1 / GHz2Hz
constexpr

Definition at line 122 of file Units.h.

Referenced by VariableRFCavity::apply(), and VariableRFCavityFringeField::apply().

◆ Hz2MHz

constexpr double Units::Hz2MHz = 1 / MHz2Hz
constexpr

Definition at line 116 of file Units.h.

Referenced by RFCavity::initialise().

◆ keV2eV

constexpr double Units::keV2eV = 1e+3
constexpr

Definition at line 86 of file Units.h.

Referenced by BeamStrippingPhysics::computeCrossSection().

◆ keV2GeV

constexpr double Units::keV2GeV = keV2eV * eV2GeV
constexpr

Definition at line 95 of file Units.h.

◆ keV2MeV

constexpr double Units::keV2MeV = 1 / MeV2keV
constexpr

Definition at line 101 of file Units.h.

Referenced by ScatteringPhysics::computeEnergyLoss().

◆ kg2GeV

constexpr double Units::kg2GeV = 1 / GeV2kg
constexpr

Definition at line 107 of file Units.h.

◆ kG2T

constexpr double Units::kG2T = 1 / T2kG
constexpr

◆ kV2V

constexpr double Units::kV2V = 1e+3
constexpr

Definition at line 62 of file Units.h.

Referenced by ParallelCyclotronTracker::computeExternalFields_m().

◆ m2cm

constexpr double Units::m2cm = 1e+2
constexpr

◆ m2mm

constexpr double Units::m2mm = 1e+3
constexpr

◆ mA2A

constexpr double Units::mA2A = 1 / A2mA
constexpr

Definition at line 134 of file Units.h.

◆ MeV2eV

constexpr double Units::MeV2eV = 1e+6
constexpr

◆ MeV2GeV

constexpr double Units::MeV2GeV = 1 / GeV2MeV
constexpr

Definition at line 83 of file Units.h.

◆ MeV2keV

constexpr double Units::MeV2keV = MeV2eV * eV2keV
constexpr

Definition at line 98 of file Units.h.

Referenced by ScatteringPhysics::computeEnergyLoss().

◆ MHz2Hz

constexpr double Units::MHz2Hz = 1e+6
constexpr

◆ mm2m

constexpr double Units::mm2m = 1 / m2mm
constexpr

◆ mrad2rad

constexpr double Units::mrad2rad = 1 / rad2mrad
constexpr

Definition at line 140 of file Units.h.

Referenced by SigmaGenerator::SigmaGenerator().

◆ MVpm2Vpm

constexpr double Units::MVpm2Vpm = 1 / Vpm2MVpm
constexpr

◆ ns2s

constexpr double Units::ns2s = 1 / s2ns
constexpr

◆ ps2s

constexpr double Units::ps2s = 1 / s2ps
constexpr

Definition at line 53 of file Units.h.

Referenced by Bend2D::readFieldMap(), and PartBins::sortArray().

◆ rad2deg

constexpr double Units::rad2deg = 1 / deg2rad
constexpr

◆ rad2mrad

constexpr double Units::rad2mrad = 1e3
constexpr

◆ s2ns

constexpr double Units::s2ns = 1e+9
constexpr

◆ s2ps

constexpr double Units::s2ps = 1e+12
constexpr

Definition at line 50 of file Units.h.

Referenced by CavityAutophaser::getPhaseAtMaxEnergy().

◆ s2us

constexpr double Units::s2us = 1e+6
constexpr

Definition at line 38 of file Units.h.

◆ T2kG

constexpr double Units::T2kG = 1e+1
constexpr

◆ us2s

constexpr double Units::us2s = 1 / s2us
constexpr

Definition at line 41 of file Units.h.

Referenced by Undulator::apply().

◆ V2kV

constexpr double Units::V2kV = 1 / kV2V
constexpr

Definition at line 65 of file Units.h.

◆ Vpm2MVpm

constexpr double Units::Vpm2MVpm = 1e-6
constexpr