OPAL (Object Oriented Parallel Accelerator Library)  2024.1
OPAL
Classes | Variables
Physics Namespace Reference

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

\[ \pi \]

. More...

 
constexpr double two_pi = 2 * pi
 The value of

\[2 \pi \]

. More...

 
constexpr double u_two_pi = 1.0 / two_pi
 The value of

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

. More...

 
constexpr double e = 2.7182818284590452354
 The value of

\[ e \]

. More...

 
constexpr double log10e = 0.43429448190325182765
 The logarithm of $e$ to the base 10. More...
 
constexpr double c = 299792458.0
 The velocity of light in m/s. More...
 
constexpr double mu_0 = 1.25663706212e-06
 The permeability of vacuum in Vs/Am. More...
 
constexpr double epsilon_0 = 8.8541878128e-12
 The permittivity of vacuum in As/Vm. More...
 
constexpr double h_bar = 6.582119569e-25
 The reduced Planck constant in GeVs. More...
 
constexpr double Avo = 6.02214076e23
 The Avogadro's number. More...
 
constexpr double kB = 8.617333262e-5
 Boltzman's constant in eV/K. More...
 
constexpr double E_ryd = 13.605693122994e-9
 Rydberg's energy (Rydberg's constant times hc) in GeV. More...
 
constexpr double a0 = 5.29177210903e-11
 Bohr radius in m. More...
 
constexpr double q_e = 1.602176634e-19
 The elementary charge in As. More...
 
constexpr double alpha = 7.2973525693e-03
 The fine structure constant, no dimension. More...
 
constexpr double amu = 0.93149410242
 The atomic mass unit energy equivalent in GeV. More...
 
constexpr double m_e = 0.51099895000e-03
 The electron rest mass in GeV. More...
 
constexpr double r_e = 2.8179403262e-15
 The classical electron radius in m. More...
 
constexpr double lamda_e = 3.8615926796e-13
 The reduced Compton wave length for electrons in m. More...
 
constexpr double a_e = 1.15965218128e-03
 The magnetic momentum anomaly for electrons, no dimension. More...
 
constexpr double m_p = 0.93827208816e+00
 The proton rest mass in GeV. More...
 
constexpr double r_p = 1.53469857e-18
 The classical proton radius in m. More...
 
constexpr double lamda_p = 2.10308910336e-16
 The reduced Compton wave length for protons in m. More...
 
constexpr double a_p = 1.792847386e+00
 The magnetic momentum anomaly for protons, no dimension. More...
 
constexpr double z_p = 1
 The charge of proton. More...
 
constexpr double m_c = 11.9967074146787 * amu
 The carbon-12 (fully-stripped) rest mass in GeV. More...
 
constexpr double m_hm = 1.00837 * amu
 The H- rest mass in GeV. More...
 
constexpr double m_u = 237.999501 * amu
 The uranium-238 (fully-stripped) rest mass in GeV. More...
 
constexpr double m_mu = 0.1056583755
 The muon rest mass in GeV. More...
 
constexpr double m_d = 2.013553212745 * amu
 The deuteron rest mass in GeV. More...
 
constexpr double m_xe = 128.87494026 * amu
 The xenon-129 (fully-stripped) rest mass in GeV. More...
 
constexpr double m_alpha = 4.001506179127 * amu
 The alpha particle rest mass in GeV. More...
 
constexpr double m_h = 1.00782503224 * amu
 The hydrogen atom rest mass in GeV. More...
 
constexpr double m_h2p = 2.01510 * amu
 The H2+ rest mass in GeV. More...
 
constexpr double m_h3p = 3.02293 * amu
 The H3+ rest mass in GeV. More...
 
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

constexpr double Physics::a0 = 5.29177210903e-11
constexpr double Physics::a_e = 1.15965218128e-03

The magnetic momentum anomaly for electrons, no dimension.

Definition at line 87 of file Physics.h.

constexpr double Physics::a_p = 1.792847386e+00

The magnetic momentum anomaly for protons, no dimension.

Definition at line 99 of file Physics.h.

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

The atomic mass unit energy equivalent in GeV.

Definition at line 75 of file Physics.h.

Referenced by BeamStrippingPhysics::computeCrossSection(), ScatteringPhysics::computeEnergyLoss(), and RealConstant::RealConstant().

constexpr double Physics::Avo = 6.02214076e23

The Avogadro's number.

Definition at line 57 of file Physics.h.

Referenced by ScatteringPhysics::computeEnergyLoss().

constexpr double Physics::c = 299792458.0

The velocity of light in m/s.

Definition at line 45 of file Physics.h.

Referenced by _Astra1DDynamic::_Astra1DDynamic(), _Astra1DDynamic_fast::_Astra1DDynamic_fast(), Source::apply(), FlexibleCollimator::apply(), Degrader::apply(), GreenWakeFunction::apply(), Monitor::apply(), Corrector::apply(), ParallelTTracker::applyFractionalStep(), Degrader::applyToReferenceParticle(), Monitor::applyToReferenceParticle(), DiscTypeBase::appType(), ParallelTTracker::autophaseCavities(), avl_at(), avl_index(), avl_search_closest(), FDoubleEigen< N >::balance(), IndexedBareFieldIterator< T, D >::beginLField(), BendBase::calcDesignRadius(), BendBase::calcFieldAmplitude(), CalcParallelPeriodicDomain(), Bend2D::calculateBendAngle(), Bend2D::calculateRefTrajectory(), centeredInitialize(), PluginElement::changeWidth(), OrbitThreader::checkElementLengths(), OutputPlane::checkOne(), interpolation::complex(), ScatteringPhysics::computeCoulombScattering(), BeamStrippingPhysics::computeCrossSectionBohr(), DistributionMoments::computeDebyeLength(), ScatteringPhysics::computeEnergyLoss(), ParallelCyclotronTracker::computePathLengthUpdate(), PartBunch::computeSelfFields(), PartBunch::computeSelfFields_cycl(), AmrBoxLib::computeSelfFields_cycl(), _FM1DDynamic::convertHeaderData(), _FM1DDynamic_fast::convertHeaderData(), ScatteringPhysics::copyFromBunch(), RK4< FieldFunction, Arguments >::derivate_m(), DiscTypeBase::dim(), FTps< T, N >::divide(), Probe::doCheck(), Stripper::doCheck(), OutputPlane::doCheck(), BeamStrippingPhysics::doPhysics(), Monitor::driftToCorrectPositionAndSave(), Distribution::emitParticles(), OrbitThreader::execute(), ParallelTTracker::execute(), ExtrapolateAndZeroFaceBCApply(), ExtrapolateFaceBCApply(), BoundaryGeometry::fastIsInside(), ParallelTTracker::findStartPosition(), for_each(), FunctionFaceBCApply(), ParallelCyclotronTracker::gapCrossKick_m(), EurekaAssign< Vektor< T, D > >::get(), EurekaAssign< Tenzor< T, D > >::get(), EurekaAssign< AntiSymTenzor< T, D > >::get(), EurekaAssign< SymTenzor< T, D > >::get(), RFCavity::getAutoPhaseEstimate(), Rotation3D::getAxis(), OutputPlane::getDerivatives(), TravelingWave::getdT(), RFCavity::getdT(), _Astra1DDynamic::getFieldstrength(), _Astra1DDynamic_fast::getFieldstrength(), RFCavity::getMomentaKick(), PortableGraymapReader::getNextPart(), PortableBitmapReader::getNextPart(), CavityAutophaser::getPhaseAtMaxEnergy(), Communicate::getProcesses(), DistributionMoments::getTemperature(), Corrector::goOnline(), interpolation::im(), IpplStats::incCompressionCompareMax(), IpplStats::incCompressionCompares(), VariableRFCavityFringeField::initialiseCoefficients(), SigmaGenerator::initialize(), OrbitThreader::integrate(), OutputPlane::interpolation(), BoundaryGeometry::intersectRayBoundary(), FTps< T, N >::inverse(), Util::isAllDigits(), BorisPusher::kick(), interpolation::m_complex_build(), Matrix3D::Matrix3D(), FArray2D< T, M, N >::operator()(), GreenWakeFunction::Wake::operator()(), Array2D< T >::operator()(), matheval::detail::ConstantFolder< real_t >::operator()(), interpolation::operator*=(), BoundsHolder< T, D >::operator*=(), interpolation::operator+=(), interpolation::operator-(), interpolation::operator-=(), interpolation::operator/=(), operator<<(), BoundsHolder< T, D >::operator=(), SDDS::column::parse(), BoundaryGeometry::partInside(), LOMB_class::period(), PeriodicFaceBCApply(), PETE_apply(), Statement::position(), Statement::print(), ScatteringPhysics::push(), ParallelCyclotronTracker::push(), LF2< FieldFunction, Arguments >::push_m(), interpolation::re(), Bend2D::readFieldMap(), PortableGraymapReader::readImageAscii(), PortableBitmapReader::readImageAscii(), PortableBitmapReader::readImageBinary(), PortableGraymapReader::readImageBinary(), RealConstant::RealConstant(), Util::rewindLinesSDDS(), Offset::rotate(), DiscTypeBase::scalarType(), PartBunchBase< T, Dim >::setBeamFrequency(), Message::setCopy(), PartBunchBase< T, Dim >::setCouplingConstant(), Message::setDelete(), Corrector::setDesignEnergy(), ScatteringPhysics::setTimeStepForLeavingParticles(), SigmaGenerator::SigmaGenerator(), PartBins::sortArray(), PartBunchBase< T, Dim >::switchOffUnitlessPositions(), PartBunchBase< T, Dim >::switchToUnitlessPositions(), Util::toUpper(), OrbitThreader::trackBack(), RFCavity::trackOnAxisParticle(), RBend3D::trackRefParticleThrough(), FLieGenerator< T, N >::transform(), _Fieldmap::typeset_msg(), OpalRBend::update(), OpalSBend::update(), OpalHKicker::update(), OpalSolenoid::update(), OpalSextupole::update(), OpalMultipole::update(), OpalOctupole::update(), OpalQuadrupole::update(), OpalVKicker::update(), OpalKicker::update(), ThickTracker::update_m(), OrbitThreader::updateBoundingBoxWithCurrentPosition(), ParallelTTracker::updateReferenceParticle(), Message::useCommunicate(), ThickTracker::visitMultipole(), ThickTracker::visitSBend(), ParallelTTracker::writePhaseSpace(), H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().

constexpr double Physics::e = 2.7182818284590452354

The value of

\[ e \]

.

Definition at line 39 of file Physics.h.

Referenced by _Astra1DDynamic::_Astra1DDynamic(), _Astra1DDynamic_fast::_Astra1DDynamic_fast(), _Astra1DElectroStatic::_Astra1DElectroStatic(), _Astra1DElectroStatic_fast::_Astra1DElectroStatic_fast(), _Astra1DMagnetoStatic::_Astra1DMagnetoStatic(), _Astra1DMagnetoStatic_fast::_Astra1DMagnetoStatic_fast(), _FM1DDynamic::_FM1DDynamic(), _FM1DProfile2::_FM1DProfile2(), _FM2DDynamic::_FM2DDynamic(), _FM2DElectroStatic::_FM2DElectroStatic(), _FM2DMagnetoStatic::_FM2DMagnetoStatic(), _FM3DDynamic::_FM3DDynamic(), _FM3DMagnetoStatic::_FM3DMagnetoStatic(), _FM3DMagnetoStaticExtended::_FM3DMagnetoStaticExtended(), TrimCoil::applyField(), Beam::Beam(), PyOpal::PyVerticalFFAMagnet::BOOST_PYTHON_MODULE(), PyOpal::PyMultipoleT::BOOST_PYTHON_MODULE(), PyOpal::PyVariableRFCavity::BOOST_PYTHON_MODULE(), PyOpal::PyVariableRFCavityFringeField::BOOST_PYTHON_MODULE(), PyOpal::PyScalingFFAMagnet::BOOST_PYTHON_MODULE(), PyOpal::PyRingDefinition::BOOST_PYTHON_MODULE(), PartBunchBase< T, Dim >::boundp(), CSRWakeFunction::calcPsi(), CSRIGFWakeFunction::calcPsi(), coordinatetransform::CoordinateTransform::calcSCoordinate(), CSRIGFWakeFunction::calculateGreenFunction(), _Fieldmap::checkMap(), OpalSimulation::collectResults(), ParallelTTracker::computeExternalFields(), OpalSimulation::createSymlink_m(), _Astra1D_fast::determineNumSamplingPoints(), Stripper::doPreCheck(), OptimizeCmd::execute(), SampleCmd::execute(), FieldSolver::FieldSolver(), Bend2D::findBendEffectiveLength(), Bend2D::findBendStrength(), ParallelTTracker::findStartPosition(), FixedPisaNsga2< CrossoverOperator, MutationOperator >::FixedPisaNsga2(), Hypervolume::FromFile(), CmdArguments::getArg(), RFCavity::getAutoPhaseEstimateFallback(), Rotation3D::getAxis(), MultipoleTBase::getBs(), MultipoleT::getBs(), MultipoleTBase::getBx(), MultipoleT::getBx(), MultipoleTBase::getBz(), MultipoleT::getBz(), OpalSimulation::getData(), TrackCmd::getDT(), RFCavity::getElementLength(), endfieldmodel::Enge::getEnge(), _FM2DMagnetoStatic::getFieldDerivative(), _FM1DProfile2::getFieldstrength(), _FM2DElectroStatic::getFieldstrength(), _FM2DDynamic::getFieldstrength(), _Astra1DDynamic_fast::getFieldstrength(), MultipoleTBase::getFnDerivS(), MultipoleT::getFnDerivS(), MultipoleTBase::getFnDerivX(), MultipoleT::getFnDerivX(), SDDS::SDDSParser::getInterpolatedValue(), CavityAutophaser::getPhaseAtMaxEnergy(), getQuaternion(), MultipoleTCurvedVarRadius::getRadius(), Bend2D::getSurfaceMesh(), Offset::getTheta(), RootFinderForCSR::hasPositiveRealRoots(), Ifpack2Preconditioner< Level >::init_m(), VariableRFCavity::initialise(), AmrSmoother::initParameter_m(), Mesher::isPointOnLine(), Quaternion::isPure(), Quaternion::isUnit(), SigmaGenerator::match(), Quaternion::normalize(), MapAnalyser::normalizeEigen_m(), OpalFilter::OpalFilter(), OpalOutputPlane::OpalOutputPlane(), RadialPeak::operator()(), ProbeVariable::operator()(), SDDSVariable::operator()(), SumErrSqRadialPeak::operator()(), FromFile::operator()(), MaxNormRadialPeak::operator()(), SumErrSq::operator()(), AntiSymTenzor< T, D >::AssignProxy::operator=(), AntiSymTenzor< T, 1 >::AssignProxy::operator=(), OrbitThreader::OrbitThreader(), mslang::Mask::parse_detail(), mslang::Polygon::parse_detail(), mslang::Rotation::parse_detail(), mslang::Shear::parse_detail(), mslang::Translation::parse_detail(), mslang::Repeat::parse_detail(), mslang::Ellipse::parse_detail(), mslang::Rectangle::parse_detail(), ManyMasterSplit< TopoDiscoveryStrategy >::parseArguments(), Pilot< Opt_t, Sim_t, SolPropagationGraph_t, Comm_t >::parseInputFile(), IndexedBareFieldIterator< T, D >::plugBase(), _Astra1D_fast::readFieldData(), _Astra1DElectroStatic_fast::readFileHeader(), _Astra1DMagnetoStatic_fast::readFileHeader(), _FM1DElectroStatic::readFileHeader(), _FM1DMagnetoStatic::readFileHeader(), _FM1DDynamic::readFileHeader(), _FM1DElectroStatic_fast::readFileHeader(), _FM1DMagnetoStatic_fast::readFileHeader(), _Astra1DDynamic_fast::readFileHeader(), _FM1DDynamic_fast::readFileHeader(), _Astra1DElectroStatic::readMap(), _Astra1DMagnetoStatic::readMap(), _Astra1DDynamic::readMap(), _FM1DProfile2::readMap(), RealConstant::RealConstant(), OrbitThreader::registerElement(), Util::rewindLinesSDDS(), OpalBeamline::save3DInput(), Distribution::setAttributes(), Bend2D::setBendEffectiveLength(), interpolation::ThreeDGrid::setConstantSpacing(), FlexibleCollimator::setDescription(), Cyclotron::setFMHighE(), Cyclotron::setFMLowE(), PartData::setP(), OpalSimulation::setupFSStructure(), _Astra1DElectroStatic_fast::stripFileHeader(), _Astra1DMagnetoStatic_fast::stripFileHeader(), _Astra1DDynamic_fast::stripFileHeader(), TrackCmd::TrackCmd(), OpalSplineTimeDependence::update(), ParallelCyclotronTracker::visitCyclotron(), ThickTracker::visitMultipole(), and ThickTracker::visitSBend().

constexpr double Physics::e0m = 1.75882001076e+11

Definition at line 143 of file Physics.h.

constexpr double Physics::e0mc = e0m / c

Definition at line 145 of file Physics.h.

constexpr double Physics::E_ryd = 13.605693122994e-9

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

Definition at line 63 of file Physics.h.

Referenced by BeamStrippingPhysics::computeCrossSectionNakai(), and BeamStrippingPhysics::computeCrossSectionTabata().

constexpr double Physics::EMASS = 9.1093837015e-31

Definition at line 136 of file Physics.h.

constexpr double Physics::epsilon_0 = 8.8541878128e-12
constexpr double Physics::h_bar = 6.582119569e-25

The reduced Planck constant in GeVs.

Definition at line 54 of file Physics.h.

Referenced by BeamStrippingPhysics::computeCrossSectionBohr(), and BeamStrippingPhysics::evalLorentzStripping().

constexpr double Physics::Ia = 17.045148e+03

Definition at line 141 of file Physics.h.

constexpr double Physics::kB = 8.617333262e-5
constexpr double Physics::lamda_e = 3.8615926796e-13

The reduced Compton wave length for electrons in m.

Definition at line 84 of file Physics.h.

constexpr double Physics::lamda_p = 2.10308910336e-16

The reduced Compton wave length for protons in m.

Definition at line 96 of file Physics.h.

constexpr double Physics::log10e = 0.43429448190325182765

The logarithm of $e$ to the base 10.

Definition at line 42 of file Physics.h.

constexpr double Physics::m_alpha = 4.001506179127 * amu

The alpha particle rest mass in GeV.

Definition at line 123 of file Physics.h.

Referenced by RealConstant::RealConstant().

constexpr double Physics::m_c = 11.9967074146787 * amu

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

Definition at line 105 of file Physics.h.

Referenced by RealConstant::RealConstant().

constexpr double Physics::m_d = 2.013553212745 * amu

The deuteron rest mass in GeV.

Definition at line 117 of file Physics.h.

Referenced by RealConstant::RealConstant().

constexpr double Physics::m_e = 0.51099895000e-03
constexpr double Physics::m_h = 1.00782503224 * amu

The hydrogen atom rest mass in GeV.

Definition at line 126 of file Physics.h.

Referenced by BeamStrippingPhysics::computeCrossSectionNakai().

constexpr double Physics::m_h2p = 2.01510 * amu

The H2+ rest mass in GeV.

Definition at line 129 of file Physics.h.

Referenced by BeamStrippingPhysics::computeCrossSection(), and RealConstant::RealConstant().

constexpr double Physics::m_h3p = 3.02293 * amu

The H3+ rest mass in GeV.

Definition at line 132 of file Physics.h.

constexpr double Physics::m_hm = 1.00837 * amu

The H- rest mass in GeV.

Definition at line 108 of file Physics.h.

Referenced by BeamStrippingPhysics::computeCrossSection(), and RealConstant::RealConstant().

constexpr double Physics::m_mu = 0.1056583755

The muon rest mass in GeV.

Definition at line 114 of file Physics.h.

Referenced by RealConstant::RealConstant().

constexpr double Physics::m_p = 0.93827208816e+00
constexpr double Physics::m_u = 237.999501 * amu

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

Definition at line 111 of file Physics.h.

Referenced by RealConstant::RealConstant().

constexpr double Physics::m_xe = 128.87494026 * amu

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

Definition at line 120 of file Physics.h.

Referenced by RealConstant::RealConstant().

constexpr double Physics::mu_0 = 1.25663706212e-06

The permeability of vacuum in Vs/Am.

Definition at line 48 of file Physics.h.

Referenced by SigmaGenerator::initialize(), _FM3DDynamic::readMap(), _FM2DDynamic::readMap(), and _FM3DH5Block_nonscale::readMap().

constexpr double Physics::PCHARGE = 1.602176634e-19

Definition at line 138 of file Physics.h.

constexpr double Physics::pi = 3.14159265358979323846

The value of

\[ \pi \]

.

Definition at line 30 of file Physics.h.

Referenced by CSRIGFWakeFunction::apply(), CSRWakeFunction::apply(), Cyclotron::apply(), ParallelCyclotronTracker::bunchDumpPhaseSpaceData(), ParallelCyclotronTracker::bunchDumpStatData(), FixedFFTLowPassFilter::calc_derivative(), RelativeFFTLowPassFilter::calc_derivative(), Cyclotron::checkInitialReferenceParticle(), Vacuum::checkPressure(), ScatteringPhysics::computeCoulombScattering(), BeamStrippingPhysics::computeCrossSectionBohr(), ScatteringPhysics::computeEnergyLoss(), _FM1DMagnetoStatic_fast::computeFieldDerivatives(), _FM1DElectroStatic_fast::computeFieldDerivatives(), _FM1DDynamic_fast::computeFieldDerivatives(), _FM1DElectroStatic::computeFieldOnAxis(), _FM1DMagnetoStatic::computeFieldOnAxis(), _FM1DDynamic::computeFieldOnAxis(), DistributionMoments::computePlasmaParameter(), ClosedOrbitFinder< Value_type, Size_type, Stepper >::computeTune(), ParallelCyclotronTracker::deleteParticle(), Distribution::emitParticles(), Bend2D::findIdealBendParameters(), TravelingWave::getAutoPhaseEstimate(), RFCavity::getAutoPhaseEstimate(), RFCavity::getAutoPhaseEstimateFallback(), SigmaGenerator::getEmittances(), _Astra1DDynamic::getFieldDerivative(), _FM1DDynamic::getFieldDerivative(), _FM1DMagnetoStatic::getFieldDerivative(), _FM1DElectroStatic::getFieldDerivative(), _Astra1DDynamic::getFieldstrength(), _Astra1DElectroStatic::getFieldstrength(), _Astra1DMagnetoStatic::getFieldstrength(), CavityAutophaser::getPhaseAtMaxEnergy(), getQuaternion(), ParallelCyclotronTracker::getQuaternionTwoVectors(), Offset::getTheta(), ParallelCyclotronTracker::initDistInGlobalFrame(), TravelingWave::initialise(), RBend3D::initialise(), SigmaGenerator::initialize(), ParallelCyclotronTracker::initializeTracking_m(), ParallelCyclotronTracker::MtsTracker(), GreenWakeFunction::Wake::operator()(), CavityAutophaser::optimizeCavityPhase(), P3MPoissonSolver::P3MPoissonSolver(), OpalElement::printMultipoleStrength(), RealConstant::RealConstant(), TravelingWave::setPhasem(), TrackRun::setupCyclotronTracker(), TrackRun::setupThickTracker(), TrackRun::setupTTracker(), SigmaGenerator::SigmaGenerator(), ParallelCyclotronTracker::visitRing(), H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().

constexpr double Physics::PMASS = 1.67262192369e-27

Definition at line 134 of file Physics.h.

constexpr double Physics::q_e = 1.602176634e-19
constexpr double Physics::r_e = 2.8179403262e-15

The classical electron radius in m.

Definition at line 81 of file Physics.h.

Referenced by ScatteringPhysics::computeEnergyLoss().

constexpr double Physics::r_p = 1.53469857e-18

The classical proton radius in m.

Definition at line 93 of file Physics.h.

constexpr double Physics::two_pi = 2 * pi

The value of

\[2 \pi \]

.

Definition at line 33 of file Physics.h.

Referenced by _Astra1DDynamic::_Astra1DDynamic(), _Astra1DDynamic_fast::_Astra1DDynamic_fast(), _FM2DDynamic::_FM2DDynamic(), _FM3DDynamic::_FM3DDynamic(), Util::angle_0to2pi(), VariableRFCavity::apply(), VariableRFCavityFringeField::apply(), Cyclotron::apply(), Distribution::applyEmissModelAstra(), Distribution::applyEmissModelNonEquil(), ScatteringPhysics::applyRandomRotation(), ScatteringPhysics::applyRotation(), Ring::buildRingSections(), ParallelCyclotronTracker::calculateAngle(), PartBunchBase< T, Dim >::calculateAngle(), _Fieldmap::checkMap(), Vacuum::checkPressure(), ScatteringPhysics::computeCoulombScattering(), _FM1DElectroStatic_fast::computeFieldDerivatives(), _FM1DMagnetoStatic_fast::computeFieldDerivatives(), _Astra1D_fast::computeFieldDerivatives(), _FM1DDynamic_fast::computeFieldDerivatives(), _FM1DDynamic::computeFieldOnAxis(), _FM1DElectroStatic::computeFieldOnAxis(), _FM1DMagnetoStatic::computeFieldOnAxis(), ClosedOrbitFinder< Value_type, Size_type, Stepper >::computeTune(), _FM1DDynamic::convertHeaderData(), _FM1DDynamic_fast::convertHeaderData(), ClosedOrbitFinder< Value_type, Size_type, Stepper >::findOrbitOfEnergy_m(), Distribution::generateBinomial(), Distribution::generateLongFlattopT(), TravelingWave::getAutoPhaseEstimate(), RFCavity::getAutoPhaseEstimate(), RFCavity::getAutoPhaseEstimateFallback(), MeshGenerator::getCylinder(), _Astra1DDynamic::getFieldDerivative(), _FM1DDynamic::getFieldDerivative(), _FM1DElectroStatic::getFieldDerivative(), _FM1DMagnetoStatic::getFieldDerivative(), _Astra1DElectroStatic::getFieldstrength(), _Astra1DMagnetoStatic::getFieldstrength(), _Astra1DDynamic::getFieldstrength(), RFCavity::getMomentaKick(), Bend2D::getOutline(), CavityAutophaser::getPhaseAtMaxEnergy(), _FM3DH5BlockBase::getResonanceFrequency(), Util::getTaitBryantAngles(), Offset::getTheta(), CavityAutophaser::guessCavityPhase(), TravelingWave::initialise(), RFCavity::initialise(), SigmaGenerator::initialize(), Bend2D::inMagnetCentralRegion(), CavityAutophaser::optimizeCavityPhase(), LOMB_class::period(), RealConstant::RealConstant(), ClosedOrbitFinder< Value_type, Size_type, Stepper >::rotate(), Bend2D::setFieldCalcParam(), TravelingWave::setPhasem(), SigmaGenerator::SigmaGenerator(), OpalTravelingWave::update(), OpalCavity::update(), and mslang::Ellipse::writeGnuplot().

constexpr double Physics::u_two_pi = 1.0 / two_pi
constexpr double Physics::z_p = 1

The charge of proton.

Definition at line 102 of file Physics.h.