TBCI Numerical high perf. C++ Library  2.8.0
Macros | Variables
constants.h File Reference

defines some mathematical and physical constants More...

Go to the source code of this file.

Macros

#define ALIGN(x)
 
#define HUGEVAL   1E38
 
#define MINVAL   1E-38
 

Variables

const long double Pi = 3.1415926535897932384626433832795028841968
 
const double pi = Pi
 $\pi$ More...
 
const double PI = Pi
 
const double pi2 = pi * 2.0
 $2\pi$ More...
 
const double c_0 = 299792458
 $c_0$ [m/s]. Speed of light (vacuum). More...
 
const double e_0 = 1.602189e-19
 $e_0$ [As]. Elementary charge. More...
 
const double m_e = 9.10953e-31
 $m_e$ [kg]. Rest mass of an electron. More...
 
const double epsilon_0 = 8.85418781762039e-12
 $\epsilon_0$ [AS/Vm]. Dielectricity of vacuum. More...
 
const double mu_0 = 4*pi*1.0e-7
 $\mu_0$ [Vs/Am]. Permeability of vacuum. More...
 
const double Z_0 = 376.73031346177
 $Z_0$ [ $\Omega$] Waveimpedance of vacuum. More...
 
const double k_B = 1.38066e-23
 $k_B$ [J/K]. Boltzmann constant. More...
 
const long double LN_2 = .6931471805599453094172321214581765680755
 $\ln(2)$. Natural logarithm of 2. More...
 
const double E1 = 2.718281828459045235360287471352662498
 $e$. Exponential base. More...
 
const double amu = 1.66055e-27
 $amu$ [kg]. Atomic mass unit. (1/12 of the mass of 12C) More...
 
const double Ar_mass = 39.948*amu
 $m_{Ar}$ [kg]. Rest mass of an Argon atom. More...
 
const double Planck = 6.626176e-34
 $h$ [Js]. Planck's constant. More...
 
const double Planck_bar = Planck/(2*pi)
 $\hbar$ [Js]. Planck's bar constant. More...
 
const double Avogadro = 6.02205e+23
 $N_A$ [1/mol]. Number of particles in a mol. More...
 
const double Grav = 6.673e-11
 $G$ [N/kg^2]. Gravitational constant. More...
 
const long double SQRT2 = 1.41421356237309504880168872420969807857
 $\sqrt{2}$. Square root of 2. More...
 

Detailed Description

defines some mathematical and physical constants

Definition in file constants.h.

Macro Definition Documentation

#define ALIGN (   x)

Definition at line 19 of file constants.h.

#define HUGEVAL   1E38

Definition at line 23 of file constants.h.

#define MINVAL   1E-38

Definition at line 24 of file constants.h.

Variable Documentation

const double amu = 1.66055e-27

$amu$ [kg]. Atomic mass unit. (1/12 of the mass of 12C)

Definition at line 74 of file constants.h.

const double Ar_mass = 39.948*amu

$m_{Ar}$ [kg]. Rest mass of an Argon atom.

Definition at line 77 of file constants.h.

const double Avogadro = 6.02205e+23

$N_A$ [1/mol]. Number of particles in a mol.

Definition at line 86 of file constants.h.

const double c_0 = 299792458

$c_0$ [m/s]. Speed of light (vacuum).

Definition at line 47 of file constants.h.

const double E1 = 2.718281828459045235360287471352662498

$e$. Exponential base.

Definition at line 71 of file constants.h.

Referenced by fact().

const double e_0 = 1.602189e-19

$e_0$ [As]. Elementary charge.

Definition at line 50 of file constants.h.

const double epsilon_0 = 8.85418781762039e-12

$\epsilon_0$ [AS/Vm]. Dielectricity of vacuum.

Definition at line 56 of file constants.h.

const double Grav = 6.673e-11

$G$ [N/kg^2]. Gravitational constant.

Definition at line 89 of file constants.h.

const double k_B = 1.38066e-23

$k_B$ [J/K]. Boltzmann constant.

Definition at line 65 of file constants.h.

const long double LN_2 = .6931471805599453094172321214581765680755

$\ln(2)$. Natural logarithm of 2.

Definition at line 68 of file constants.h.

const double m_e = 9.10953e-31

$m_e$ [kg]. Rest mass of an electron.

Definition at line 53 of file constants.h.

const double mu_0 = 4*pi*1.0e-7

$\mu_0$ [Vs/Am]. Permeability of vacuum.

Definition at line 59 of file constants.h.

const long double Pi = 3.1415926535897932384626433832795028841968

Definition at line 36 of file constants.h.

const double pi = Pi
const double PI = Pi

Definition at line 40 of file constants.h.

const double pi2 = pi * 2.0

$2\pi$

Definition at line 44 of file constants.h.

const double Planck = 6.626176e-34

$h$ [Js]. Planck's constant.

Definition at line 80 of file constants.h.

const double Planck_bar = Planck/(2*pi)

$\hbar$ [Js]. Planck's bar constant.

Definition at line 83 of file constants.h.

const long double SQRT2 = 1.41421356237309504880168872420969807857

$\sqrt{2}$. Square root of 2.

Definition at line 92 of file constants.h.

const double Z_0 = 376.73031346177

$Z_0$ [ $\Omega$] Waveimpedance of vacuum.

Definition at line 62 of file constants.h.