faunus
Typedefs | Variables
Faunus::PhysicalConstants Namespace Reference

Physical constants. More...

Typedefs

using T = double
 floating point type
 

Variables

constexpr T infty = std::numeric_limits<T>::infinity()
 Numerical infinity.
 
constexpr T neg_infty = -std::numeric_limits<T>::infinity()
 Numerical negative infinity.
 
constexpr T epsilon_dbl = std::numeric_limits<T>::epsilon()
 Numerical precision.
 
constexpr T max_value = std::numeric_limits<T>::max()
 Maximal (finite) representable value.
 
constexpr T max_exp_argument
 Largest value exp() can take before overflow (hard-coded for double) More...
 
constexpr T pi = std::numbers::pi
 
constexpr T vacuum_permittivity = 8.85419e-12
 Permittivity of vacuum [C^2/(J*m)].
 
constexpr T elementary_charge = 1.602177e-19
 Absolute electronic unit charge [C].
 
constexpr T boltzmann_constant = 1.380658e-23
 Boltzmann's constant [J/K].
 
constexpr T avogadro = 6.022137e23
 Avogadro's number [1/mol].
 
constexpr T speed_of_light = 299792458.0
 Speed of light [m/s].
 
constexpr T molar_gas_constant = boltzmann_constant * avogadro
 Molar gas constant [J/(K*mol)].
 
T temperature = 298.15
 Temperature [K].
 

Detailed Description

Physical constants.

Variable Documentation

◆ max_exp_argument

constexpr T Faunus::PhysicalConstants::max_exp_argument
Initial value:
=
709.782712893384

Largest value exp() can take before overflow (hard-coded for double)