Elements  6.2
A C++ base framework for the Euclid Software.
Enumerations | Functions | Variables
Elements::Kernel::Units Namespace Reference

Enumerations

enum  StorageType {
  StorageType::Byte, StorageType::KiloByte, StorageType::MegaByte, StorageType::GigaByte,
  StorageType::TeraByte, StorageType::PetaByte, StorageType::MetricKiloByte, StorageType::MetricMegaByte,
  StorageType::MetricGigaByte, StorageType::MetricTeraByte, StorageType::MetricPetaByte
}
 

Functions

template<typename T >
ELEMENTS_APIroundToDigits (const T &value, const std::size_t &max_digits)
 
template ELEMENTS_API double roundToDigits< double > (const double &value, const std::size_t &max_digits)
 
template ELEMENTS_API float roundToDigits< float > (const float &value, const std::size_t &max_digits)
 
template<std::size_t max_digits, typename T >
ELEMENTS_APIstorageConvert (const T &size, StorageType source_unit, StorageType target_unit)
 
template<typename T >
ELEMENTS_APIstorageConvert (const T &size, StorageType source_unit, StorageType target_unit)
 
template ELEMENTS_API double storageConvert< double > (const double &size, StorageType source_unit, StorageType target_unit)
 
template ELEMENTS_API float storageConvert< float > (const float &size, StorageType source_unit, StorageType target_unit)
 
template ELEMENTS_API std::int64_t storageConvert< std::int64_t > (const std::int64_t &size, StorageType source_unit, StorageType target_unit)
 
template int64_t storageConvert< int64_t > (const int64_t &size, StorageType source_unit, StorageType target_unit)
 

Variables

constexpr double pi = 3.14159265358979323846
 \(\pi\) More...
 
constexpr double twopi = 2.0 * pi
 \(2\pi\) More...
 
constexpr double halfpi = pi / 2.0
 \(\pi/2\) More...
 
constexpr double pi2 = pi * pi
 \(\pi^2\) More...
 
constexpr double sqrt_of_pi = 1.77245385090551602730
 \(\sqrt{\pi}\) More...
 
constexpr double sqrt_of_two = 1.41421356237309504880
 \(\sqrt{2}\) More...
 
constexpr double sqrt_of_halfpi = 1.25331413731550025121
 \(\sqrt{\frac{\pi}{2}}\) More...
 
constexpr double gamma = 0.57721566490153286061
 The Euler-Mascheroni \(\gamma\) constant. More...
 
constexpr double e = 2.71828182845904523536
 The base of the natural logarithm \(e\). More...
 
constexpr double Avogadro = 6.0221367e+23 / mole
 \(N_A\) More...
 
constexpr double c_light = 2.99792458e+8 * m / s
 \(c\) More...
 
constexpr double c_squared = c_light * c_light
 \(c^2\) More...
 
constexpr double h_Planck = 6.62606957e-34 * joule * s
 \( h \) More...
 
constexpr double hbar_Planck = h_Planck / twopi
 \( \hbar=h/2\pi\) More...
 
constexpr double hbarc = hbar_Planck * c_light
 \( \hbar c\) More...
 
constexpr double hbarc_squared = hbarc * hbarc
 \( (\hbar c)^2\) More...
 
constexpr double electron_charge = -eplus
 \( -e \) More...
 
constexpr double e_squared = eplus * eplus
 \( e^2 \) More...
 
constexpr double electron_mass = 9.10938291e-31 * kg
 \( m_e \) More...
 
constexpr double proton_mass = 1.672621777e-27 * kg
 \( m_p \) More...
 
constexpr double amu = 1.660538921e-27 * kg
 
constexpr double mu0 = 4 * pi * 1.e-7 * henry / m
 permeability of free space \(\mu_0\) More...
 
constexpr double epsilon0 = 1. / (c_squared * mu0)
 permeability of free space \(\epsilon_0=1/(c^2\mu_0)\) More...
 
constexpr double elm_coupling = e_squared / (4 * pi * epsilon0)
 
constexpr double fine_structure_const = elm_coupling / hbarc
 \( \alpha=e^2/(4\pi\epsilon_0\hbar c)\) More...
 
constexpr double k_Boltzmann = 1.3806488e-23 * joule / kelvin
 
constexpr double STP_Temperature = 273.15 * kelvin
 Standard Temperature and Pressure. More...
 
constexpr double STP_Pressure = 1. * atmosphere
 
constexpr double kGasThreshold = 10. * mg / cm3
 
constexpr double universe_mean_density = 1.e-25 * g / cm3
 
ELEMENTS_API std::map< StorageType, std::stringStorageShortName
 
ELEMENTS_API std::map< StorageType, std::int64_tStorageFactor
 
constexpr double meter = 1.0
 
constexpr double meter2 = meter * meter
 
constexpr double meter3 = meter * meter * meter
 
constexpr double millimeter = 1.e-3 * meter
 
constexpr double millimeter2 = millimeter * millimeter
 
constexpr double millimeter3 = millimeter * millimeter * millimeter
 
constexpr double centimeter = 1.e-2 * meter
 
constexpr double centimeter2 = centimeter * centimeter
 
constexpr double centimeter3 = centimeter * centimeter * centimeter
 
constexpr double kilometer = 1000. * meter
 
constexpr double kilometer2 = kilometer * kilometer
 
constexpr double kilometer3 = kilometer * kilometer * kilometer
 
constexpr double parsec = 3.0856775807e+16 * meter
 
constexpr double micrometer = 1.e-6 * meter
 
constexpr double nanometer = 1.e-9 * meter
 
constexpr double angstrom = 1.e-10 * meter
 
constexpr double fermi = 1.e-15 * meter
 
constexpr double barn = 1.e-28 * meter2
 
constexpr double millibarn = 1.e-3 * barn
 
constexpr double microbarn = 1.e-6 * barn
 
constexpr double nanobarn = 1.e-9 * barn
 
constexpr double picobarn = 1.e-12 * barn
 
constexpr double nm = nanometer
 
constexpr double um = micrometer
 
constexpr double mm = millimeter
 
constexpr double mm2 = millimeter2
 
constexpr double mm3 = millimeter3
 
constexpr double cm = centimeter
 
constexpr double cm2 = centimeter2
 
constexpr double cm3 = centimeter3
 
constexpr double m = meter
 
constexpr double m2 = meter2
 
constexpr double m3 = meter3
 
constexpr double km = kilometer
 
constexpr double km2 = kilometer2
 
constexpr double km3 = kilometer3
 
constexpr double pc = parsec
 
constexpr double radian = 1.
 
constexpr double milliradian = 1.e-3 * radian
 
constexpr double degree = (pi / 180.0) * radian
 
constexpr double steradian = 1.
 
constexpr double rad = radian
 
constexpr double mrad = milliradian
 
constexpr double sr = steradian
 
constexpr double deg = degree
 
constexpr double second = 1.
 
constexpr double nanosecond = 1.e-9 * second
 
constexpr double millisecond = 1.e-3 * second
 
constexpr double microsecond = 1.e-6 * second
 
constexpr double picosecond = 1.e-12 * second
 
constexpr double femtosecond = 1.e-15 * second
 
constexpr double hertz = 1. / second
 
constexpr double kilohertz = 1.e+3 * hertz
 
constexpr double megahertz = 1.e+6 * hertz
 
constexpr double ns = nanosecond
 
constexpr double s = second
 
constexpr double ms = millisecond
 
constexpr double ampere = 1.0
 
constexpr double milliampere = 1.e-3 * ampere
 
constexpr double microampere = 1.e-6 * ampere
 
constexpr double nanoampere = 1.e-9 * ampere
 
constexpr double coulomb = ampere * second
 
constexpr double eplus = 1.
 
constexpr double e_SI = 1.602176565e-19 * coulomb
 
constexpr double kilogram = 1.0
 
constexpr double gram = 1.e-3 * kilogram
 
constexpr double milligram = 1.e-3 * gram
 
constexpr double kg = kilogram
 
constexpr double g = gram
 
constexpr double mg = milligram
 
constexpr double joule = kilogram * (meter * meter) / (second * second)
 
constexpr double electronvolt = joule * e_SI
 
constexpr double megaelectronvolt = 1.e+6 * electronvolt
 
constexpr double kiloelectronvolt = 1.e+3 * electronvolt
 
constexpr double gigaelectronvolt = 1.e+9 * electronvolt
 
constexpr double teraelectronvolt = 1.e+12 * electronvolt
 
constexpr double petaelectronvolt = 1.e+15 * electronvolt
 
constexpr double erg = 1.e-7 * joule
 
constexpr double MeV = megaelectronvolt
 
constexpr double eV = electronvolt
 
constexpr double keV = kiloelectronvolt
 
constexpr double GeV = gigaelectronvolt
 
constexpr double TeV = teraelectronvolt
 
constexpr double PeV = petaelectronvolt
 
constexpr double watt = joule / second
 
constexpr double newton = joule / meter
 
constexpr double Pa = newton / m2
 
constexpr double bar = 100000 * Pa
 
constexpr double atmosphere = 101325 * Pa
 
constexpr double volt = electronvolt / eplus
 
constexpr double megavolt = 1.e+6 * volt
 
constexpr double kilovolt = 1.e+3 * volt
 
constexpr double ohm = volt / ampere
 
constexpr double farad = coulomb / volt
 
constexpr double millifarad = 1.e-3 * farad
 
constexpr double microfarad = 1.e-6 * farad
 
constexpr double nanofarad = 1.e-9 * farad
 
constexpr double picofarad = 1.e-12 * farad
 
constexpr double weber = volt * second
 
constexpr double tesla = volt * second / meter2
 
constexpr double gauss = 1.e-4 * tesla
 
constexpr double kilogauss = 1.e-1 * tesla
 
constexpr double henry = weber / ampere
 
constexpr double kelvin = 1.
 
constexpr double mole = 1.
 
constexpr double becquerel = 1. / second
 
constexpr double curie = 3.7e+10 * becquerel
 
constexpr double gray = joule / kilogram
 
constexpr double candela = 1.
 
constexpr double lumen = candela * steradian
 
constexpr double jansky = 1.e-26 * watt / (m2 * hertz)
 
constexpr double microjansky = 1.e-6 * jansky
 
constexpr double lux = lumen / meter2
 
constexpr double perCent = 0.01
 
constexpr double perThousand = 0.001
 
constexpr double perMillion = 0.000001
 

Enumeration Type Documentation

◆ StorageType

Enumerator
Byte 
KiloByte 
MegaByte 
GigaByte 
TeraByte 
PetaByte 
MetricKiloByte 
MetricMegaByte 
MetricGigaByte 
MetricTeraByte 
MetricPetaByte 

Definition at line 39 of file Storage.h.

Function Documentation

◆ roundToDigits()

template<typename T >
ELEMENTS_API T Elements::Kernel::Units::roundToDigits ( const T &  value,
const std::size_t max_digits 
)

◆ roundToDigits< double >()

template double Elements::Kernel::Units::roundToDigits< double > ( const double &  value,
const std::size_t max_digits 
)

◆ roundToDigits< float >()

template float Elements::Kernel::Units::roundToDigits< float > ( const float &  value,
const std::size_t max_digits 
)

◆ storageConvert() [1/2]

template<std::size_t max_digits, typename T >
ELEMENTS_API T Elements::Kernel::Units::storageConvert ( const T &  size,
StorageType  source_unit,
StorageType  target_unit 
)

◆ storageConvert() [2/2]

template<typename T >
ELEMENTS_API T Elements::Kernel::Units::storageConvert ( const T &  size,
StorageType  source_unit,
StorageType  target_unit 
)

◆ storageConvert< double >()

template double Elements::Kernel::Units::storageConvert< double > ( const double &  size,
StorageType  source_unit,
StorageType  target_unit 
)

◆ storageConvert< float >()

template float Elements::Kernel::Units::storageConvert< float > ( const float &  size,
StorageType  source_unit,
StorageType  target_unit 
)

◆ storageConvert< int64_t >()

template int64_t Elements::Kernel::Units::storageConvert< int64_t > ( const int64_t size,
StorageType  source_unit,
StorageType  target_unit 
)

◆ storageConvert< std::int64_t >()

Variable Documentation

◆ ampere

constexpr double Elements::Kernel::Units::ampere = 1.0
constexpr

Definition at line 127 of file SystemOfUnits.h.

◆ amu

constexpr double Elements::Kernel::Units::amu = 1.660538921e-27 * kg
constexpr

Definition at line 62 of file PhysConstants.h.

◆ angstrom

constexpr double Elements::Kernel::Units::angstrom = 1.e-10 * meter
constexpr

Definition at line 58 of file SystemOfUnits.h.

◆ atmosphere

constexpr double Elements::Kernel::Units::atmosphere = 101325 * Pa
constexpr

Definition at line 186 of file SystemOfUnits.h.

◆ Avogadro

constexpr double Elements::Kernel::Units::Avogadro = 6.0221367e+23 / mole
constexpr

\(N_A\)

Definition at line 37 of file PhysConstants.h.

◆ bar

constexpr double Elements::Kernel::Units::bar = 100000 * Pa
constexpr

Definition at line 185 of file SystemOfUnits.h.

◆ barn

constexpr double Elements::Kernel::Units::barn = 1.e-28 * meter2
constexpr

Definition at line 61 of file SystemOfUnits.h.

◆ becquerel

constexpr double Elements::Kernel::Units::becquerel = 1. / second
constexpr

Definition at line 239 of file SystemOfUnits.h.

◆ c_light

constexpr double Elements::Kernel::Units::c_light = 2.99792458e+8 * m / s
constexpr

\(c\)

Definition at line 40 of file PhysConstants.h.

◆ c_squared

constexpr double Elements::Kernel::Units::c_squared = c_light * c_light
constexpr

\(c^2\)

Definition at line 42 of file PhysConstants.h.

◆ candela

constexpr double Elements::Kernel::Units::candela = 1.
constexpr

Definition at line 250 of file SystemOfUnits.h.

◆ centimeter

constexpr double Elements::Kernel::Units::centimeter = 1.e-2 * meter
constexpr

Definition at line 46 of file SystemOfUnits.h.

◆ centimeter2

constexpr double Elements::Kernel::Units::centimeter2 = centimeter * centimeter
constexpr

Definition at line 47 of file SystemOfUnits.h.

◆ centimeter3

constexpr double Elements::Kernel::Units::centimeter3 = centimeter * centimeter * centimeter
constexpr

Definition at line 48 of file SystemOfUnits.h.

◆ cm

constexpr double Elements::Kernel::Units::cm = centimeter
constexpr

Definition at line 75 of file SystemOfUnits.h.

◆ cm2

constexpr double Elements::Kernel::Units::cm2 = centimeter2
constexpr

Definition at line 76 of file SystemOfUnits.h.

◆ cm3

constexpr double Elements::Kernel::Units::cm3 = centimeter3
constexpr

Definition at line 77 of file SystemOfUnits.h.

◆ coulomb

constexpr double Elements::Kernel::Units::coulomb = ampere * second
constexpr

Definition at line 135 of file SystemOfUnits.h.

◆ curie

constexpr double Elements::Kernel::Units::curie = 3.7e+10 * becquerel
constexpr

Definition at line 240 of file SystemOfUnits.h.

◆ deg

constexpr double Elements::Kernel::Units::deg = degree
constexpr

Definition at line 102 of file SystemOfUnits.h.

◆ degree

constexpr double Elements::Kernel::Units::degree = (pi / 180.0) * radian
constexpr

Definition at line 94 of file SystemOfUnits.h.

◆ e

constexpr double Elements::Kernel::Units::e = 2.71828182845904523536
constexpr

◆ e_SI

constexpr double Elements::Kernel::Units::e_SI = 1.602176565e-19 * coulomb
constexpr

Definition at line 137 of file SystemOfUnits.h.

◆ e_squared

constexpr double Elements::Kernel::Units::e_squared = eplus * eplus
constexpr

\( e^2 \)

Definition at line 56 of file PhysConstants.h.

◆ electron_charge

constexpr double Elements::Kernel::Units::electron_charge = -eplus
constexpr

\( -e \)

Definition at line 54 of file PhysConstants.h.

◆ electron_mass

constexpr double Elements::Kernel::Units::electron_mass = 9.10938291e-31 * kg
constexpr

\( m_e \)

Definition at line 59 of file PhysConstants.h.

◆ electronvolt

constexpr double Elements::Kernel::Units::electronvolt = joule * e_SI
constexpr

Definition at line 155 of file SystemOfUnits.h.

◆ elm_coupling

constexpr double Elements::Kernel::Units::elm_coupling = e_squared / (4 * pi * epsilon0)
constexpr

Definition at line 69 of file PhysConstants.h.

◆ eplus

constexpr double Elements::Kernel::Units::eplus = 1.
constexpr

Definition at line 136 of file SystemOfUnits.h.

◆ epsilon0

constexpr double Elements::Kernel::Units::epsilon0 = 1. / (c_squared * mu0)
constexpr

permeability of free space \(\epsilon_0=1/(c^2\mu_0)\)

Definition at line 67 of file PhysConstants.h.

◆ erg

constexpr double Elements::Kernel::Units::erg = 1.e-7 * joule
constexpr

Definition at line 161 of file SystemOfUnits.h.

◆ eV

constexpr double Elements::Kernel::Units::eV = electronvolt
constexpr

Definition at line 165 of file SystemOfUnits.h.

◆ farad

constexpr double Elements::Kernel::Units::farad = coulomb / volt
constexpr

Definition at line 203 of file SystemOfUnits.h.

◆ femtosecond

constexpr double Elements::Kernel::Units::femtosecond = 1.e-15 * second
constexpr

Definition at line 113 of file SystemOfUnits.h.

◆ fermi

constexpr double Elements::Kernel::Units::fermi = 1.e-15 * meter
constexpr

Definition at line 59 of file SystemOfUnits.h.

◆ fine_structure_const

constexpr double Elements::Kernel::Units::fine_structure_const = elm_coupling / hbarc
constexpr

\( \alpha=e^2/(4\pi\epsilon_0\hbar c)\)

Definition at line 71 of file PhysConstants.h.

◆ g

constexpr double Elements::Kernel::Units::g = gram
constexpr

Definition at line 148 of file SystemOfUnits.h.

◆ gamma

constexpr double Elements::Kernel::Units::gamma = 0.57721566490153286061
constexpr

The Euler-Mascheroni \(\gamma\) constant.

Definition at line 49 of file MathConstants.h.

◆ gauss

constexpr double Elements::Kernel::Units::gauss = 1.e-4 * tesla
constexpr

Definition at line 218 of file SystemOfUnits.h.

◆ GeV

constexpr double Elements::Kernel::Units::GeV = gigaelectronvolt
constexpr

Definition at line 167 of file SystemOfUnits.h.

◆ gigaelectronvolt

constexpr double Elements::Kernel::Units::gigaelectronvolt = 1.e+9 * electronvolt
constexpr

Definition at line 158 of file SystemOfUnits.h.

◆ gram

constexpr double Elements::Kernel::Units::gram = 1.e-3 * kilogram
constexpr

Definition at line 143 of file SystemOfUnits.h.

◆ gray

constexpr double Elements::Kernel::Units::gray = joule / kilogram
constexpr

Definition at line 245 of file SystemOfUnits.h.

◆ h_Planck

constexpr double Elements::Kernel::Units::h_Planck = 6.62606957e-34 * joule * s
constexpr

\( h \)

Definition at line 45 of file PhysConstants.h.

◆ halfpi

constexpr double Elements::Kernel::Units::halfpi = pi / 2.0
constexpr

\(\pi/2\)

Definition at line 38 of file MathConstants.h.

◆ hbar_Planck

constexpr double Elements::Kernel::Units::hbar_Planck = h_Planck / twopi
constexpr

\( \hbar=h/2\pi\)

Definition at line 47 of file PhysConstants.h.

◆ hbarc

constexpr double Elements::Kernel::Units::hbarc = hbar_Planck * c_light
constexpr

\( \hbar c\)

Definition at line 49 of file PhysConstants.h.

◆ hbarc_squared

constexpr double Elements::Kernel::Units::hbarc_squared = hbarc * hbarc
constexpr

\( (\hbar c)^2\)

Definition at line 51 of file PhysConstants.h.

◆ henry

constexpr double Elements::Kernel::Units::henry = weber / ampere
constexpr

Definition at line 224 of file SystemOfUnits.h.

◆ hertz

constexpr double Elements::Kernel::Units::hertz = 1. / second
constexpr

Definition at line 115 of file SystemOfUnits.h.

◆ jansky

constexpr double Elements::Kernel::Units::jansky = 1.e-26 * watt / (m2 * hertz)
constexpr

Definition at line 256 of file SystemOfUnits.h.

◆ joule

constexpr double Elements::Kernel::Units::joule = kilogram * (meter * meter) / (second * second)
constexpr

Definition at line 154 of file SystemOfUnits.h.

◆ k_Boltzmann

constexpr double Elements::Kernel::Units::k_Boltzmann = 1.3806488e-23 * joule / kelvin
constexpr

Definition at line 73 of file PhysConstants.h.

◆ kelvin

constexpr double Elements::Kernel::Units::kelvin = 1.
constexpr

Definition at line 229 of file SystemOfUnits.h.

◆ keV

constexpr double Elements::Kernel::Units::keV = kiloelectronvolt
constexpr

Definition at line 166 of file SystemOfUnits.h.

◆ kg

constexpr double Elements::Kernel::Units::kg = kilogram
constexpr

Definition at line 147 of file SystemOfUnits.h.

◆ kGasThreshold

constexpr double Elements::Kernel::Units::kGasThreshold = 10. * mg / cm3
constexpr

Definition at line 78 of file PhysConstants.h.

◆ kiloelectronvolt

constexpr double Elements::Kernel::Units::kiloelectronvolt = 1.e+3 * electronvolt
constexpr

Definition at line 157 of file SystemOfUnits.h.

◆ kilogauss

constexpr double Elements::Kernel::Units::kilogauss = 1.e-1 * tesla
constexpr

Definition at line 219 of file SystemOfUnits.h.

◆ kilogram

constexpr double Elements::Kernel::Units::kilogram = 1.0
constexpr

Definition at line 142 of file SystemOfUnits.h.

◆ kilohertz

constexpr double Elements::Kernel::Units::kilohertz = 1.e+3 * hertz
constexpr

Definition at line 116 of file SystemOfUnits.h.

◆ kilometer

constexpr double Elements::Kernel::Units::kilometer = 1000. * meter
constexpr

Definition at line 50 of file SystemOfUnits.h.

◆ kilometer2

constexpr double Elements::Kernel::Units::kilometer2 = kilometer * kilometer
constexpr

Definition at line 51 of file SystemOfUnits.h.

◆ kilometer3

constexpr double Elements::Kernel::Units::kilometer3 = kilometer * kilometer * kilometer
constexpr

Definition at line 52 of file SystemOfUnits.h.

◆ kilovolt

constexpr double Elements::Kernel::Units::kilovolt = 1.e+3 * volt
constexpr

Definition at line 193 of file SystemOfUnits.h.

◆ km

constexpr double Elements::Kernel::Units::km = kilometer
constexpr

Definition at line 83 of file SystemOfUnits.h.

◆ km2

constexpr double Elements::Kernel::Units::km2 = kilometer2
constexpr

Definition at line 84 of file SystemOfUnits.h.

◆ km3

constexpr double Elements::Kernel::Units::km3 = kilometer3
constexpr

Definition at line 85 of file SystemOfUnits.h.

◆ lumen

constexpr double Elements::Kernel::Units::lumen = candela * steradian
constexpr

Definition at line 255 of file SystemOfUnits.h.

◆ lux

constexpr double Elements::Kernel::Units::lux = lumen / meter2
constexpr

Definition at line 262 of file SystemOfUnits.h.

◆ m

constexpr double Elements::Kernel::Units::m = meter
constexpr

◆ m2

constexpr double Elements::Kernel::Units::m2 = meter2
constexpr

Definition at line 80 of file SystemOfUnits.h.

◆ m3

constexpr double Elements::Kernel::Units::m3 = meter3
constexpr

Definition at line 81 of file SystemOfUnits.h.

◆ megaelectronvolt

constexpr double Elements::Kernel::Units::megaelectronvolt = 1.e+6 * electronvolt
constexpr

Definition at line 156 of file SystemOfUnits.h.

◆ megahertz

constexpr double Elements::Kernel::Units::megahertz = 1.e+6 * hertz
constexpr

Definition at line 117 of file SystemOfUnits.h.

◆ megavolt

constexpr double Elements::Kernel::Units::megavolt = 1.e+6 * volt
constexpr

Definition at line 192 of file SystemOfUnits.h.

◆ meter

constexpr double Elements::Kernel::Units::meter = 1.0
constexpr

Definition at line 38 of file SystemOfUnits.h.

◆ meter2

constexpr double Elements::Kernel::Units::meter2 = meter * meter
constexpr

Definition at line 39 of file SystemOfUnits.h.

◆ meter3

constexpr double Elements::Kernel::Units::meter3 = meter * meter * meter
constexpr

Definition at line 40 of file SystemOfUnits.h.

◆ MeV

constexpr double Elements::Kernel::Units::MeV = megaelectronvolt
constexpr

Definition at line 164 of file SystemOfUnits.h.

◆ mg

constexpr double Elements::Kernel::Units::mg = milligram
constexpr

Definition at line 149 of file SystemOfUnits.h.

◆ microampere

constexpr double Elements::Kernel::Units::microampere = 1.e-6 * ampere
constexpr

Definition at line 129 of file SystemOfUnits.h.

◆ microbarn

constexpr double Elements::Kernel::Units::microbarn = 1.e-6 * barn
constexpr

Definition at line 63 of file SystemOfUnits.h.

◆ microfarad

constexpr double Elements::Kernel::Units::microfarad = 1.e-6 * farad
constexpr

Definition at line 205 of file SystemOfUnits.h.

◆ microjansky

constexpr double Elements::Kernel::Units::microjansky = 1.e-6 * jansky
constexpr

Definition at line 257 of file SystemOfUnits.h.

◆ micrometer

constexpr double Elements::Kernel::Units::micrometer = 1.e-6 * meter
constexpr

Definition at line 56 of file SystemOfUnits.h.

◆ microsecond

constexpr double Elements::Kernel::Units::microsecond = 1.e-6 * second
constexpr

Definition at line 111 of file SystemOfUnits.h.

◆ milliampere

constexpr double Elements::Kernel::Units::milliampere = 1.e-3 * ampere
constexpr

Definition at line 128 of file SystemOfUnits.h.

◆ millibarn

constexpr double Elements::Kernel::Units::millibarn = 1.e-3 * barn
constexpr

Definition at line 62 of file SystemOfUnits.h.

◆ millifarad

constexpr double Elements::Kernel::Units::millifarad = 1.e-3 * farad
constexpr

Definition at line 204 of file SystemOfUnits.h.

◆ milligram

constexpr double Elements::Kernel::Units::milligram = 1.e-3 * gram
constexpr

Definition at line 144 of file SystemOfUnits.h.

◆ millimeter

constexpr double Elements::Kernel::Units::millimeter = 1.e-3 * meter
constexpr

Definition at line 42 of file SystemOfUnits.h.

◆ millimeter2

constexpr double Elements::Kernel::Units::millimeter2 = millimeter * millimeter
constexpr

Definition at line 43 of file SystemOfUnits.h.

◆ millimeter3

constexpr double Elements::Kernel::Units::millimeter3 = millimeter * millimeter * millimeter
constexpr

Definition at line 44 of file SystemOfUnits.h.

◆ milliradian

constexpr double Elements::Kernel::Units::milliradian = 1.e-3 * radian
constexpr

Definition at line 93 of file SystemOfUnits.h.

◆ millisecond

constexpr double Elements::Kernel::Units::millisecond = 1.e-3 * second
constexpr

Definition at line 110 of file SystemOfUnits.h.

◆ mm

constexpr double Elements::Kernel::Units::mm = millimeter
constexpr

Definition at line 71 of file SystemOfUnits.h.

◆ mm2

constexpr double Elements::Kernel::Units::mm2 = millimeter2
constexpr

Definition at line 72 of file SystemOfUnits.h.

◆ mm3

constexpr double Elements::Kernel::Units::mm3 = millimeter3
constexpr

Definition at line 73 of file SystemOfUnits.h.

◆ mole

constexpr double Elements::Kernel::Units::mole = 1.
constexpr

Definition at line 234 of file SystemOfUnits.h.

◆ mrad

constexpr double Elements::Kernel::Units::mrad = milliradian
constexpr

Definition at line 100 of file SystemOfUnits.h.

◆ ms

constexpr double Elements::Kernel::Units::ms = millisecond
constexpr

Definition at line 122 of file SystemOfUnits.h.

◆ mu0

constexpr double Elements::Kernel::Units::mu0 = 4 * pi * 1.e-7 * henry / m
constexpr

permeability of free space \(\mu_0\)

Definition at line 65 of file PhysConstants.h.

◆ nanoampere

constexpr double Elements::Kernel::Units::nanoampere = 1.e-9 * ampere
constexpr

Definition at line 130 of file SystemOfUnits.h.

◆ nanobarn

constexpr double Elements::Kernel::Units::nanobarn = 1.e-9 * barn
constexpr

Definition at line 64 of file SystemOfUnits.h.

◆ nanofarad

constexpr double Elements::Kernel::Units::nanofarad = 1.e-9 * farad
constexpr

Definition at line 206 of file SystemOfUnits.h.

◆ nanometer

constexpr double Elements::Kernel::Units::nanometer = 1.e-9 * meter
constexpr

Definition at line 57 of file SystemOfUnits.h.

◆ nanosecond

constexpr double Elements::Kernel::Units::nanosecond = 1.e-9 * second
constexpr

Definition at line 109 of file SystemOfUnits.h.

◆ newton

constexpr double Elements::Kernel::Units::newton = joule / meter
constexpr

Definition at line 179 of file SystemOfUnits.h.

◆ nm

constexpr double Elements::Kernel::Units::nm = nanometer
constexpr

Definition at line 68 of file SystemOfUnits.h.

◆ ns

constexpr double Elements::Kernel::Units::ns = nanosecond
constexpr

Definition at line 120 of file SystemOfUnits.h.

◆ ohm

constexpr double Elements::Kernel::Units::ohm = volt / ampere
constexpr

Definition at line 198 of file SystemOfUnits.h.

◆ Pa

constexpr double Elements::Kernel::Units::Pa = newton / m2
constexpr

Definition at line 184 of file SystemOfUnits.h.

◆ parsec

constexpr double Elements::Kernel::Units::parsec = 3.0856775807e+16 * meter
constexpr

Definition at line 54 of file SystemOfUnits.h.

◆ pc

constexpr double Elements::Kernel::Units::pc = parsec
constexpr

Definition at line 87 of file SystemOfUnits.h.

◆ perCent

constexpr double Elements::Kernel::Units::perCent = 0.01
constexpr

Definition at line 267 of file SystemOfUnits.h.

◆ perMillion

constexpr double Elements::Kernel::Units::perMillion = 0.000001
constexpr

Definition at line 269 of file SystemOfUnits.h.

◆ perThousand

constexpr double Elements::Kernel::Units::perThousand = 0.001
constexpr

Definition at line 268 of file SystemOfUnits.h.

◆ petaelectronvolt

constexpr double Elements::Kernel::Units::petaelectronvolt = 1.e+15 * electronvolt
constexpr

Definition at line 160 of file SystemOfUnits.h.

◆ PeV

constexpr double Elements::Kernel::Units::PeV = petaelectronvolt
constexpr

Definition at line 169 of file SystemOfUnits.h.

◆ pi

constexpr double Elements::Kernel::Units::pi = 3.14159265358979323846
constexpr

◆ pi2

constexpr double Elements::Kernel::Units::pi2 = pi * pi
constexpr

\(\pi^2\)

Definition at line 40 of file MathConstants.h.

◆ picobarn

constexpr double Elements::Kernel::Units::picobarn = 1.e-12 * barn
constexpr

Definition at line 65 of file SystemOfUnits.h.

◆ picofarad

constexpr double Elements::Kernel::Units::picofarad = 1.e-12 * farad
constexpr

Definition at line 207 of file SystemOfUnits.h.

◆ picosecond

constexpr double Elements::Kernel::Units::picosecond = 1.e-12 * second
constexpr

Definition at line 112 of file SystemOfUnits.h.

◆ proton_mass

constexpr double Elements::Kernel::Units::proton_mass = 1.672621777e-27 * kg
constexpr

\( m_p \)

Definition at line 61 of file PhysConstants.h.

◆ rad

constexpr double Elements::Kernel::Units::rad = radian
constexpr

Definition at line 99 of file SystemOfUnits.h.

◆ radian

constexpr double Elements::Kernel::Units::radian = 1.
constexpr

Definition at line 92 of file SystemOfUnits.h.

◆ s

constexpr double Elements::Kernel::Units::s = second
constexpr

◆ second

constexpr double Elements::Kernel::Units::second = 1.
constexpr

◆ sqrt_of_halfpi

constexpr double Elements::Kernel::Units::sqrt_of_halfpi = 1.25331413731550025121
constexpr

\(\sqrt{\frac{\pi}{2}}\)

Definition at line 46 of file MathConstants.h.

◆ sqrt_of_pi

constexpr double Elements::Kernel::Units::sqrt_of_pi = 1.77245385090551602730
constexpr

\(\sqrt{\pi}\)

Definition at line 42 of file MathConstants.h.

◆ sqrt_of_two

constexpr double Elements::Kernel::Units::sqrt_of_two = 1.41421356237309504880
constexpr

\(\sqrt{2}\)

Definition at line 44 of file MathConstants.h.

◆ sr

constexpr double Elements::Kernel::Units::sr = steradian
constexpr

Definition at line 101 of file SystemOfUnits.h.

◆ steradian

constexpr double Elements::Kernel::Units::steradian = 1.
constexpr

Definition at line 96 of file SystemOfUnits.h.

◆ StorageFactor

map< StorageType, int64_t > Elements::Kernel::Units::StorageFactor
Initial value:
{{StorageType::Byte, 1},
{StorageType::KiloByte, pow(2, 10)},
{StorageType::MegaByte, pow(2, 20)},
{StorageType::GigaByte, pow(2, 30)},
{StorageType::TeraByte, pow(2, 40)},
{StorageType::PetaByte, pow(2, 50)},
{StorageType::MetricKiloByte, pow(10, 3)},
{StorageType::MetricMegaByte, pow(10, 6)},
{StorageType::MetricGigaByte, pow(10, 9)},
{StorageType::MetricTeraByte, pow(10, 12)},
{StorageType::MetricPetaByte, pow(10, 15)}}

Definition at line 50 of file Storage.cpp.

◆ StorageShortName

map< StorageType, std::string > Elements::Kernel::Units::StorageShortName
Initial value:
{{StorageType::Byte, "B"},
{StorageType::KiloByte, "KiB"},
{StorageType::MegaByte, "MiB"},
{StorageType::GigaByte, "GiB"},
{StorageType::TeraByte, "TiB"},
{StorageType::PetaByte, "PiB"},
{StorageType::MetricKiloByte, "KB"},
{StorageType::MetricMegaByte, "MB"},
{StorageType::MetricGigaByte, "GB"},
{StorageType::MetricTeraByte, "TB"},
{StorageType::MetricPetaByte, "PB"}}

Definition at line 38 of file Storage.cpp.

◆ STP_Pressure

constexpr double Elements::Kernel::Units::STP_Pressure = 1. * atmosphere
constexpr

Definition at line 77 of file PhysConstants.h.

◆ STP_Temperature

constexpr double Elements::Kernel::Units::STP_Temperature = 273.15 * kelvin
constexpr

Standard Temperature and Pressure.

Definition at line 76 of file PhysConstants.h.

◆ teraelectronvolt

constexpr double Elements::Kernel::Units::teraelectronvolt = 1.e+12 * electronvolt
constexpr

Definition at line 159 of file SystemOfUnits.h.

◆ tesla

constexpr double Elements::Kernel::Units::tesla = volt * second / meter2
constexpr

Definition at line 216 of file SystemOfUnits.h.

◆ TeV

constexpr double Elements::Kernel::Units::TeV = teraelectronvolt
constexpr

Definition at line 168 of file SystemOfUnits.h.

◆ twopi

constexpr double Elements::Kernel::Units::twopi = 2.0 * pi
constexpr

\(2\pi\)

Definition at line 36 of file MathConstants.h.

◆ um

constexpr double Elements::Kernel::Units::um = micrometer
constexpr

Definition at line 69 of file SystemOfUnits.h.

◆ universe_mean_density

constexpr double Elements::Kernel::Units::universe_mean_density = 1.e-25 * g / cm3
constexpr

Definition at line 80 of file PhysConstants.h.

◆ volt

constexpr double Elements::Kernel::Units::volt = electronvolt / eplus
constexpr

Definition at line 191 of file SystemOfUnits.h.

◆ watt

constexpr double Elements::Kernel::Units::watt = joule / second
constexpr

Definition at line 174 of file SystemOfUnits.h.

◆ weber

constexpr double Elements::Kernel::Units::weber = volt * second
constexpr

Definition at line 212 of file SystemOfUnits.h.

std::pow
T pow(T... args)