OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
|
A namespace defining various mathematical and physical constants. More...
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 | rad2deg = 180.0 / pi |
The conversion factor from radians to degrees. More... | |
constexpr double | deg2rad = 1.0 / rad2deg |
The conversion factor from degrees to radians. 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 = 12 * amu |
The carbon rest mass in GeV. More... | |
constexpr double | m_hm = 1.00837 * amu |
The H- rest mass in GeV. More... | |
constexpr double | m_u = 238.050787 * amu |
The uranium 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 = 124 * amu |
The xenon 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 |
A namespace defining various mathematical and physical constants.
constexpr double Physics::a0 = 5.29177210903e-11 |
Bohr radius in m.
Definition at line 73 of file Physics.h.
Referenced by Index::containsAllPoints(), InverseGauss(), and BeamStrippingPhysics::lorentzStripping().
constexpr double Physics::a_e = 1.15965218128e-03 |
constexpr double Physics::a_p = 1.792847386e+00 |
constexpr double Physics::alpha = 7.2973525693e-03 |
The fine structure constant, no dimension.
Definition at line 79 of file Physics.h.
Referenced by SDDS::parser::array_parser< Iterator >::array_parser(), SDDS::parser::associate_parser< Iterator >::associate_parser(), Harmonics< Value_type, Size_type >::computeMap(), BlendCrossover< T >::crossover(), EnvelopeBunch::derivs(), Simplex::execute(), client::parser::expression< Iterator >::expression(), Distribution::generateBinomial(), matheval::detail::grammar< real_t, Iterator >::grammar(), SDDS::parser::include_parser< Iterator >::include_parser(), SigmaGenerator< Value_type, Size_type >::initialize(), Migrad::lineSearch(), Pilot< Opt_t, Sim_t, SolPropagationGraph_t, Comm_t >::startPilot(), MultipoleTCurvedConstRadius::transformCoords(), and MultipoleT::transformCoords().
constexpr double Physics::amu = 0.93149410242 |
The atomic mass unit energy equivalent in GeV.
Definition at line 82 of file Physics.h.
Referenced by CollimatorPhysics::computeEnergyLoss().
constexpr double Physics::Avo = 6.02214076e23 |
The Avogadro's number.
Definition at line 64 of file Physics.h.
Referenced by CollimatorPhysics::computeEnergyLoss().
constexpr double Physics::c = 299792458.0 |
The velocity of light in m/s.
Definition at line 52 of file Physics.h.
Referenced by Harmonics< Value_type, Size_type >::__Mb6k(), TravelingWave::addKR(), RFCavity::addKR(), Multipole::addKR(), Solenoid::addKT(), Multipole::addKT(), RBend::addKT(), Source::apply(), FlexibleCollimator::apply(), GreenWakeFunction::apply(), Degrader::apply(), Monitor::apply(), Corrector::apply(), ParallelTTracker::applyFractionalStep(), Degrader::applyToReferenceParticle(), Monitor::applyToReferenceParticle(), DiscTypeBase::appType(), Astra1DDynamic::Astra1DDynamic(), Astra1DDynamic_fast::Astra1DDynamic_fast(), ParallelSliceTracker::autophaseCavities(), ParallelTTracker::autophaseCavities(), avl_at(), avl_index(), avl_search_closest(), ComplexEigen::balance(), FDoubleEigen< N >::balance(), FComplexEigen< N >::balance(), DoubleEigen::balance(), IndexedBareFieldIterator< T, D >::beginLField(), SecondaryEmissionPhysics::betacf(), ConejoBalancer::broadcastVnodesToSend(), EnvelopeBunch::calcBeamParameters(), PartBunchBase< T, Dim >::calcBeamParametersInitial(), EnvelopeBunch::calcEmittance(), EnvelopeBunch::calcEnergyChirp(), EnvelopeBunch::calcI(), CalcParallelPeriodicDomain(), Bend2D::calculateBendAngle(), Bend2D::calculateRefTrajectory(), centeredInitialize(), PluginElement::changeWidth(), interpolation::complex(), CollimatorPhysics::computeCoulombScattering(), CollimatorPhysics::computeEnergyLoss(), Harmonics< Value_type, Size_type >::computeMap(), OrbitThreader::computeMaximalImplicitDrift(), PartBunch::computeSelfFields(), PartBunch::computeSelfFields_cycl(), AmrBoxLib::computeSelfFields_cycl(), FM1DDynamic::convertHeaderData(), FM1DDynamic_fast::convertHeaderData(), CollimatorPhysics::copyFromBunch(), Distribution::createOpalE(), Distribution::createPriPart(), EnvelopeBunch::cSpaceCharge(), RK4< FieldFunction, Arguments >::derivate_m(), EnvelopeBunch::derivs(), DiscTypeBase::dim(), FTps< T, N >::divide(), Stripper::doCheck(), Probe::doCheck(), BeamStrippingPhysics::doPhysics(), EnvelopeBunch::Eavg(), Distribution::emitParticles(), EnvelopeSlice::EnvelopeSlice(), Bend2D::estimateFieldAdjustmentStep(), OrbitThreader::execute(), ParallelSliceTracker::execute(), ParallelTTracker::execute(), ExtrapolateAndZeroFaceBCApply(), ExtrapolateFaceBCApply(), DragtFinnMap< N >::factorBerzForestIrwin(), BoundaryGeometry::fastIsInside(), Period::fill(), OpalSBend::fillRegisteredAttributes(), OpalRBend::fillRegisteredAttributes(), OpalSolenoid::fillRegisteredAttributes(), OpalHKicker::fillRegisteredAttributes(), OpalMultipole::fillRegisteredAttributes(), OpalOctupole::fillRegisteredAttributes(), OpalSextupole::fillRegisteredAttributes(), OpalQuadrupole::fillRegisteredAttributes(), OpalVKicker::fillRegisteredAttributes(), OpalKicker::fillRegisteredAttributes(), RBend::findChordLength(), Bend2D::findIdealBendParameters(), ParallelSliceTracker::findStartPosition(), ParallelTTracker::findStartPosition(), for_each(), FunctionFaceBCApply(), ParallelCyclotronTracker::gapCrossKick_m(), SecondaryEmissionPhysics::gcf(), EurekaAssign< Vektor< T, D > >::get(), EurekaAssign< Tenzor< T, D > >::get(), EurekaAssign< AntiSymTenzor< T, D > >::get(), EurekaAssign< SymTenzor< T, D > >::get(), RFCavity::getAutoPhaseEstimate(), Rotation3D::getAxis(), TravelingWave::getdT(), RFCavity::getdT(), Astra1DDynamic::getFieldstrength(), Astra1DDynamic_fast::getFieldstrength(), RFCavity::getMomentaKick(), PortableBitmapReader::getNextPart(), PortableGraymapReader::getNextPart(), CavityAutophaser::getPhaseAtMaxEnergy(), Communicate::getProcesses(), FieldSolver::getTagging_m(), Corrector::goOnline(), interpolation::im(), IpplStats::incCompressionCompareMax(), IpplStats::incCompressionCompares(), RBend3D::initialise(), VariableRFCavityFringeField::initialiseCoefficients(), SigmaGenerator< Value_type, Size_type >::initialize(), OrbitThreader::integrate(), BoundaryGeometry::intersectRayBoundary(), FTps< T, N >::inverse(), BorisPusher::kick(), CorrectionBase::listCorrectors(), BeamStrippingPhysics::lorentzStripping(), interpolation::m_complex_build(), OrbitTracker::makeFocus(), LinearMapper::makeFocus(), Matrix3D::Matrix3D(), SecondaryEmissionPhysics::nSec(), GreenWakeFunction::Wake::operator()(), FArray2D< T, M, N >::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=(), NormalForm::orderModes(), DragtFinnNormalForm< N >::orderModes(), FNormalForm< N >::orderModes(), DragtFinnMap< N >::orderModes(), SDDS::column::parse(), BoundaryGeometry::partInside(), LOMB_class::period(), PeriodicFaceBCApply(), PETE_apply(), Statement::position(), Statement::print(), CollimatorPhysics::push(), ParallelCyclotronTracker::push(), LF2< FieldFunction, Arguments >::push_m(), QRSolver::R_to_S(), interpolation::re(), Bend2D::readFieldMap(), PortableGraymapReader::readImageAscii(), PortableBitmapReader::readImageAscii(), PortableBitmapReader::readImageBinary(), PortableGraymapReader::readImageBinary(), RealConstant::RealConstant(), Util::rewindLinesSDDS(), Offset::rotate(), DiscTypeBase::scalarType(), PartBunchBase< T, Dim >::setBeamFrequency(), Bend2D::setBendStrength(), EnvelopeBunch::setBinnedLShape(), Message::setCopy(), PartBunchBase< T, Dim >::setCouplingConstant(), Message::setDelete(), Corrector::setDesignEnergy(), EnvelopeBunch::setEnergy(), CollimatorPhysics::setTimeStepForLeavingParticles(), EnvelopeBunch::setTShape(), SigmaGenerator< Value_type, Size_type >::SigmaGenerator(), PartBins::sortArray(), PartBunchBase< T, Dim >::switchOffUnitlessPositions(), PartBunchBase< T, Dim >::switchToUnitlessPositions(), Migrad::symmetricEigen(), EnvelopeBunch::timeStep(), Util::toUpper(), OrbitThreader::trackBack(), MPSplitIntegrator::trackBunch(), MPSplitIntegrator::trackMap(), TravelingWave::trackOnAxisParticle(), RFCavity::trackOnAxisParticle(), MPSplitIntegrator::trackParticle(), RBend3D::trackRefParticleThrough(), FLieGenerator< T, N >::transform(), Bend2D::treatAsDrift(), Fieldmap::typeset_msg(), OpalSBend::update(), OpalRBend::update(), OpalSolenoid::update(), OpalHKicker::update(), OpalMultipole::update(), OpalOctupole::update(), OpalSextupole::update(), OpalQuadrupole::update(), OpalVKicker::update(), OpalKicker::update(), ThickTracker::update_m(), ParallelSliceTracker::updateReferenceParticle(), ParallelTTracker::updateReferenceParticle(), Message::useCommunicate(), ThinMapper::visitCorrector(), OrbitTracker::visitCorrector(), ThinTracker::visitCorrector(), ThickMapper::visitCorrector(), LinearMapper::visitCorrector(), TransportMapper::visitCorrector(), ThinMapper::visitMultipole(), OrbitTracker::visitMultipole(), ThinTracker::visitMultipole(), LieMapper::visitMultipole(), ThickMapper::visitMultipole(), LinearMapper::visitMultipole(), TransportMapper::visitMultipole(), ThickTracker::visitMultipole(), ThinMapper::visitRBend(), OrbitTracker::visitRBend(), ThinTracker::visitRBend(), ThickMapper::visitRBend(), LieMapper::visitRBend(), TransportMapper::visitRBend(), LinearMapper::visitRBend0(), ThinMapper::visitRFCavity(), OrbitTracker::visitRFCavity(), ThinTracker::visitRFCavity(), ThickMapper::visitRFCavity(), LieMapper::visitRFCavity(), LinearMapper::visitRFCavity(), TransportMapper::visitRFCavity(), ThinMapper::visitSBend(), OrbitTracker::visitSBend(), ThinTracker::visitSBend(), ThickMapper::visitSBend(), LieMapper::visitSBend(), LinearMapper::visitSBend(), TransportMapper::visitSBend(), ThickTracker::visitSBend(), ThinMapper::visitSolenoid(), OrbitTracker::visitSolenoid(), ThinTracker::visitSolenoid(), ThickMapper::visitSolenoid(), LieMapper::visitSolenoid(), LinearMapper::visitSolenoid(), TransportMapper::visitSolenoid(), ParallelTTracker::writePhaseSpace(), H5PartWrapperForPT::writeStepHeader(), H5PartWrapperForPC::writeStepHeader(), and H5PartWrapperForPS::writeStepHeader().
constexpr double Physics::deg2rad = 1.0 / rad2deg |
The conversion factor from degrees to radians.
Definition at line 49 of file Physics.h.
Referenced by ParallelCyclotronTracker::bunchDumpPhaseSpaceData(), ParallelCyclotronTracker::dumpThetaEachTurn_m(), Bend2D::getOutline(), ParallelCyclotronTracker::initDistInGlobalFrame(), ParallelCyclotronTracker::initializeTracking_m(), TrimCoil::setAzimuth(), ParallelCyclotronTracker::visitCyclotron(), and ParallelCyclotronTracker::visitRing().
constexpr double Physics::e = 2.7182818284590452354 |
The value of
\[ e \]
.
Definition at line 40 of file Physics.h.
Referenced by OpalBeamline::activateElements(), Cyclotron::apply(), TrimCoil::applyField(), Astra1DDynamic::Astra1DDynamic(), Astra1DDynamic_fast::Astra1DDynamic_fast(), Astra1DElectroStatic::Astra1DElectroStatic(), Astra1DElectroStatic_fast::Astra1DElectroStatic_fast(), Astra1DMagnetoStatic::Astra1DMagnetoStatic(), Astra1DMagnetoStatic_fast::Astra1DMagnetoStatic_fast(), PartBunchBase< T, Dim >::boundp(), CSRWakeFunction::calcPsi(), CSRIGFWakeFunction::calcPsi(), coordinatetransform::CoordinateTransform::calcSCoordinate(), MSplit::calcul(), Aperture::calcul(), CSRIGFWakeFunction::calculateGreenFunction(), Fieldmap::checkMap(), OpalSimulation::collectResults(), CollimatorPhysics::computeEnergyLoss(), ParallelSliceTracker::computeExternalFields(), ParallelTTracker::computeExternalFields(), Distribution::createMatchedGaussDistribution(), OpalSimulation::createSymlink_m(), Astra1D_fast::determineNumSamplingPoints(), LF2< FieldFunction, Arguments >::doAdvance_m(), Stripper::doCheck(), Probe::doCheck(), ThickTracker::dump_m(), SigmaGenerator< Value_type, Size_type >::eigsolve_m(), SampleCmd::execute(), OptimizeCmd::execute(), Migrad::execute(), ParallelSliceTracker::execute(), FieldSolver::FieldSolver(), Bend2D::findBendEffectiveLength(), Bend2D::findBendStrength(), ParallelSliceTracker::findStartPosition(), ParallelTTracker::findStartPosition(), FM1DDynamic::FM1DDynamic(), FM1DProfile2::FM1DProfile2(), FM2DDynamic::FM2DDynamic(), FM2DElectroStatic::FM2DElectroStatic(), FM2DMagnetoStatic::FM2DMagnetoStatic(), FM3DDynamic::FM3DDynamic(), FM3DMagnetoStatic::FM3DMagnetoStatic(), FM3DMagnetoStaticExtended::FM3DMagnetoStaticExtended(), Hypervolume::FromFile(), PartBunchBase< T, Dim >::get_gamma(), CmdArguments::getArg(), RFCavity::getAutoPhaseEstimateFallback(), Rotation3D::getAxis(), MultipoleTBase::getBs(), MultipoleT::getBs(), MultipoleTBase::getBx(), MultipoleT::getBx(), MultipoleTBase::getBz(), MultipoleT::getBz(), OpalSimulation::getData(), TrackCmd::getDT(), RFCavity::getElementLength(), CavityAutophaser::getEnergyMeV(), endfieldmodel::Enge::GetEnge(), FM2DMagnetoStatic::getFieldDerivative(), FM1DProfile2::getFieldstrength(), FM2DElectroStatic::getFieldstrength(), FM2DDynamic::getFieldstrength(), MultipoleTBase::getFnDerivS(), MultipoleT::getFnDerivS(), MultipoleTBase::getFnDerivX(), MultipoleT::getFnDerivX(), SDDS::SDDSParser::getInterpolatedValue(), RFCavity::getMomentaKick(), CavityAutophaser::getMomentum(), CavityAutophaser::getPhaseAtMaxEnergy(), Survey::getPsi(), getQuaternion(), MultipoleTCurvedVarRadius::getRadius(), Bend2D::getSurfaceMesh(), Survey::getTheta(), Offset::getTheta(), RtsLayer::getUSecD(), CavityAutophaser::guessCavityPhase(), RootFinderForCSR::hasPositiveRealRoots(), Ifpack2Preconditioner< Level >::init_m(), CyclotronValley::initialise(), TravelingWave::initialise(), RFCavity::initialise(), VariableRFCavity::initialise(), VariableRFCavityFringeField::initialiseCoefficients(), SigmaGenerator< Value_type, Size_type >::initialize(), AmrSmoother::initParameter_m(), OrbitThreader::integrate(), SecondaryEmissionPhysics::invgammp(), Mesher::isPointOnLine(), Quaternion::isPure(), Quaternion::isUnit(), MapAnalyser::linTAnalyze(), LMDif::LMDif(), IdealMapper::makeFocus(), OrbitTracker::makeFocus(), LinearMapper::makeFocus(), SigmaGenerator< Value_type, Size_type >::match(), Migrad::Migrad(), Quaternion::normalize(), OpalFilter::OpalFilter(), ProbeVariable::operator()(), RadialPeak::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(), Period::Period(), IndexedBareFieldIterator< T, D >::plugBase(), Astra1D_fast::readFieldData(), Bend2D::readFieldMap(), Astra1DElectroStatic_fast::readFileHeader(), Astra1DMagnetoStatic_fast::readFileHeader(), Astra1DDynamic_fast::readFileHeader(), FM1DElectroStatic::readFileHeader(), FM1DMagnetoStatic::readFileHeader(), FM1DDynamic::readFileHeader(), FM1DElectroStatic_fast::readFileHeader(), FM1DMagnetoStatic_fast::readFileHeader(), FM1DDynamic_fast::readFileHeader(), Astra1DElectroStatic_fast::readMap(), Astra1DElectroStatic::readMap(), Astra1DDynamic_fast::readMap(), Astra1DMagnetoStatic::readMap(), Astra1DDynamic::readMap(), FM1DProfile2::readMap(), H5PartWrapperForPC::readStepHeader(), RealConstant::RealConstant(), OrbitThreader::registerElement(), Util::rewindLinesSDDS(), OpalBeamline::save3DInput(), ParallelCyclotronTracker::seoMode_m(), Distribution::setAttributes(), Bend2D::setBendEffectiveLength(), EnvelopeBunch::setBinnedLShape(), TwoDGrid::SetConstantSpacing(), NDGrid::SetConstantSpacing(), interpolation::ThreeDGrid::setConstantSpacing(), FlexibleCollimator::setDescription(), Cyclotron::setFMHighE(), Cyclotron::setFMLowE(), PartData::setP(), OpalSimulation::setupFSStructure(), Simplex::Simplex(), EnvelopeBunch::slprint(), PartBins::sortArray(), H5PartWrapperForPS::stashPhaseSpaceEnvelope(), Astra1DMagnetoStatic_fast::stripFileHeader(), Astra1DElectroStatic_fast::stripFileHeader(), Astra1DDynamic_fast::stripFileHeader(), ParticleSpatialLayout< T, Dim, Mesh >::swap_particles(), ParallelSliceTracker::switchElements(), GreenWakeFunction::testApply(), CavityAutophaser::track(), TrackCmd::TrackCmd(), OpalSplineTimeDependence::update(), OpalMultipoleT::update(), ParallelCyclotronTracker::updateTime(), ParallelCyclotronTracker::visitCyclotron(), ThickTracker::visitMultipole(), ThickTracker::visitSBend(), StatWriter::write(), ParallelSliceTracker::writeLastStepPhaseSpace(), ParallelSliceTracker::writePhaseSpace(), and ParallelTTracker::writePhaseSpace().
constexpr double Physics::e0m = 1.75882001076e+11 |
Definition at line 147 of file Physics.h.
Referenced by EnvelopeBunch::derivs().
Definition at line 149 of file Physics.h.
Referenced by EnvelopeBunch::derivs().
constexpr double Physics::E_ryd = 13.605693122994e-9 |
Rydberg's energy (Rydberg's constant times hc) in GeV.
Definition at line 70 of file Physics.h.
Referenced by BeamStrippingPhysics::csAnalyticFunctionNakai(), and BeamStrippingPhysics::csAnalyticFunctionTabata().
constexpr double Physics::EMASS = 9.1093837015e-31 |
Definition at line 140 of file Physics.h.
Referenced by Solenoid::addKR(), TravelingWave::addKR(), RFCavity::addKR(), Multipole::addKR(), RBend::addKR(), Solenoid::addKT(), Multipole::addKT(), RBend::addKT(), EnvelopeBunch::calcBeamParameters(), EnvelopeBunch::Eavg(), EnvelopeSlice::EnvelopeSlice(), EnvelopeBunch::setEnergy(), and EnvelopeBunch::setTShape().
constexpr double Physics::epsilon_0 = 8.8541878128e-12 |
The permittivity of vacuum in As/Vm.
Definition at line 58 of file Physics.h.
Referenced by CSRIGFWakeFunction::apply(), CSRWakeFunction::apply(), AmrBoxLib::computeSelfFields_cycl(), EnvelopeBunch::cSpaceCharge(), Distribution::emitParticles(), SigmaGenerator< Value_type, Size_type >::initialize(), TrackRun::setupCyclotronTracker(), TrackRun::setupSliceTracker(), TrackRun::setupThickTracker(), TrackRun::setupTTracker(), SigmaGenerator< Value_type, Size_type >::SigmaGenerator(), ThinTracker::visitBeamBeam(), H5PartWrapperForPT::writeStepHeader(), H5PartWrapperForPC::writeStepHeader(), and H5PartWrapperForPS::writeStepHeader().
constexpr double Physics::h_bar = 6.582119569e-25 |
The reduced Planck constant in GeVs.
Definition at line 61 of file Physics.h.
Referenced by BeamStrippingPhysics::lorentzStripping().
constexpr double Physics::Ia = 17.045148e+03 |
Definition at line 145 of file Physics.h.
Referenced by EnvelopeBunch::derivs().
constexpr double Physics::kB = 8.617333262e-5 |
Boltzman's constant in eV/K.
Definition at line 67 of file Physics.h.
Referenced by BeamStrippingPhysics::crossSection(), Distribution::printEmissionModelNonEquil(), and Distribution::setupEmissionModelNonEquil().
constexpr double Physics::lamda_e = 3.8615926796e-13 |
constexpr double Physics::lamda_p = 2.10308910336e-16 |
constexpr double Physics::log10e = 0.43429448190325182765 |
constexpr double Physics::m_c = 12 * amu |
The carbon rest mass in GeV.
Definition at line 112 of file Physics.h.
Referenced by RealConstant::RealConstant(), and Beam::update().
constexpr double Physics::m_d = 2.013553212745 * amu |
The deuteron rest mass in GeV.
Definition at line 124 of file Physics.h.
Referenced by RealConstant::RealConstant(), and Beam::update().
constexpr double Physics::m_e = 0.51099895000e-03 |
The electron rest mass in GeV.
Definition at line 85 of file Physics.h.
Referenced by RFCavity::addKT(), Distribution::applyEmissModelNonEquil(), CollimatorPhysics::computeEnergyLoss(), BeamStrippingPhysics::csAnalyticFunctionNakai(), BoundaryGeometry::emitSecondaryFurmanPivi(), BoundaryGeometry::emitSecondaryVaughan(), ParallelSliceTracker::execute(), EnvelopeBunch::getPz(), BeamStrippingPhysics::lorentzStripping(), SecondaryEmissionPhysics::nSec(), RealConstant::RealConstant(), Distribution::setupEmissionModelNonEquil(), and Beam::update().
constexpr double Physics::m_h = 1.00782503224 * amu |
The hydrogen atom rest mass in GeV.
Definition at line 130 of file Physics.h.
Referenced by BeamStrippingPhysics::apply(), BeamStrippingPhysics::crossSection(), BeamStrippingPhysics::csAnalyticFunctionNakai(), BeamStrippingPhysics::secondaryParticles(), and BeamStrippingPhysics::transformToHydrogen().
constexpr double Physics::m_h2p = 2.01510 * amu |
The H2+ rest mass in GeV.
Definition at line 133 of file Physics.h.
Referenced by BeamStrippingPhysics::apply(), BeamStrippingPhysics::crossSection(), BeamStrippingPhysics::secondaryParticles(), and Beam::update().
constexpr double Physics::m_h3p = 3.02293 * amu |
The H3+ rest mass in GeV.
Definition at line 136 of file Physics.h.
Referenced by BeamStrippingPhysics::transformToH3plus().
constexpr double Physics::m_hm = 1.00837 * amu |
The H- rest mass in GeV.
Definition at line 115 of file Physics.h.
Referenced by BeamStrippingPhysics::apply(), BeamStrippingPhysics::crossSection(), BeamStrippingPhysics::doPhysics(), RealConstant::RealConstant(), BeamStrippingPhysics::secondaryParticles(), BeamStrippingPhysics::transformToHminus(), and Beam::update().
constexpr double Physics::m_mu = 0.1056583755 |
The muon rest mass in GeV.
Definition at line 121 of file Physics.h.
Referenced by RealConstant::RealConstant(), and Beam::update().
constexpr double Physics::m_p = 0.93827208816e+00 |
The proton rest mass in GeV.
Definition at line 97 of file Physics.h.
Referenced by BeamStrippingPhysics::apply(), CollimatorPhysics::computeCoulombScattering(), CollimatorPhysics::computeEnergyLoss(), BeamStrippingPhysics::crossSection(), RealConstant::RealConstant(), BeamStrippingPhysics::secondaryParticles(), BeamStrippingPhysics::transformToProton(), and Beam::update().
constexpr double Physics::m_u = 238.050787 * amu |
The uranium rest mass in GeV.
Definition at line 118 of file Physics.h.
Referenced by RealConstant::RealConstant(), and Beam::update().
constexpr double Physics::m_xe = 124 * amu |
The xenon rest mass in GeV.
Definition at line 127 of file Physics.h.
Referenced by RealConstant::RealConstant(), and Beam::update().
constexpr double Physics::mu_0 = 1.25663706212e-06 |
The permeability of vacuum in Vs/Am.
Definition at line 55 of file Physics.h.
Referenced by SigmaGenerator< Value_type, Size_type >::initialize(), FM3DDynamic::readMap(), FM3DH5Block_nonscale::readMap(), and FM2DDynamic::readMap().
constexpr double Physics::pi = 3.14159265358979323846 |
The value of
\[ \pi \]
.
Definition at line 31 of file Physics.h.
Referenced by NormalForm::anharmonicity(), DragtFinnNormalForm< N >::anharmonicity(), FNormalForm< N >::anharmonicity(), CSRIGFWakeFunction::apply(), CSRWakeFunction::apply(), Distribution::applyEmissModelAstra(), Ring::buildRingSections(), FixedFFTLowPassFilter::calc_derivative(), RelativeFFTLowPassFilter::calc_derivative(), EnvelopeBunch::calcBeamParameters(), PartBunchBase< T, Dim >::calcMeanPhi(), Aperture::calcul_Apert(), CollimatorPhysics::computeCoulombScattering(), CollimatorPhysics::computeEnergyLoss(), FM1DElectroStatic_fast::computeFieldDerivatives(), FM1DMagnetoStatic_fast::computeFieldDerivatives(), FM1DDynamic_fast::computeFieldDerivatives(), FM1DElectroStatic::computeFieldOnAxis(), FM1DMagnetoStatic::computeFieldOnAxis(), FM1DDynamic::computeFieldOnAxis(), ClosedOrbitFinder< Value_type, Size_type, Stepper >::computeTune(), EnvelopeBunch::cSpaceCharge(), Distribution::emitParticles(), Bend2D::findIdealBendParameters(), Distribution::generateLongFlattopT(), TravelingWave::getAutoPhaseEstimate(), RFCavity::getAutoPhaseEstimate(), RFCavity::getAutoPhaseEstimateFallback(), SigmaGenerator< Value_type, Size_type >::getEmittances(), Astra1DDynamic::getFieldDerivative(), FM1DDynamic::getFieldDerivative(), FM1DElectroStatic::getFieldDerivative(), FM1DMagnetoStatic::getFieldDerivative(), Astra1DDynamic::getFieldstrength(), Astra1DMagnetoStatic::getFieldstrength(), RFCavity::getMomentaKick(), CavityAutophaser::getPhaseAtMaxEnergy(), getQuaternion(), Aperture::getShape(), Offset::getTheta(), RBend3D::initialise(), ParallelPlate::initialise(), TravelingWave::initialise(), RFCavity::initialise(), SigmaGenerator< Value_type, Size_type >::initialize(), Cyclotron::interpolate(), MapAnalyser::linTAnalyze(), GreenWakeFunction::Wake::operator()(), CavityAutophaser::optimizeCavityPhase(), Bend2D::print(), OpalElement::printMultipoleStrength(), ParallelSliceTracker::printRFPhases(), RealConstant::RealConstant(), OpalBeamline::save3DInput(), OpalBeamline::save3DLattice(), TravelingWave::setPhasem(), SigmaGenerator< Value_type, Size_type >::SigmaGenerator(), OpalRingDefinition::update(), H5PartWrapperForPT::writeStepHeader(), H5PartWrapperForPC::writeStepHeader(), and H5PartWrapperForPS::writeStepHeader().
constexpr double Physics::q_e = 1.602176634e-19 |
The elementary charge in As.
Definition at line 76 of file Physics.h.
Referenced by Solenoid::addKR(), TravelingWave::addKR(), RFCavity::addKR(), Multipole::addKR(), RBend::addKR(), Solenoid::addKT(), RFCavity::addKT(), Multipole::addKT(), RBend::addKT(), EnvelopeBunch::calcBeamParameters(), EnvelopeBunch::calcI(), BeamStrippingPhysics::crossSection(), Stripper::doCheck(), BeamStrippingPhysics::doPhysics(), EnvelopeBunch::Eavg(), Distribution::emitParticles(), EnvelopeSlice::EnvelopeSlice(), BeamStripping::initialise(), ParallelCyclotronTracker::kick(), LF2< FieldFunction, Arguments >::kick_m(), BeamStrippingPhysics::lorentzStripping(), BeamStrippingPhysics::secondaryParticles(), EnvelopeBunch::setEnergy(), EnvelopeBunch::setTShape(), TrackRun::setupCyclotronTracker(), BeamStrippingPhysics::transformToH3plus(), BeamStrippingPhysics::transformToHminus(), BeamStrippingPhysics::transformToProton(), and ThinTracker::visitBeamBeam().
constexpr double Physics::r_e = 2.8179403262e-15 |
The classical electron radius in m.
Definition at line 88 of file Physics.h.
Referenced by CollimatorPhysics::computeEnergyLoss().
constexpr double Physics::r_p = 1.53469857e-18 |
constexpr double Physics::rad2deg = 180.0 / pi |
The conversion factor from radians to degrees.
Definition at line 46 of file Physics.h.
Referenced by ParallelCyclotronTracker::bunchDumpStatData(), ParallelCyclotronTracker::dumpAzimuthAngles_m(), Bend2D::findBendStrength(), TravelingWave::getAutoPhaseEstimate(), RFCavity::getAutoPhaseEstimate(), RFCavity::getAutoPhaseEstimateFallback(), CavityAutophaser::getPhaseAtMaxEnergy(), mslang::Triangle::print(), mslang::Rectangle::print(), mslang::Ellipse::print(), OpalBeamline::save3DInput(), ParallelCyclotronTracker::saveInjectValues(), and ParallelCyclotronTracker::updateAzimuthAndRadius().
constexpr double Physics::two_pi = 2 * pi |
The value of
\[2 \pi \]
.
Definition at line 34 of file Physics.h.
Referenced by VariableRFCavity::apply(), VariableRFCavityFringeField::apply(), Distribution::applyEmissModelNonEquil(), CollimatorPhysics::applyRandomRotation(), CollimatorPhysics::applyRotation(), Astra1DDynamic::Astra1DDynamic(), Astra1DDynamic_fast::Astra1DDynamic_fast(), EnvelopeBunch::calcBeamParameters(), SecondaryEmissionPhysics::calcEmiNum(), ParallelCyclotronTracker::calculateAngle(), PartBunchBase< T, Dim >::calculateAngle(), Fieldmap::checkMap(), CollimatorPhysics::computeCoulombScattering(), FM1DElectroStatic_fast::computeFieldDerivatives(), FM1DMagnetoStatic_fast::computeFieldDerivatives(), Astra1D_fast::computeFieldDerivatives(), FM1DDynamic_fast::computeFieldDerivatives(), FM1DElectroStatic::computeFieldOnAxis(), FM1DMagnetoStatic::computeFieldOnAxis(), FM1DDynamic::computeFieldOnAxis(), Harmonics< Value_type, Size_type >::computeMap(), ClosedOrbitFinder< Value_type, Size_type, Stepper >::computeTune(), FM1DDynamic::convertHeaderData(), FM1DDynamic_fast::convertHeaderData(), EnvelopeBunch::cSpaceCharge(), Static::execute(), Dynamic::execute(), ClosedOrbitFinder< Value_type, Size_type, Stepper >::findOrbitOfEnergy_m(), FM2DDynamic::FM2DDynamic(), FM3DDynamic::FM3DDynamic(), FM3DH5Block::FM3DH5Block(), FM3DH5Block_nonscale::FM3DH5Block_nonscale(), FM3DMagnetoStaticH5Block::FM3DMagnetoStaticH5Block(), Distribution::generateBinomial(), Distribution::generateLongFlattopT(), TravelingWave::getAutoPhaseEstimate(), RFCavity::getAutoPhaseEstimate(), RFCavity::getAutoPhaseEstimateFallback(), MeshGenerator::getCylinder(), Astra1DDynamic::getFieldDerivative(), FM1DDynamic::getFieldDerivative(), FM1DElectroStatic::getFieldDerivative(), FM1DMagnetoStatic::getFieldDerivative(), Astra1DDynamic::getFieldstrength(), Astra1DMagnetoStatic::getFieldstrength(), Astra1DElectroStatic::getFieldstrength(), RFCavity::getMomentaKick(), Bend2D::getOutline(), CavityAutophaser::getPhaseAtMaxEnergy(), Util::getTaitBryantAngles(), CavityAutophaser::guessCavityPhase(), TravelingWave::initialise(), RFCavity::initialise(), Bend2D::inMagnetCentralRegion(), SecondaryEmissionPhysics::nSec(), CavityAutophaser::optimizeCavityPhase(), Twiss::put(), RealConstant::RealConstant(), Bend2D::setFieldCalcParam(), OpalCyclotronValley::update(), OpalParallelPlate::update(), OpalTravelingWave::update(), OpalCavity::update(), ThinTracker::visitBeamBeam(), and mslang::Ellipse::writeGnuplot().
constexpr double Physics::u_two_pi = 1.0 / two_pi |
The value of
\[ \frac{1}{2} \pi \]
.
Definition at line 37 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().
constexpr double Physics::z_p = 1 |
The charge of proton.
Definition at line 109 of file Physics.h.
Referenced by CollimatorPhysics::computeCoulombScattering(), and CollimatorPhysics::computeEnergyLoss().