Elements  6.2
A C++ base framework for the Euclid Software.
PhysConstants.h
Go to the documentation of this file.
1 
27 #ifndef ELEMENTSKERNEL_ELEMENTSKERNEL_PHYSCONSTANTS_H_
28 #define ELEMENTSKERNEL_ELEMENTSKERNEL_PHYSCONSTANTS_H_
29 
31 
32 namespace Elements {
33 inline namespace Kernel {
34 namespace Units {
35 
37 constexpr double Avogadro = 6.0221367e+23 / mole;
38 
40 constexpr double c_light = 2.99792458e+8 * m / s;
42 constexpr double c_squared = c_light * c_light;
43 
45 constexpr double h_Planck = 6.62606957e-34 * joule * s;
47 constexpr double hbar_Planck = h_Planck / twopi;
49 constexpr double hbarc = hbar_Planck * c_light;
51 constexpr double hbarc_squared = hbarc * hbarc;
52 
54 constexpr double electron_charge = -eplus; // see SystemOfUnits.h
56 constexpr double e_squared = eplus * eplus;
57 
59 constexpr double electron_mass = 9.10938291e-31 * kg;
61 constexpr double proton_mass = 1.672621777e-27 * kg;
62 constexpr double amu = 1.660538921e-27 * kg;
63 
65 constexpr double mu0 = 4 * pi * 1.e-7 * henry / m;
67 constexpr double epsilon0 = 1. / (c_squared * mu0);
68 
69 constexpr double elm_coupling = e_squared / (4 * pi * epsilon0);
72 
73 constexpr double k_Boltzmann = 1.3806488e-23 * joule / kelvin;
74 
76 constexpr double STP_Temperature = 273.15 * kelvin;
77 constexpr double STP_Pressure = 1. * atmosphere;
78 constexpr double kGasThreshold = 10. * mg / cm3;
79 
80 constexpr double universe_mean_density = 1.e-25 * g / cm3;
81 
82 } // namespace Units
83 } // namespace Kernel
84 } // namespace Elements
85 
86 #endif // ELEMENTSKERNEL_ELEMENTSKERNEL_PHYSCONSTANTS_H_
87 
Elements::Kernel::Units::hbarc_squared
constexpr double hbarc_squared
Definition: PhysConstants.h:51
Elements::Kernel::Units::mg
constexpr double mg
Definition: SystemOfUnits.h:149
Elements::Kernel::Units::STP_Pressure
constexpr double STP_Pressure
Definition: PhysConstants.h:77
Elements::Kernel::Units::twopi
constexpr double twopi
Definition: MathConstants.h:36
Elements::Kernel::Units::elm_coupling
constexpr double elm_coupling
Definition: PhysConstants.h:69
Elements::Kernel::Units::hbar_Planck
constexpr double hbar_Planck
Definition: PhysConstants.h:47
Elements::Kernel::Units::amu
constexpr double amu
Definition: PhysConstants.h:62
Elements::Kernel::Units::g
constexpr double g
Definition: SystemOfUnits.h:148
Elements::Kernel::Units::k_Boltzmann
constexpr double k_Boltzmann
Definition: PhysConstants.h:73
SystemOfUnits.h
Definition of the common units based on MKSA.
Elements::Kernel::Units::mu0
constexpr double mu0
permeability of free space
Definition: PhysConstants.h:65
Elements::Kernel::Units::c_light
constexpr double c_light
Definition: PhysConstants.h:40
Elements::Kernel::Units::atmosphere
constexpr double atmosphere
Definition: SystemOfUnits.h:186
Elements::Kernel::Units::h_Planck
constexpr double h_Planck
Definition: PhysConstants.h:45
Elements::Kernel::Units::m
constexpr double m
Definition: SystemOfUnits.h:79
Elements::Kernel::Units::pi
constexpr double pi
Definition: MathConstants.h:34
Elements::Kernel::Units::eplus
constexpr double eplus
Definition: SystemOfUnits.h:136
Elements::Kernel::Units::STP_Temperature
constexpr double STP_Temperature
Standard Temperature and Pressure.
Definition: PhysConstants.h:76
Elements::Kernel::Units::electron_mass
constexpr double electron_mass
Definition: PhysConstants.h:59
Elements::Kernel::Units::proton_mass
constexpr double proton_mass
Definition: PhysConstants.h:61
Elements::Kernel::Units::c_squared
constexpr double c_squared
Definition: PhysConstants.h:42
Elements::Kernel::Units::Avogadro
constexpr double Avogadro
Definition: PhysConstants.h:37
Elements::Kernel::Units::cm3
constexpr double cm3
Definition: SystemOfUnits.h:77
Elements::Kernel::Units::epsilon0
constexpr double epsilon0
permeability of free space
Definition: PhysConstants.h:67
Elements::Kernel::Units::universe_mean_density
constexpr double universe_mean_density
Definition: PhysConstants.h:80
Elements::Kernel::Units::joule
constexpr double joule
Definition: SystemOfUnits.h:154
Elements::Kernel::Units::kg
constexpr double kg
Definition: SystemOfUnits.h:147
Elements::Kernel::Units::kelvin
constexpr double kelvin
Definition: SystemOfUnits.h:229
Elements::Kernel::Units::kGasThreshold
constexpr double kGasThreshold
Definition: PhysConstants.h:78
Elements::Kernel::Units::henry
constexpr double henry
Definition: SystemOfUnits.h:224
Elements::Kernel::Units::hbarc
constexpr double hbarc
Definition: PhysConstants.h:49
Elements::Kernel::Units::e_squared
constexpr double e_squared
Definition: PhysConstants.h:56
Elements::Kernel::Units::fine_structure_const
constexpr double fine_structure_const
Definition: PhysConstants.h:71
Elements::Kernel::Units::mole
constexpr double mole
Definition: SystemOfUnits.h:234
Elements::Kernel::Units::s
constexpr double s
Definition: SystemOfUnits.h:121
Elements::Kernel::Units::electron_charge
constexpr double electron_charge
Definition: PhysConstants.h:54
Elements
Definition: callBackExample.h:35