Mantid
Loading...
Searching...
No Matches
Classes | Typedefs | Functions | Variables
Mantid::PhysicalConstants Namespace Reference

A namespace containing physical constants that are required by algorithms and unit routines. More...

Classes

class  Atom
 Struture to hold the common information for an atom. More...
 
struct  MagneticIon
 Struture to hold information about magnetic form factor for 3d, 4d, rare earth, and actinide atoms and ions. More...
 
struct  NeutronAtom
 Structure to store neutronic scattering information for the various elements. More...
 

Typedefs

using IonIndex = std::unordered_map< std::string, MagneticIon >
 Typedef the map type. More...
 

Functions

bool AtomEqualsWithNaN (const double left, const double right)
 Check if two atoms are not valid. More...
 
MANTID_KERNEL_DLL void calculateScatteringLengths (NeutronAtom &atom)
 Utility function to calculate scattering lengths from cross-sections. More...
 
bool compareAtoms (const Atom &left, uint16_t a_number)
 Compare two atoms. More...
 
bool compareAtoms (const NeutronAtom &left, const NeutronAtom &right)
 Comparison between neutron atoms (for sorting) More...
 
void createIonLookup (IonIndex &ion_map)
 Forward decalre intializer. More...
 
MANTID_KERNEL_DLL const AtomgetAtom (const std::string &symbol, const uint16_t a_number=0)
 
MANTID_KERNEL_DLL const AtomgetAtom (const uint16_t z_number, const uint16_t a_number=0)
 
MANTID_KERNEL_DLL std::vector< double > getJL (const std::string &symbol, const uint16_t charge, const uint16_t l=0)
 Returns the Lth-coefficients for the given ion. More...
 
MANTID_KERNEL_DLL const MagneticIongetMagneticIon (const std::string &symbol)
 Returns the magnetic ion from a combined symbol and charge given as string. More...
 
MANTID_KERNEL_DLL const MagneticIongetMagneticIon (const std::string &symbol, const uint16_t charge)
 Returns the magnetic ion for the given symbol and charge. More...
 
MANTID_KERNEL_DLL std::vector< std::string > getMagneticIonList ()
 Returns a list of all ions. More...
 
MANTID_KERNEL_DLL NeutronAtom getNeutronAtom (const uint16_t z_number, const uint16_t a_number)
 Retrieve a copy of NeutronAtom. More...
 
MANTID_KERNEL_DLL NeutronAtom getNeutronNoExceptions (const NeutronAtom &other)
 
MANTID_KERNEL_DLL NeutronAtom getNeutronNoExceptions (const uint16_t z_number, const uint16_t a_number)
 
const IonIndexionMap ()
 Returns a reference to the static lookup map. More...
 
bool NeutronAtomEqualsWithNaN (const double left, const double right)
 
MANTID_KERNEL_DLL bool operator!= (const Atom &left, const Atom &right)
 Inequality operator overload. More...
 
MANTID_KERNEL_DLL bool operator!= (const NeutronAtom &left, const NeutronAtom &right)
 Inequality between two neutron atoms. More...
 
MANTID_KERNEL_DLL NeutronAtom operator* (const double left, const NeutronAtom &right)
 This calls operator*(const NeutronAtom&, const double) with the parameters reversed. More...
 
MANTID_KERNEL_DLL NeutronAtom operator* (const NeutronAtom &left, const double right)
 Multiplying a NeutronAtom by a number sets a_number=z_number=0 and multiplies all of the scattering information. More...
 
MANTID_KERNEL_DLL NeutronAtom operator+ (const NeutronAtom &left, const NeutronAtom &right)
 Adding two NeutronAtoms together sets a_number=z_number=0 and adds all of the scattering information. More...
 
MANTID_KERNEL_DLL std::ostream & operator<< (std::ostream &out, const Atom &atom)
 Stream operator overload. More...
 
MANTID_KERNEL_DLL std::ostream & operator<< (std::ostream &out, const NeutronAtom &atom)
 Output neutron atom to a stream. More...
 
MANTID_KERNEL_DLL bool operator== (const Atom &left, const Atom &right)
 Equality operator overload. More...
 
MANTID_KERNEL_DLL bool operator== (const NeutronAtom &left, const NeutronAtom &right)
 Equality between two neutron atoms. More...
 

Variables

static constexpr double AtomicMassUnit = 1.660538921e-27
 AMU in kg. More...
 
static std::array< tcb::span< Atom >, 96 > ATOMS
 
static NeutronAtom ATOMS []
 All of the atoms in a single array so it can be searched. More...
 
static std::array< Atom, 2845 > ATOMS_ARRAY
 
static constexpr double BoltzmannConstant = 8.6173324e-02
 Boltzmann Constant in meV/K Taken from http://physics.nist.gov/cuu/Constants on 10/07/2012. More...
 
static constexpr double E_mev_toNeutronWavenumberSq
 Transformation coefficient to transform neutron energy into neutron wavevector: K-neutron[m^-10] = sqrt(E_neutron[meV]/E_transtormation[mEv]);. More...
 
static constexpr double g = 9.80665
 Standard acceleration due to gravity. More...
 
static constexpr double h = 6.62606896e-34
 Planck constant in J*s. More...
 
static constexpr double h_bar = h / (2 * M_PI)
 Planck constant in J*s, divided by 2 PI. More...
 
static constexpr double meV = 1.602176487e-22
 1 meV in Joules. More...
 
static constexpr double meVtoFrequency = 0.2417989262
 1 meV in frequency (GHz). More...
 
static constexpr double meVtoKelvin = 11.604519
 1 meV in Kelvin. More...
 
static constexpr double meVtoWavenumber = 8.06554465
 1 meV in wavenumber (cm-1). More...
 
static constexpr double MuonGyromagneticRatio = 0.01355342
 Muon gyromagnetic ratio in MHz/G Taken from CalMuonDetectorPhases and DynamicKuboToyabe on 02/02/2016. More...
 
static constexpr double MuonLifetime = 2.1969811e-6
 Muon lifetime. More...
 
static constexpr double N_A = 6.02214179e23
 Avagodro constant in mol-1. More...
 
static constexpr double NeutronMass = 1.674927211e-27
 Mass of the neutron in kg. More...
 
static constexpr double NeutronMassAMU = 1.008664916
 Mass of the neutron in AMU. More...
 
static const size_t NUM_ATOMS = 371
 The total number of atoms in the array. More...
 
static constexpr double StandardAtmosphere = 101.325
 Standard atmospheric pressure in kPa. More...
 

Detailed Description

A namespace containing physical constants that are required by algorithms and unit routines.

Typedef Documentation

◆ IonIndex

using Mantid::PhysicalConstants::IonIndex = typedef std::unordered_map<std::string, MagneticIon>

Typedef the map type.

Definition at line 672 of file MagneticIon.cpp.

Function Documentation

◆ AtomEqualsWithNaN()

bool Mantid::PhysicalConstants::AtomEqualsWithNaN ( const double  left,
const double  right 
)

Check if two atoms are not valid.

Definition at line 3120 of file Atom.cpp.

References left, and right.

Referenced by operator==().

◆ calculateScatteringLengths()

void Mantid::PhysicalConstants::calculateScatteringLengths ( NeutronAtom atom)

◆ compareAtoms() [1/2]

bool Mantid::PhysicalConstants::compareAtoms ( const Atom left,
uint16_t  a_number 
)

Compare two atoms.

Definition at line 3160 of file Atom.cpp.

References left.

Referenced by getAtom(), getNeutronAtom(), and getNeutronNoExceptions().

◆ compareAtoms() [2/2]

bool Mantid::PhysicalConstants::compareAtoms ( const NeutronAtom left,
const NeutronAtom right 
)

Comparison between neutron atoms (for sorting)

Parameters
left:: NeutronAtom to compare
right:: NeutronAtom to compare
Returns
boolean

Definition at line 634 of file NeutronAtom.cpp.

References left, and right.

◆ createIonLookup()

void Mantid::PhysicalConstants::createIonLookup ( IonIndex ion_map)

Forward decalre intializer.

Creates the lookup table.

Parameters
ion_mapA reference to the static lookup

Definition at line 690 of file MagneticIon.cpp.

Referenced by ionMap().

◆ getAtom() [1/2]

const Atom & Mantid::PhysicalConstants::getAtom ( const std::string &  symbol,
const uint16_t  a_number 
)
Parameters
symbol:: Chemical symbol of the atom to get
a_number:: Mass number of the atom to get
Returns
The atom corresponding to the given symbol and A

Definition at line 3192 of file Atom.cpp.

References ATOMS, compareAtoms(), and getAtom().

◆ getAtom() [2/2]

const Atom & Mantid::PhysicalConstants::getAtom ( const uint16_t  z_number,
const uint16_t  a_number 
)
Parameters
z_number:: Atomic number of the atom to get
a_number:: Mass number of the atom to get
Returns
The atom corresponding to the given Z and A

Definition at line 3167 of file Atom.cpp.

References ATOMS, compareAtoms(), getAtom(), and index.

Referenced by Mantid::WorkflowAlgorithms::DgsAbsoluteUnitsReduction::exec(), getAtom(), and Mantid::Geometry::IsotropicAtomBraggScatterer::setElement().

◆ getJL()

std::vector< double > Mantid::PhysicalConstants::getJL ( const std::string &  symbol,
const uint16_t  charge,
const uint16_t  l 
)

Returns the Lth-coefficients for the given ion.

Returns the coffieients for a given angular momentum.

Parameters
symbol:: The string symbol defining the element
charge:: The charge
l:: The angular momentum
Returns
The coefficients or throws if either the ion doesn't exist or the angular momentum is invalid

Definition at line 1018 of file MagneticIon.cpp.

References getMagneticIon(), Mantid::PhysicalConstants::MagneticIon::j0, Mantid::PhysicalConstants::MagneticIon::j2, Mantid::PhysicalConstants::MagneticIon::j4, and Mantid::PhysicalConstants::MagneticIon::j6.

◆ getMagneticIon() [1/2]

const MagneticIon & Mantid::PhysicalConstants::getMagneticIon ( const std::string &  symbol)

Returns the magnetic ion from a combined symbol and charge given as string.

Returns a MagneticIon corresponding to the given symbol containing the atom & charge Throws std::runtime_error if one cannot be found.

Parameters
symbol:: The string symbol
Returns
A reference to the required ion

Definition at line 983 of file MagneticIon.cpp.

References ionMap().

◆ getMagneticIon() [2/2]

const MagneticIon & Mantid::PhysicalConstants::getMagneticIon ( const std::string &  symbol,
const uint16_t  charge 
)

Returns the magnetic ion for the given symbol and charge.

Returns a MagneticIon corresponding to the given symbol & charge.

Throws std::runtime_error if one cannot be found

Parameters
symbol:: The string symbol
charge:: The charge
Returns

Definition at line 1004 of file MagneticIon.cpp.

References getMagneticIon().

Referenced by Mantid::Algorithms::MagFormFactorCorrection::exec(), getJL(), and getMagneticIon().

◆ getMagneticIonList()

std::vector< std::string > Mantid::PhysicalConstants::getMagneticIonList ( )

Returns a list of all ions.

Returns a std::vector<std::string> of the keys of ion_map (a list of all ions programmed into this class)

Returns

Definition at line 1048 of file MagneticIon.cpp.

References ionMap().

Referenced by Mantid::Algorithms::MagFormFactorCorrection::init().

◆ getNeutronAtom()

NeutronAtom Mantid::PhysicalConstants::getNeutronAtom ( const uint16_t  z_number,
const uint16_t  a_number 
)

Retrieve a copy of NeutronAtom.

Parameters
z_number:: Atomic number of the atom to get
a_number:: Mass number of the atom to get
Returns
The atom corresponding to the given Z and A

Definition at line 710 of file NeutronAtom.cpp.

References Mantid::PhysicalConstants::NeutronAtom::a_number, ATOMS, compareAtoms(), NUM_ATOMS, and Mantid::PhysicalConstants::NeutronAtom::z_number.

Referenced by Mantid::WorkflowAlgorithms::DgsAbsoluteUnitsReduction::exec(), and Mantid::Kernel::Material::loadNexus().

◆ getNeutronNoExceptions() [1/2]

NeutronAtom Mantid::PhysicalConstants::getNeutronNoExceptions ( const NeutronAtom other)

Definition at line 735 of file NeutronAtom.cpp.

References getNeutronNoExceptions().

◆ getNeutronNoExceptions() [2/2]

NeutronAtom Mantid::PhysicalConstants::getNeutronNoExceptions ( const uint16_t  z_number,
const uint16_t  a_number 
)

◆ ionMap()

const IonIndex & Mantid::PhysicalConstants::ionMap ( )

Returns a reference to the static lookup map.

Definition at line 678 of file MagneticIon.cpp.

References createIonLookup(), and ionMap().

Referenced by getMagneticIon(), getMagneticIonList(), and ionMap().

◆ NeutronAtomEqualsWithNaN()

bool Mantid::PhysicalConstants::NeutronAtomEqualsWithNaN ( const double  left,
const double  right 
)

Definition at line 568 of file NeutronAtom.cpp.

References left, and right.

Referenced by operator==().

◆ operator!=() [1/2]

bool Mantid::PhysicalConstants::operator!= ( const Atom left,
const Atom right 
)

Inequality operator overload.

Definition at line 3150 of file Atom.cpp.

References left, and right.

◆ operator!=() [2/2]

bool Mantid::PhysicalConstants::operator!= ( const NeutronAtom left,
const NeutronAtom right 
)

Inequality between two neutron atoms.

Parameters
left:: NeutronAtom to compare
right:: NeutronAtom to compare
Returns
boolean

Definition at line 615 of file NeutronAtom.cpp.

References left, and right.

◆ operator*() [1/2]

NeutronAtom Mantid::PhysicalConstants::operator* ( const double  left,
const NeutronAtom right 
)

This calls operator*(const NeutronAtom&, const double) with the parameters reversed.

Definition at line 700 of file NeutronAtom.cpp.

References left, and right.

◆ operator*() [2/2]

NeutronAtom Mantid::PhysicalConstants::operator* ( const NeutronAtom left,
const double  right 
)

◆ operator+()

NeutronAtom Mantid::PhysicalConstants::operator+ ( const NeutronAtom left,
const NeutronAtom right 
)

◆ operator<<() [1/2]

std::ostream & Mantid::PhysicalConstants::operator<< ( std::ostream &  out,
const Atom atom 
)

Stream operator overload.

Definition at line 3152 of file Atom.cpp.

References Mantid::PhysicalConstants::Atom::a_number, and Mantid::PhysicalConstants::Atom::symbol.

◆ operator<<() [2/2]

std::ostream & Mantid::PhysicalConstants::operator<< ( std::ostream &  out,
const NeutronAtom atom 
)

◆ operator==() [1/2]

bool Mantid::PhysicalConstants::operator== ( const Atom left,
const Atom right 
)

Equality operator overload.

Definition at line 3128 of file Atom.cpp.

References AtomEqualsWithNaN(), left, and right.

◆ operator==() [2/2]

bool Mantid::PhysicalConstants::operator== ( const NeutronAtom left,
const NeutronAtom right 
)

Equality between two neutron atoms.

Parameters
left:: NeutronAtom to compare
right:: NeutronAtom to compare
Returns
boolean

Definition at line 581 of file NeutronAtom.cpp.

References left, NeutronAtomEqualsWithNaN(), and right.

Variable Documentation

◆ AtomicMassUnit

constexpr double Mantid::PhysicalConstants::AtomicMassUnit = 1.660538921e-27
staticconstexpr

◆ ATOMS [1/2]

std::array<tcb::span<Atom>, 96> Mantid::PhysicalConstants::ATOMS
static

Definition at line 3068 of file Atom.cpp.

Referenced by getAtom(), getNeutronAtom(), and getNeutronNoExceptions().

◆ ATOMS [2/2]

NeutronAtom Mantid::PhysicalConstants::ATOMS[]
static
Initial value:
= {
H, H1, H2, H3, He, He3, He4, Li, Li6, Li7, Be, B, B10, B11, C, C12,
C13, N, N14, N15, O, O16, O17, O18, F, Ne, Ne20, Ne21, Ne22, Na, Mg, Mg24,
Mg25, Mg26, Al, Si, Si28, Si29, Si30, P, S, S32, S33, S34, S36, Cl, Cl35, Cl37,
Ar, Ar36, Ar38, Ar40, K, K39, K40, K41, Ca, Ca40, Ca42, Ca43, Ca44, Ca46, Ca48, Sc,
Ti, Ti46, Ti47, Ti48, Ti49, Ti50, V, V50, V51, Cr, Cr50, Cr52, Cr53, Cr54, Mn, Fe,
Fe54, Fe56, Fe57, Fe58, Co, Ni, Ni58, Ni60, Ni61, Ni62, Ni64, Cu, Cu63, Cu65, Zn, Zn64,
Zn66, Zn67, Zn68, Zn70, Ga, Ga69, Ga71, Ge, Ge70, Ge72, Ge73, Ge74, Ge76, As, Se, Se74,
Se76, Se77, Se78, Se80, Se82, Br, Br79, Br81, Kr, Kr78, Kr80, Kr82, Kr83, Kr84, Kr86, Rb,
Rb85, Rb87, Sr, Sr84, Sr86, Sr87, Sr88, Y, Zr, Zr90, Zr91, Zr92, Zr94, Zr96, Nb, Mo,
Mo92, Mo94, Mo95, Mo96, Mo97, Mo98, Mo100, Tc, Ru, Ru96, Ru98, Ru99, Ru100, Ru101, Ru102, Ru104,
Rh, Pd, Pd102, Pd104, Pd105, Pd106, Pd108, Pd110, Ag, Ag107, Ag109, Cd, Cd106, Cd108, Cd110, Cd111,
Cd112, Cd113, Cd114, Cd116, In, In113, In115, Sn, Sn112, Sn114, Sn115, Sn116, Sn117, Sn118, Sn119, Sn120,
Sn122, Sn124, Sb, Sb121, Sb123, Te, Te120, Te122, Te123, Te124, Te125, Te126, Te128, Te130, I, Xe,
Xe124, Xe126, Xe128, Xe129, Xe130, Xe131, Xe132, Xe134, Xe136, Cs, Ba, Ba130, Ba132, Ba134, Ba135, Ba136,
Ba137, Ba138, La, La138, La139, Ce, Ce136, Ce138, Ce140, Ce142, Pr, Nd, Nd142, Nd143, Nd144, Nd145,
Nd146, Nd148, Nd150, Pm, Sm, Sm144, Sm147, Sm148, Sm149, Sm150, Sm152, Sm154, Eu, Eu151, Eu153, Gd,
Gd152, Gd154, Gd155, Gd156, Gd157, Gd158, Gd160, Tb, Dy, Dy156, Dy158, Dy160, Dy161, Dy162, Dy163, Dy164,
Ho, Er, Er162, Er164, Er166, Er167, Er168, Er170, Tm, Yb, Yb168, Yb170, Yb171, Yb172, Yb173, Yb174,
Yb176, Lu, Lu175, Lu176, Hf, Hf174, Hf176, Hf177, Hf178, Hf179, Hf180, Ta, Ta180, Ta181, W, W180,
W182, W183, W184, W186, Re, Re185, Re187, Os, Os184, Os186, Os187, Os188, Os189, Os190, Os192, Ir,
Ir191, Ir193, Pt, Pt190, Pt192, Pt194, Pt195, Pt196, Pt198, Au, Hg, Hg196, Hg198, Hg199, Hg200, Hg201,
Hg202, Hg204, Tl, Tl203, Tl205, Pb, Pb204, Pb206, Pb207, Pb208, Bi, Po, At, Rn, Fr, Ra,
Ac, Th, Pa, U, U233, U234, U235, U238, Np, Pu, Pu238, Pu239, Pu240, Pu242, Am, Cm,
Cm244, Cm246, Cm248}

All of the atoms in a single array so it can be searched.

Definition at line 539 of file NeutronAtom.cpp.

◆ ATOMS_ARRAY

std::array<Atom, 2845> Mantid::PhysicalConstants::ATOMS_ARRAY
static

Definition at line 2888 of file Atom.cpp.

◆ BoltzmannConstant

constexpr double Mantid::PhysicalConstants::BoltzmannConstant = 8.6173324e-02
staticconstexpr

Boltzmann Constant in meV/K Taken from http://physics.nist.gov/cuu/Constants on 10/07/2012.

Definition at line 83 of file PhysicalConstants.h.

Referenced by export_PhysicalConstants().

◆ E_mev_toNeutronWavenumberSq

constexpr double Mantid::PhysicalConstants::E_mev_toNeutronWavenumberSq
staticconstexpr
Initial value:
=
1.0e20 * h_bar * h_bar / (2 * NeutronMass * meV)
static constexpr double NeutronMass
Mass of the neutron in kg.
static constexpr double meV
1 meV in Joules.
static constexpr double h_bar
Planck constant in J*s, divided by 2 PI.

Transformation coefficient to transform neutron energy into neutron wavevector: K-neutron[m^-10] = sqrt(E_neutron[meV]/E_transtormation[mEv]);.

Definition at line 67 of file PhysicalConstants.h.

Referenced by Mantid::CurveFitting::Functions::VesuvioResolution::cacheResolutionComponents(), Mantid::CurveFitting::Functions::ComptonProfile::cacheYSpaceValues(), Mantid::MDAlgorithms::MDTransfQ3D::calcMatrixCoord3DInelastic(), Mantid::MDAlgorithms::MDTransfModQ::calcMatrixCoordInelastic(), Mantid::CurveFitting::Algorithms::VesuvioCalculateMS::calculateE1Range(), Mantid::CurveFitting::Algorithms::ConvertToYSpace::calculateY(), Mantid::MDAlgorithms::MDTransfModQ::calcYDepCoordinates(), Mantid::MDAlgorithms::MDTransfQ3D::calcYDepCoordinates(), Mantid::CurveFitting::Algorithms::ConvertToYSpace::convert(), Mantid::Algorithms::SofQCommon::directQ(), Mantid::Algorithms::SofQWCentre::exec(), export_PhysicalConstants(), Mantid::Algorithms::SofQCommon::indirectQ(), Mantid::MDAlgorithms::MDTransfModQ::initialize(), Mantid::MDAlgorithms::MDTransfQ3D::initialize(), Mantid::CurveFitting::Algorithms::VesuvioCalculateMS::partialDiffXSec(), and Mantid::CurveFitting::Functions::ComptonPeakProfile::setWorkspace().

◆ g

constexpr double Mantid::PhysicalConstants::g = 9.80665
staticconstexpr

Standard acceleration due to gravity.

Precise value in ms-2.

Definition at line 35 of file PhysicalConstants.h.

Referenced by Mantid::Algorithms::ConvertAxisByFormula::exec(), export_PhysicalConstants(), and Mantid::Algorithms::GravitySANSHelper::gravitationalDrop().

◆ h

constexpr double Mantid::PhysicalConstants::h = 6.62606896e-34
staticconstexpr

Planck constant in J*s.

Taken from http://physics.nist.gov/cuu/Constants on 2007-10-31 and confirmed again on 2010-12-28.

Definition at line 29 of file PhysicalConstants.h.

Referenced by Mantid::Algorithms::SparseWorkspace::bilinearInterpolateFromDetectorGrid(), Mantid::MDAlgorithms::CalculateCoverageDGS::cacheDimensionXValues(), Mantid::MDAlgorithms::MDNormDirectSC::cacheDimensionXValues(), Mantid::MDAlgorithms::MDNormDirectSC::cacheInputs(), Mantid::DataHandling::LoadHelper::calculateEnergy(), Mantid::MDAlgorithms::MDNormDirectSC::calculateNormalization(), Mantid::Algorithms::ConvertToConstantL2::calculateTOF(), Mantid::Algorithms::ConvertEmptyToTof::calculateTOF(), Mantid::DataHandling::LoadHelper::calculateTOF(), Mantid::Kernel::Units::Energy::Energy(), Mantid::Kernel::Units::Energy_inWavenumber::Energy_inWavenumber(), Mantid::Algorithms::ConvertAxisByFormula::exec(), Mantid::Algorithms::GroupToXResolution::exec(), Mantid::Algorithms::ModeratorTzeroLinear::exec(), Mantid::Crystal::IndexSXPeaks::exec(), Mantid::Crystal::LoadHKL::exec(), Mantid::MDAlgorithms::CalculateCoverageDGS::exec(), Mantid::MDAlgorithms::ConvertToMDMinMaxGlobal::exec(), Mantid::MDAlgorithms::RecalculateTrajectoriesExtents::exec(), Mantid::DataHandling::LoadPLN::exec(), export_PhysicalConstants(), Mantid::Algorithms::SparseWorkspace::extremeWavelengths(), Mantid::MDAlgorithms::LoadDNSSCD::fillOutputWorkspace(), Mantid::MDAlgorithms::LoadDNSSCD::fillOutputWorkspaceRaw(), Mantid::MDAlgorithms::MDNorm::getBinParameters(), Mantid::DataObjects::Peak::getDSpacing(), Mantid::DataObjects::LeanElasticPeak::getFinalEnergy(), Mantid::DataHandling::LoadILLSANS::getVariableTimeBinning(), Mantid::DataObjects::Peak::getWavelength(), Mantid::Algorithms::GravitySANSHelper::gravitationalDrop(), Mantid::Algorithms::UnwrapMonitor::init(), Mantid::Algorithms::UnwrapSNS::init(), Mantid::Kernel::Units::Wavelength::init(), Mantid::Kernel::Units::dSpacingPerpendicular::init(), Mantid::Kernel::Units::Momentum::init(), Mantid::Algorithms::DiscusMultipleScatteringCorrection::integrateCumulative(), Mantid::Algorithms::SparseWorkspace::interpolateFromDetectorGrid(), Mantid::Algorithms::SparseWorkspace::modelHistogram(), Mantid::Kernel::Units::Momentum::Momentum(), Mantid::Crystal::LoadIsawPeaks::readPeak(), Mantid::DataObjects::Peak::setWavelength(), Mantid::Algorithms::SparseWorkspace::SparseWorkspace(), and Mantid::Kernel::Units::Wavelength::Wavelength().

◆ h_bar

constexpr double Mantid::PhysicalConstants::h_bar = h / (2 * M_PI)
staticconstexpr

◆ meV

constexpr double Mantid::PhysicalConstants::meV = 1.602176487e-22
staticconstexpr

1 meV in Joules.

Taken from http://physics.nist.gov/cuu/Constants on 28/03/2008.

Definition at line 51 of file PhysicalConstants.h.

Referenced by Mantid::MDAlgorithms::CalculateCoverageDGS::cacheDimensionXValues(), Mantid::MDAlgorithms::MDNormDirectSC::cacheDimensionXValues(), Mantid::MDAlgorithms::MDNormDirectSC::cacheInputs(), Mantid::CurveFitting::Functions::ComptonProfile::cacheYSpaceValues(), Mantid::Algorithms::TimeAtSampleStrategyIndirect::calculate(), Mantid::DataHandling::LoadHelper::calculateEnergy(), Mantid::MDAlgorithms::MDNormDirectSC::calculateNormalization(), Mantid::Algorithms::ModeratorTzeroLinear::calculateTfLi(), Mantid::Algorithms::CorrectTOFAxis::correctManually(), Mantid::Kernel::Units::Energy::Energy(), Mantid::Kernel::Units::Energy_inWavenumber::Energy_inWavenumber(), Mantid::Algorithms::CorelliCrossCorrelate::exec(), Mantid::Algorithms::GetEi::exec(), Mantid::Algorithms::GetEiMonDet3::exec(), Mantid::Algorithms::ModeratorTzero::exec(), Mantid::MDAlgorithms::CalculateCoverageDGS::exec(), Mantid::MDAlgorithms::ConvertToMDMinMaxGlobal::exec(), Mantid::MDAlgorithms::RecalculateTrajectoriesExtents::exec(), Mantid::Algorithms::ModeratorTzero::execEvent(), export_PhysicalConstants(), Mantid::MDAlgorithms::LoadDNSSCD::fillOutputWorkspace(), Mantid::MDAlgorithms::LoadDNSSCD::fillOutputWorkspaceRaw(), Mantid::MDAlgorithms::MDNorm::getBinParameters(), Mantid::DataObjects::Peak::getDSpacing(), Mantid::Algorithms::GetEi2::GetEi2(), Mantid::DataObjects::LeanElasticPeak::getFinalEnergy(), Mantid::DataObjects::Peak::getQLabFrame(), Mantid::DataObjects::Peak::getTOF(), Mantid::DataObjects::Peak::getWavelength(), Mantid::Kernel::Units::Wavelength::init(), Mantid::Kernel::Units::Energy::init(), Mantid::Kernel::Units::Energy_inWavenumber::init(), Mantid::Kernel::Units::DeltaE::init(), Mantid::Kernel::Units::Momentum::init(), Mantid::Kernel::Units::Momentum::Momentum(), Mantid::DataObjects::Peak::setWavelength(), Mantid::Algorithms::TimeAtSampleStrategyDirect::TimeAtSampleStrategyDirect(), Mantid::Algorithms::GetEi::timeToFly(), and Mantid::Kernel::Units::Wavelength::Wavelength().

◆ meVtoFrequency

constexpr double Mantid::PhysicalConstants::meVtoFrequency = 0.2417989262
staticconstexpr

◆ meVtoKelvin

constexpr double Mantid::PhysicalConstants::meVtoKelvin = 11.604519
staticconstexpr

◆ meVtoWavenumber

constexpr double Mantid::PhysicalConstants::meVtoWavenumber = 8.06554465
staticconstexpr

◆ MuonGyromagneticRatio

constexpr double Mantid::PhysicalConstants::MuonGyromagneticRatio = 0.01355342
staticconstexpr

◆ MuonLifetime

constexpr double Mantid::PhysicalConstants::MuonLifetime = 2.1969811e-6
staticconstexpr

Muon lifetime.

Taken from Particle Data Group on 15/1/2016 http://pdg.lbl.gov/2015/tables/rpp2015-sum-leptons.pdf.

Definition at line 72 of file PhysicalConstants.h.

Referenced by export_PhysicalConstants().

◆ N_A

constexpr double Mantid::PhysicalConstants::N_A = 6.02214179e23
staticconstexpr

Avagodro constant in mol-1.

Taken from http://physics.nist.gov/cuu/Constants on 2010-12-28.

Definition at line 25 of file PhysicalConstants.h.

Referenced by export_PhysicalConstants(), and Mantid::Kernel::MaterialBuilder::getOrCalculateRhoAndPacking().

◆ NeutronMass

constexpr double Mantid::PhysicalConstants::NeutronMass = 1.674927211e-27
staticconstexpr

Mass of the neutron in kg.

Taken from http://physics.nist.gov/cuu/Constants on 30/10/2007.

Definition at line 39 of file PhysicalConstants.h.

Referenced by Mantid::MDAlgorithms::CalculateCoverageDGS::cacheDimensionXValues(), Mantid::MDAlgorithms::MDNormDirectSC::cacheDimensionXValues(), Mantid::MDAlgorithms::MDNormDirectSC::cacheInputs(), Mantid::CurveFitting::Functions::ComptonProfile::cacheYSpaceValues(), Mantid::Algorithms::TimeAtSampleStrategyIndirect::calculate(), Mantid::DataHandling::LoadHelper::calculateEnergy(), Mantid::MDAlgorithms::MDNormDirectSC::calculateNormalization(), Mantid::Algorithms::ModeratorTzeroLinear::calculateTfLi(), Mantid::Algorithms::ConvertToConstantL2::calculateTOF(), Mantid::Algorithms::ConvertEmptyToTof::calculateTOF(), Mantid::DataHandling::LoadHelper::calculateTOF(), Mantid::MDAlgorithms::ConvertToDiffractionMDWorkspace::convertEventList(), Mantid::Algorithms::CorrectTOFAxis::correctManually(), Mantid::Kernel::Units::Energy::Energy(), Mantid::Kernel::Units::Energy_inWavenumber::Energy_inWavenumber(), Mantid::Algorithms::AddPeak::exec(), Mantid::Algorithms::ConvertAxisByFormula::exec(), Mantid::Algorithms::CorelliCrossCorrelate::exec(), Mantid::Algorithms::GetEiMonDet3::exec(), Mantid::Algorithms::ModeratorTzero::exec(), Mantid::Algorithms::ModeratorTzeroLinear::exec(), Mantid::MDAlgorithms::CalculateCoverageDGS::exec(), Mantid::MDAlgorithms::ConvertToMDMinMaxGlobal::exec(), Mantid::MDAlgorithms::RecalculateTrajectoriesExtents::exec(), Mantid::DataHandling::LoadPLN::exec(), Mantid::Algorithms::ModeratorTzero::execEvent(), export_PhysicalConstants(), Mantid::MDAlgorithms::LoadDNSSCD::fillOutputWorkspace(), Mantid::MDAlgorithms::LoadDNSSCD::fillOutputWorkspaceRaw(), Mantid::MDAlgorithms::MDNorm::getBinParameters(), Mantid::DataObjects::Peak::getDSpacing(), Mantid::Algorithms::GetEi2::GetEi2(), Mantid::DataObjects::LeanElasticPeak::getFinalEnergy(), Mantid::Crystal::FindSXPeaksHelper::SXPeak::getQ(), Mantid::DataObjects::Peak::getQLabFrame(), Mantid::DataObjects::Peak::getTOF(), Mantid::DataHandling::LoadILLSANS::getVariableTimeBinning(), Mantid::DataObjects::Peak::getWavelength(), Mantid::Algorithms::GravitySANSHelper::gravitationalDrop(), Mantid::Algorithms::UnwrapMonitor::init(), Mantid::Algorithms::UnwrapSNS::init(), Mantid::Kernel::Units::Wavelength::init(), Mantid::Kernel::Units::Energy::init(), Mantid::Kernel::Units::Energy_inWavenumber::init(), Mantid::Kernel::Units::dSpacingPerpendicular::init(), Mantid::Kernel::Units::DeltaE::init(), Mantid::Kernel::Units::Momentum::init(), Mantid::Kernel::Units::Momentum::Momentum(), Mantid::Algorithms::GetEi::neutron_E_At(), Mantid::DataObjects::Peak::setWavelength(), Mantid::Algorithms::TimeAtSampleStrategyDirect::TimeAtSampleStrategyDirect(), Mantid::Algorithms::GetEi::timeToFly(), and Mantid::Kernel::Units::Wavelength::Wavelength().

◆ NeutronMassAMU

constexpr double Mantid::PhysicalConstants::NeutronMassAMU = 1.008664916
staticconstexpr

◆ NUM_ATOMS

const size_t Mantid::PhysicalConstants::NUM_ATOMS = 371
static

The total number of atoms in the array.

Definition at line 566 of file NeutronAtom.cpp.

Referenced by getNeutronAtom(), and getNeutronNoExceptions().

◆ StandardAtmosphere

constexpr double Mantid::PhysicalConstants::StandardAtmosphere = 101.325
staticconstexpr

Standard atmospheric pressure in kPa.

Taken from <http://physics.nist.gov/cgi-bin/cuu/Value?stdatm|search_for=adopted_in!> on 01/12/2010

Definition at line 78 of file PhysicalConstants.h.

Referenced by export_PhysicalConstants().