XGCa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 PI = 3.1415926535897932; //< pi
9 constexpr double TWOPI = 6.2831853071795862; //< 2 pi
10 
11 constexpr double GB_TO_BYTES = (1024.0*1024.0*1024.0);
12 constexpr double BYTES_TO_GB = 1.0/GB_TO_BYTES;
13 
14 const double EXP_LIM = 64.0;
15 
16 #endif
constexpr double GB_TO_BYTES
Definition: constants.hpp:11
constexpr double PROTON_MASS
Definition: constants.hpp:7
constexpr double BYTES_TO_GB
Definition: constants.hpp:12
constexpr double EV_2_J
Conversion rate ev to J.
Definition: constants.hpp:5
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
const double EXP_LIM
Limit of exponents.
Definition: constants.hpp:14
constexpr double PI
Definition: constants.hpp:8
constexpr double TWOPI
Definition: constants.hpp:9