Cantera  2.3.0
Namespaces | Typedefs | Variables
ct_defs.h File Reference

This file contains definitions of terms that are used in internal routines and are unlikely to need modifying (text for module physConstants (see Physical Constants) is found here). More...

#include "config.h"
#include <cmath>
#include <cstdlib>
#include <vector>
#include <map>
#include <string>
#include <algorithm>
#include <memory>
Include dependency graph for ct_defs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Cantera
 Namespace for the Cantera kernel.
 

Typedefs

typedef std::map< std::string, doublereal > compositionMap
 Map connecting a string name with a double. More...
 
typedef std::map< std::string, doublereal > Composition
 Map from string names to doubles. More...
 
typedef std::vector< double > vector_fp
 Turn on the use of stl vectors for the basic array type within cantera Vector of doubles. More...
 
typedef std::vector< int > vector_int
 Vector of ints. More...
 
typedef std::vector< std::vector< size_t > > grouplist_t
 A grouplist is a vector of groups of species. More...
 

Variables

const doublereal Pi = 3.14159265358979323846
 Pi. More...
 
const doublereal SmallNumber = 1.e-300
 smallest number to compare to zero. More...
 
const doublereal BigNumber = 1.e300
 largest number to compare to inf. More...
 
const doublereal MaxExp = 690.775527898
 largest x such that exp(x) is valid More...
 
const doublereal Undef = -999.1234
 Fairly random number to be used to initialize variables against to see if they are subsequently defined. More...
 
const doublereal Tiny = 1.e-20
 Small number to compare differences of mole fractions against. More...
 
const size_t npos = static_cast<size_t>(-1)
 index returned by functions to indicate "no position" More...
 
Variations of the Gas Constant

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

const doublereal Avogadro = 6.02214129e26
 Avogadro's Number [number/kmol]. More...
 
const doublereal GasConstant = 8314.4621
 Universal Gas Constant. [J/kmol/K]. More...
 
const doublereal logGasConstant = std::log(GasConstant)
 
const doublereal OneAtm = 1.01325e5
 One atmosphere [Pa]. More...
 
const doublereal OneBar = 1.0E5
 
const doublereal GasConst_cal_mol_K = GasConstant / 4184.0
 Universal gas constant in cal/mol/K. More...
 
const doublereal Boltzmann = GasConstant / Avogadro
 Boltzmann's constant [J/K]. More...
 
const doublereal Planck = 6.62607009e-34
 Planck's constant. [J-s]. More...
 
const doublereal Planck_bar = Planck / (2 * Pi)
 
const doublereal logBoltz_Planck = std::log(Boltzmann / Planck)
 log(k/h) More...
 
const doublereal StefanBoltz = 5.670373e-8
 Stefan-Boltzmann constant. More...
 
Electron Properties
const doublereal ElectronCharge = 1.602176565e-19
 
const doublereal ElectronMass = 9.10938291e-31
 
const doublereal Faraday = ElectronCharge * Avogadro
 
Electromagnetism

Cantera uses the MKS unit system.

const doublereal lightSpeed = 299792458.0
 Speed of Light (m/s). More...
 
const doublereal permeability_0 = 4.0e-7*Pi
 Permeability of free space \( \mu_0 \) in N/A^2. More...
 
const doublereal epsilon_0 = 1.0 / (lightSpeed*lightSpeed*permeability_0)
 Permittivity of free space \( \epsilon_0 \) in F/m. More...
 
Thermodynamic Equilibrium Constraints

Integer numbers representing pairs of thermodynamic variables which are held constant during equilibration.

const int TV = 100
 
const int HP = 101
 
const int SP = 102
 
const int PV = 103
 
const int TP = 104
 
const int UV = 105
 
const int ST = 106
 
const int SV = 107
 
const int UP = 108
 
const int VH = 109
 
const int TH = 110
 
const int SH = 111
 
const int PX = 112
 
const int TX = 113
 
const int VT = -100
 
const int PH = -101
 
const int PS = -102
 
const int VP = -103
 
const int PT = -104
 
const int VU = -105
 
const int TS = -106
 
const int VS = -107
 
const int PU = -108
 
const int HV = -109
 
const int HT = -110
 
const int HS = -111
 
const int XP = -112
 
const int XT = -113
 

Detailed Description

This file contains definitions of terms that are used in internal routines and are unlikely to need modifying (text for module physConstants (see Physical Constants) is found here).

This file is included in every file that is in the Cantera Namespace.

All physical constants are stored here. The module physConstants is defined here.

Definition in file ct_defs.h.