|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
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 | 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 |
|
constexpr |
Bohr radius in m.
Definition at line 66 of file Physics.h.
Referenced by BeamStrippingPhysics::computeCrossSectionBohr(), and BeamStrippingPhysics::evalLorentzStripping().
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
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 |
The Avogadro's number.
Definition at line 57 of file Physics.h.
Referenced by ScatteringPhysics::computeEnergyLoss().
|
constexpr |
The velocity of light in m/s.
Definition at line 45 of file Physics.h.
Referenced by _Astra1DDynamic::_Astra1DDynamic(), _Astra1DDynamic_fast::_Astra1DDynamic_fast(), Corrector::apply(), Degrader::apply(), FlexibleCollimator::apply(), Monitor::apply(), Source::apply(), ParallelTTracker::applyFractionalStep(), Degrader::applyToReferenceParticle(), Monitor::applyToReferenceParticle(), ParallelTTracker::autophaseCavities(), BendBase::calcDesignRadius(), BendBase::calcFieldAmplitude(), Bend2D::calculateBendAngle(), Bend2D::calculateRefTrajectory(), PluginElement::changeWidth(), OrbitThreader::checkElementLengths(), OutputPlane::checkOne(), ScatteringPhysics::computeCoulombScattering(), BeamStrippingPhysics::computeCrossSectionBohr(), DistributionMoments::computeDebyeLength(), ScatteringPhysics::computeEnergyLoss(), ParallelCyclotronTracker::computePathLengthUpdate(), PartBunch::computeSelfFields(), PartBunch::computeSelfFields(), AmrBoxLib::computeSelfFields_cycl(), AmrBoxLib::computeSelfFields_cycl(), PartBunch::computeSelfFields_cycl(), PartBunch::computeSelfFields_cycl(), _FM1DDynamic::convertHeaderData(), _FM1DDynamic_fast::convertHeaderData(), ScatteringPhysics::copyFromBunch(), RK4< FieldFunction, Arguments >::derivate_m(), PartBunchBase< double, 3 >::destroyT(), OutputPlane::doCheck(), Probe::doCheck(), Stripper::doCheck(), BeamStrippingPhysics::doPhysics(), Monitor::driftToCorrectPositionAndSave(), Distribution::emitParticles(), OrbitThreader::execute(), ParallelTTracker::execute(), ParallelTTracker::findStartPosition(), ParallelCyclotronTracker::gapCrossKick_m(), RFCavity::getAutoPhaseEstimate(), PartBunchBase< double, 3 >::getBoundingSphere(), OutputPlane::getDerivatives(), RFCavity::getdT(), TravelingWave::getdT(), _Astra1DDynamic::getFieldstrength(), _Astra1DDynamic_fast::getFieldstrength(), RFCavity::getMomentaKick(), CavityAutophaser::getPhaseAtMaxEnergy(), DistributionMoments::getTemperature(), Corrector::goOnline(), VariableRFCavityFringeField::initialiseCoefficients(), SigmaGenerator::initialize(), OrbitThreader::integrate(), OutputPlane::interpolation(), BorisPusher::kick(), GreenWakeFunction::Wake::operator()(), BoundaryGeometry::partInside(), ParallelCyclotronTracker::push(), ScatteringPhysics::push(), LF2< FieldFunction, Arguments >::push_m(), Bend2D::readFieldMap(), RealConstant::RealConstant(), Util::rewindLinesSDDS(), PartBunchBase< T, Dim >::setBeamFrequency(), Corrector::setDesignEnergy(), ScatteringPhysics::setTimeStepForLeavingParticles(), SigmaGenerator::SigmaGenerator(), PartBins::sortArray(), OrbitThreader::trackBack(), RFCavity::trackOnAxisParticle(), RBend3D::trackRefParticleThrough(), OpalHKicker::update(), OpalKicker::update(), OpalMultipole::update(), OpalOctupole::update(), OpalQuadrupole::update(), OpalRBend::update(), OpalSBend::update(), OpalSextupole::update(), OpalSolenoid::update(), OpalVKicker::update(), ThickTracker::update_m(), OrbitThreader::updateBoundingBoxWithCurrentPosition(), ParallelTTracker::updateReferenceParticle(), ThickTracker::visitMultipole(), ThickTracker::visitSBend(), ParallelTTracker::writePhaseSpace(), H5PartWrapperForPC::writeStepHeader(), and H5PartWrapperForPT::writeStepHeader().
|
constexpr |
The value of.
\[ e \]
Definition at line 39 of file Physics.h.
Referenced by RealConstant::RealConstant().
|
constexpr |
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 |
The permittivity of vacuum in As/Vm.
Definition at line 51 of file Physics.h.
Referenced by CSRIGFWakeFunction::apply(), CSRWakeFunction::apply(), DistributionMoments::computeDebyeLength(), AmrBoxLib::computeSelfFields_cycl(), AmrBoxLib::computeSelfFields_cycl(), Distribution::emitParticles(), SigmaGenerator::initialize(), P3MPoissonSolver::P3MPoissonSolver(), TrackRun::setupCyclotronTracker(), TrackRun::setupThickTracker(), TrackRun::setupTTracker(), SigmaGenerator::SigmaGenerator(), AmrBoxLib::solvePoisson_m(), H5PartWrapperForPC::writeStepHeader(), and H5PartWrapperForPT::writeStepHeader().
|
constexpr |
The reduced Planck constant in GeVs.
Definition at line 54 of file Physics.h.
Referenced by BeamStrippingPhysics::computeCrossSectionBohr(), and BeamStrippingPhysics::evalLorentzStripping().
|
constexpr |
Boltzman's constant in eV/K.
Definition at line 60 of file Physics.h.
Referenced by BeamStrippingPhysics::computeCrossSection(), DistributionMoments::getTemperature(), Distribution::printEmissionModelNonEquil(), and Distribution::setupEmissionModelNonEquil().
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
The alpha particle rest mass in GeV.
Definition at line 123 of file Physics.h.
Referenced by RealConstant::RealConstant().
|
constexpr |
The carbon-12 (fully-stripped) rest mass in GeV.
Definition at line 105 of file Physics.h.
Referenced by RealConstant::RealConstant().
|
constexpr |
The deuteron rest mass in GeV.
Definition at line 117 of file Physics.h.
Referenced by RealConstant::RealConstant().
|
constexpr |
The electron rest mass in GeV.
Definition at line 78 of file Physics.h.
Referenced by Distribution::applyEmissModelNonEquil(), BeamStrippingPhysics::computeCrossSectionBohr(), BeamStrippingPhysics::computeCrossSectionNakai(), DistributionMoments::computeDebyeLength(), ScatteringPhysics::computeEnergyLoss(), BeamStrippingPhysics::evalLorentzStripping(), RealConstant::RealConstant(), and Distribution::setupEmissionModelNonEquil().
|
constexpr |
The hydrogen atom rest mass in GeV.
Definition at line 126 of file Physics.h.
Referenced by BeamStrippingPhysics::computeCrossSectionNakai().
|
constexpr |
The H2+ rest mass in GeV.
Definition at line 129 of file Physics.h.
Referenced by BeamStrippingPhysics::computeCrossSection(), and RealConstant::RealConstant().
|
constexpr |
|
constexpr |
The H- rest mass in GeV.
Definition at line 108 of file Physics.h.
Referenced by BeamStrippingPhysics::computeCrossSection(), and RealConstant::RealConstant().
|
constexpr |
The muon rest mass in GeV.
Definition at line 114 of file Physics.h.
Referenced by RealConstant::RealConstant().
|
constexpr |
The proton rest mass in GeV.
Definition at line 90 of file Physics.h.
Referenced by BeamStrippingPhysics::computeCrossSection(), ScatteringPhysics::computeEnergyLoss(), RealConstant::RealConstant(), and Beam::update().
|
constexpr |
The uranium-238 (fully-stripped) rest mass in GeV.
Definition at line 111 of file Physics.h.
Referenced by RealConstant::RealConstant().
|
constexpr |
The xenon-129 (fully-stripped) rest mass in GeV.
Definition at line 120 of file Physics.h.
Referenced by RealConstant::RealConstant().
|
constexpr |
The permeability of vacuum in Vs/Am.
Definition at line 48 of file Physics.h.
Referenced by SigmaGenerator::initialize(), _FM2DDynamic::readMap(), _FM3DDynamic::readMap(), and _FM3DH5Block_nonscale::readMap().
|
constexpr |
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(), _FM1DDynamic_fast::computeFieldDerivatives(), _FM1DElectroStatic_fast::computeFieldDerivatives(), _FM1DMagnetoStatic_fast::computeFieldDerivatives(), _FM1DDynamic::computeFieldOnAxis(), _FM1DElectroStatic::computeFieldOnAxis(), _FM1DMagnetoStatic::computeFieldOnAxis(), DistributionMoments::computePlasmaParameter(), ClosedOrbitFinder< Value_type, Size_type, Stepper >::computeTune(), ParallelCyclotronTracker::deleteParticle(), Distribution::emitParticles(), Bend2D::findIdealBendParameters(), RFCavity::getAutoPhaseEstimate(), TravelingWave::getAutoPhaseEstimate(), RFCavity::getAutoPhaseEstimateFallback(), SigmaGenerator::getEmittances(), _Astra1DDynamic::getFieldDerivative(), _FM1DDynamic::getFieldDerivative(), _FM1DElectroStatic::getFieldDerivative(), _FM1DMagnetoStatic::getFieldDerivative(), _Astra1DDynamic::getFieldstrength(), _Astra1DElectroStatic::getFieldstrength(), _Astra1DMagnetoStatic::getFieldstrength(), CavityAutophaser::getPhaseAtMaxEnergy(), getQuaternion(), ParallelCyclotronTracker::getQuaternionTwoVectors(), Offset::getTheta(), SinusoidalTimeDependence::getValue(), ParallelCyclotronTracker::initDistInGlobalFrame(), RBend3D::initialise(), TravelingWave::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(), H5PartWrapperForPC::writeStepHeader(), and H5PartWrapperForPT::writeStepHeader().
|
constexpr |
The elementary charge in As.
Definition at line 69 of file Physics.h.
Referenced by Undulator::apply(), BeamStrippingPhysics::computeCrossSection(), DistributionMoments::computeDebyeLength(), PartBunch::computeSelfFields(), PartBunch::computeSelfFields_cycl(), OutputPlane::doCheck(), Stripper::doCheck(), Distribution::emitParticles(), BeamStrippingPhysics::evalLorentzStripping(), Beam::getMassPerParticle(), ParticleProperties::getParticleChargeInCoulomb(), ParallelCyclotronTracker::kick(), LF2< FieldFunction, Arguments >::kick_m(), TrackRun::setupCyclotronTracker(), and Vacuum::updateParticleAttributes().
|
constexpr |
The classical electron radius in m.
Definition at line 81 of file Physics.h.
Referenced by ScatteringPhysics::computeEnergyLoss().
|
constexpr |
|
constexpr |
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(), Cyclotron::apply(), VariableRFCavity::apply(), VariableRFCavityFringeField::apply(), Distribution::applyEmissModelAstra(), Distribution::applyEmissModelNonEquil(), ScatteringPhysics::applyRandomRotation(), ScatteringPhysics::applyRotation(), Ring::buildRingSections(), ParallelCyclotronTracker::calculateAngle(), PartBunchBase< T, Dim >::calculateAngle(), _Fieldmap::checkMap(), Vacuum::checkPressure(), ScatteringPhysics::computeCoulombScattering(), _Astra1D_fast::computeFieldDerivatives(), _FM1DDynamic_fast::computeFieldDerivatives(), _FM1DElectroStatic_fast::computeFieldDerivatives(), _FM1DMagnetoStatic_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(), RFCavity::getAutoPhaseEstimate(), TravelingWave::getAutoPhaseEstimate(), RFCavity::getAutoPhaseEstimateFallback(), MeshGenerator::getCylinder(), _Astra1DDynamic::getFieldDerivative(), _FM1DDynamic::getFieldDerivative(), _FM1DElectroStatic::getFieldDerivative(), _FM1DMagnetoStatic::getFieldDerivative(), _Astra1DDynamic::getFieldstrength(), _Astra1DElectroStatic::getFieldstrength(), _Astra1DMagnetoStatic::getFieldstrength(), RFCavity::getMomentaKick(), Bend2D::getOutline(), CavityAutophaser::getPhaseAtMaxEnergy(), _FM3DH5BlockBase::getResonanceFrequency(), Util::getTaitBryantAngles(), Offset::getTheta(), CavityAutophaser::guessCavityPhase(), RFCavity::initialise(), TravelingWave::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(), OpalCavity::update(), OpalTravelingWave::update(), and mslang::Ellipse::writeGnuplot().
|
constexpr |
The value of.
\[ \frac{1}{2} \pi \]
Definition at line 36 of file Physics.h.
Referenced by ClosedOrbitFinder< Value_type, Size_type, Stepper >::computeTune(), MapGenerator< Value_type, Size_type, Series_type, Map_type, Hamiltonian_type, Space_charge_type >::computeTunes(), and ClosedOrbitFinder< Value_type, Size_type, Stepper >::findOrbitOfEnergy_m().