Elements 6.3.3
A C++ base framework for the Euclid Software.
Loading...
Searching...
No Matches
PhysConstants.h
Go to the documentation of this file.
1
21
26
27#ifndef ELEMENTSKERNEL_ELEMENTSKERNEL_PHYSCONSTANTS_H_
28#define ELEMENTSKERNEL_ELEMENTSKERNEL_PHYSCONSTANTS_H_
29
31
32namespace Elements {
33inline namespace Kernel {
34namespace Units {
35
37constexpr double Avogadro = 6.0221367e+23 / mole;
38
40constexpr double c_light = 2.99792458e+8 * m / s;
42constexpr double c_squared = c_light * c_light;
43
45constexpr double h_Planck = 6.62606957e-34 * joule * s;
47constexpr double hbar_Planck = h_Planck / twopi;
49constexpr double hbarc = hbar_Planck * c_light;
51constexpr double hbarc_squared = hbarc * hbarc;
52
54constexpr double electron_charge = -eplus; // see SystemOfUnits.h
56constexpr double e_squared = eplus * eplus;
57
59constexpr double electron_mass = 9.10938291e-31 * kg;
61constexpr double proton_mass = 1.672621777e-27 * kg;
62constexpr double amu = 1.660538921e-27 * kg;
63
65constexpr double mu0 = 4 * pi * 1.e-7 * henry / m;
67constexpr double epsilon0 = 1. / (c_squared * mu0);
68
69constexpr double elm_coupling = e_squared / (4 * pi * epsilon0);
72
73constexpr double k_Boltzmann = 1.3806488e-23 * joule / kelvin;
74
76constexpr double STP_Temperature = 273.15 * kelvin;
77constexpr double STP_Pressure = 1. * atmosphere;
78constexpr double kGasThreshold = 10. * mg / cm3;
79
80constexpr 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
Definition of the common units based on MKSA.
constexpr double hbarc
constexpr double atmosphere
constexpr double hbar_Planck
constexpr double k_Boltzmann
constexpr double h_Planck
constexpr double cm3
constexpr double kGasThreshold
constexpr double STP_Pressure
constexpr double electron_mass
constexpr double amu
constexpr double STP_Temperature
Standard Temperature and Pressure.
constexpr double epsilon0
permeability of free space
constexpr double eplus
constexpr double c_light
constexpr double joule
constexpr double elm_coupling
constexpr double c_squared
constexpr double Avogadro
constexpr double hbarc_squared
constexpr double kelvin
constexpr double mole
constexpr double electron_charge
constexpr double fine_structure_const
constexpr double pi
constexpr double proton_mass
constexpr double mu0
permeability of free space
constexpr double e_squared
constexpr double henry
constexpr double universe_mean_density
constexpr double twopi