Cantera  2.0
Physical Constants
Global Data
Collaboration diagram for Physical Constants:


This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.

## Variables

const doublereal Pi = 3.14159265358979323846
Pi.

const doublereal SqrtPi = std::sqrt(Pi)
sqrt(Pi)

## Variations of the Gas Constant

Cantera uses the MKS system of units. The unit for moles is defined to be the kmol.

const doublereal GasConstant = 8314.4621
Universal Gas Constant. [J/kmol/K].

const doublereal logGasConstant = std::log(GasConstant)

const doublereal OneAtm = 1.01325e5
One atmosphere [Pa].

const doublereal GasConst_cal_mol_K = GasConstant / 4184.0
Universal gas constant in cal/mol/K.

const doublereal Boltzmann = GasConstant / Avogadro
Boltzmann's constant [J/K].

const doublereal Planck = 6.62607009e-34
Planck's constant. [J-s].

const doublereal Planck_bar = Planck / (2 * Pi)

const doublereal logBoltz_Planck = std::log(Boltzmann / Planck)
log(k/h)

const doublereal StefanBoltz = 5.670373e-8
Stefan-Boltzmann constant.

## Electron Properties

const doublereal ElectronCharge = 1.602176565e-19

const doublereal ElectronMass = 9.10938291e-31

## Electromagnetism

Cantera uses the MKS unit system.

const doublereal lightSpeed = 299792458.0
Speed of Light (m/s).

const doublereal permeability_0 = 4.0e-7*Pi
Permeability of free space $$\mu_0$$ in N/A^2.

const doublereal epsilon_0 = 1.0 / (lightSpeed*lightSpeed*permeability_0)
Permittivity of free space $$\epsilon_0$$ in F/m.

## Detailed Description

All physical constants are stored here.

Cantera uses the MKS system of units. The unit for moles is defined to be the kmol. All values of physical constants are consistent with the 2010 CODATA recommendations.

## Variable Documentation

 const doublereal Pi = 3.14159265358979323846

Pi.

Definition at line 62 of file ct_defs.h.

 const doublereal SqrtPi = std::sqrt(Pi)

sqrt(Pi)

Definition at line 64 of file ct_defs.h.

Referenced by Voigt::F(), Cantera::Frot(), GaussianProfile::profile(), and Voigt::profile().

Definition at line 74 of file ct_defs.h.

 const doublereal GasConst_cal_mol_K = GasConstant / 4184.0

Universal gas constant in cal/mol/K.

Definition at line 85 of file ct_defs.h.

Referenced by VCS_SOLVE::vcs_nondimMult_TP().

 const doublereal Boltzmann = GasConstant / Avogadro
 const doublereal Planck = 6.62607009e-34

Planck's constant. [J-s].

Definition at line 91 of file ct_defs.h.

Referenced by Cantera::wnum_to_J().

 const doublereal logBoltz_Planck = std::log(Boltzmann / Planck)

log(k/h)

Definition at line 95 of file ct_defs.h.

 const doublereal StefanBoltz = 5.670373e-8

Stefan-Boltzmann constant.

Definition at line 97 of file ct_defs.h.

 const doublereal lightSpeed = 299792458.0

Speed of Light (m/s).

Definition at line 112 of file ct_defs.h.

Referenced by Cantera::hz_to_wnum(), and Cantera::wnum_to_J().

 const doublereal permeability_0 = 4.0e-7*Pi

Permeability of free space $$\mu_0$$ in N/A^2.

Definition at line 115 of file ct_defs.h.

 const doublereal epsilon_0 = 1.0 / (lightSpeed*lightSpeed*permeability_0)

Permittivity of free space $$\epsilon_0$$ in F/m.

Definition at line 118 of file ct_defs.h.