Elements  5.8
A C++ base framework for the Euclid Software.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 namespace Units {
34 
36  constexpr double Avogadro = 6.0221367e+23/mole;
37 
39  constexpr double c_light = 2.99792458e+8 * m/s;
41  constexpr double c_squared = c_light * c_light;
42 
44  constexpr double h_Planck = 6.62606957e-34 * joule * s;
46  constexpr double hbar_Planck = h_Planck/twopi;
48  constexpr double hbarc = hbar_Planck * c_light;
50  constexpr double hbarc_squared = hbarc * hbarc;
51 
53  constexpr double electron_charge = - eplus; // see SystemOfUnits.h
55  constexpr double e_squared = eplus * eplus;
56 
58  constexpr double electron_mass = 9.10938291e-31 * kg;
60  constexpr double proton_mass = 1.672621777e-27 * kg;
61  constexpr double amu = 1.660538921e-27 * kg;
62 
64  constexpr double mu0 = 4*pi*1.e-7 * henry/m;
66  constexpr double epsilon0 = 1./(c_squared*mu0);
67 
68  constexpr double elm_coupling = e_squared/(4*pi*epsilon0);
71 
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 Elements
84 
85 #endif // ELEMENTSKERNEL_ELEMENTSKERNEL_PHYSCONSTANTS_H_
86 
constexpr double pi
Definition: MathConstants.h:33
constexpr double hbarc_squared
Definition: PhysConstants.h:50
constexpr double hbarc
Definition: PhysConstants.h:48
constexpr double cm3
Definition: SystemOfUnits.h:77
constexpr double e_squared
Definition: PhysConstants.h:55
constexpr double h_Planck
Definition: PhysConstants.h:44
constexpr double eplus
constexpr double s
constexpr double Avogadro
Definition: PhysConstants.h:36
constexpr double mole
constexpr double electron_charge
Definition: PhysConstants.h:53
constexpr double mg
constexpr double amu
Definition: PhysConstants.h:61
constexpr double kg
constexpr double STP_Pressure
Definition: PhysConstants.h:77
constexpr double k_Boltzmann
Definition: PhysConstants.h:73
constexpr double m
Definition: SystemOfUnits.h:79
constexpr double universe_mean_density
Definition: PhysConstants.h:80
constexpr double c_squared
Definition: PhysConstants.h:41
constexpr double kelvin
constexpr double kGasThreshold
Definition: PhysConstants.h:78
constexpr double joule
constexpr double hbar_Planck
Definition: PhysConstants.h:46
constexpr double STP_Temperature
Standard Temperature and Pressure.
Definition: PhysConstants.h:76
Definition of the common units based on MKSA.
constexpr double electron_mass
Definition: PhysConstants.h:58
constexpr double atmosphere
constexpr double elm_coupling
Definition: PhysConstants.h:68
constexpr double fine_structure_const
Definition: PhysConstants.h:70
constexpr double henry
constexpr double mu0
permeability of free space
Definition: PhysConstants.h:64
constexpr double epsilon0
permeability of free space
Definition: PhysConstants.h:66
constexpr double proton_mass
Definition: PhysConstants.h:60
constexpr double g
constexpr double twopi
Definition: MathConstants.h:35
constexpr double c_light
Definition: PhysConstants.h:39