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

Detailed Description

defines some mathematical and physical constants

Definition in file constants.h.

Macro Definition Documentation

◆ ALIGN

#define ALIGN ( x)

Definition at line 19 of file constants.h.

◆ HUGEVAL

#define HUGEVAL   1E38

Definition at line 23 of file constants.h.

◆ MINVAL

#define MINVAL   1E-38

Definition at line 24 of file constants.h.

Variable Documentation

◆ amu

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.

◆ Ar_mass

const double Ar_mass = 39.948*amu

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

Definition at line 77 of file constants.h.

◆ Avogadro

const double Avogadro = 6.02205e+23

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

Definition at line 86 of file constants.h.

◆ c_0

const double c_0 = 299792458

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

Definition at line 47 of file constants.h.

◆ E1

const double E1 = 2.718281828459045235360287471352662498

$e$. Exponential base.

Definition at line 71 of file constants.h.

Referenced by fact().

◆ e_0

const double e_0 = 1.602189e-19

$e_0$ [As]. Elementary charge.

Definition at line 50 of file constants.h.

◆ epsilon_0

const double epsilon_0 = 8.85418781762039e-12

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

Definition at line 56 of file constants.h.

◆ Grav

const double Grav = 6.673e-11

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

Definition at line 89 of file constants.h.

◆ k_B

const double k_B = 1.38066e-23

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

Definition at line 65 of file constants.h.

◆ LN_2

const long double LN_2 = .6931471805599453094172321214581765680755

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

Definition at line 68 of file constants.h.

◆ m_e

const double m_e = 9.10953e-31

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

Definition at line 53 of file constants.h.

◆ mu_0

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

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

Definition at line 59 of file constants.h.

◆ PI

const double PI = Pi

Definition at line 40 of file constants.h.

◆ Pi

const long double Pi = 3.1415926535897932384626433832795028841968

Definition at line 36 of file constants.h.

◆ pi

◆ pi2

const double pi2 = pi * 2.0

$2\pi$

Definition at line 44 of file constants.h.

◆ Planck

const double Planck = 6.626176e-34

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

Definition at line 80 of file constants.h.

◆ Planck_bar

const double Planck_bar = Planck/(2*pi)

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

Definition at line 83 of file constants.h.

◆ SQRT2

const long double SQRT2 = 1.41421356237309504880168872420969807857

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

Definition at line 92 of file constants.h.

◆ Z_0

const double Z_0 = 376.73031346177

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

Definition at line 62 of file constants.h.