XGCa
constants.hpp
Go to the documentation of this file.
1 #ifndef CONSTANTS_HPP
2 #define CONSTANTS_HPP
3 
4 constexpr double UNIT_CHARGE = 1.6022e-19;
5 constexpr double EV_2_J=UNIT_CHARGE;
6 constexpr double J_2_EV=1.0/EV_2_J;
7 constexpr double PROTON_MASS = 1.6720e-27; //< proton mass (MKS)
8 constexpr double MU0 = 1.2566370614e-6;
9 constexpr double PI = 3.1415926535897932; //< pi
10 constexpr double TWOPI = 6.2831853071795862; //< 2 pi
11 
12 constexpr double GB_TO_BYTES = (1024.0*1024.0*1024.0);
13 constexpr double BYTES_TO_GB = 1.0/GB_TO_BYTES;
14 
15 constexpr double EXP_LIM = 64.0;
16 
17 #endif
constexpr double EV_2_J
Conversion rate ev to J.
Definition: constants.hpp:5
constexpr double GB_TO_BYTES
Definition: constants.hpp:12
constexpr double PI
Definition: constants.hpp:9
constexpr double MU0
Magnetic vacuum permeability in H/m (MKS)
Definition: constants.hpp:8
constexpr double BYTES_TO_GB
Definition: constants.hpp:13
constexpr double EXP_LIM
Limit of exponents.
Definition: constants.hpp:15
constexpr double J_2_EV
Conversion rate J to ev.
Definition: constants.hpp:6
constexpr double UNIT_CHARGE
Charge of an electron (C)
Definition: constants.hpp:4
constexpr double TWOPI
Definition: constants.hpp:10
constexpr double PROTON_MASS
Definition: constants.hpp:7