OpenFOAM logo
Open Source CFD Toolkit

specieThermo Class Template Reference

Inheritance diagram for specieThermo:

Inheritance graph
[legend]
List of all members.

template<class thermo>
class Foam::specieThermo< thermo >


Public Member Functions

 specieThermo (const thermo &sp)
 construct from components
 specieThermo (Istream &)
 Construct from Istream.
 specieThermo (const word &name, const specieThermo &)
 Construct as named copy.
scalar cv (const scalar T) const
 Heat capacity at constant volume [J/(kmol K)].
scalar gamma (const scalar T) const
 gamma = cp/cv []
scalar e (const scalar T) const
 Internal energy [J/kmol].
scalar g (const scalar T) const
 Gibbs free energy [J/kmol].
scalar a (const scalar T) const
 Helmholtz free energy [J/kmol].
scalar Cp (const scalar T) const
 Heat capacity at constant pressure [J/(kg K)].
scalar Cv (const scalar T) const
 Heat capacity at constant volume [J/(kg K)].
scalar H (const scalar T) const
 Enthalpy [J/kg].
scalar S (const scalar T) const
 Entropy [J/(kg K)].
scalar E (const scalar T) const
 Internal energy [J/kg].
scalar G (const scalar T) const
 Gibbs free energy [J/kg].
scalar A (const scalar T) const
 Helmholtz free energy [J/kg].
scalar K (const scalar T) const
 Equilibrium constant [] i.t.o fugacities.
scalar Kp (const scalar T) const
 Equilibrium constant [] i.t.o. partial pressures.
scalar Kc (const scalar T) const
 Equilibrium constant i.t.o. concentration.
scalar Kx (const scalar T, const scalar p) const
 Equilibrium constant [] i.t.o. mole-fractions.
scalar Kn (const scalar T, const scalar p, const scalar n) const
 Equilibrium constant [] i.t.o. number of moles.
scalar TH (const scalar H, const scalar T0) const
 Temperature from Enthalpy given an initial temperature T0.
scalar TE (const scalar E, const scalar T0) const
 Temperature from internal energy given an initial temperature T0.
void operator+= (const specieThermo &)
void operator-= (const specieThermo &)
void operator *= (const scalar)

Friends

specieThermo operator+ (const specieThermo &, const specieThermo &)
specieThermo operator- (const specieThermo &, const specieThermo &)
specieThermo operator * (const scalar s, const specieThermo &)
specieThermo operator== (const specieThermo &, const specieThermo &)
Ostreamoperator (Ostream &, const specieThermo &)

Constructor & Destructor Documentation

specieThermo const thermo &  sp  )  [inline]
 

construct from components

Definition at line 54 of file specieThermoI.H.

References Foam::abort(), Foam::FatalError, FatalErrorIn, and Foam::mag().

Here is the call graph for this function:

specieThermo Istream  ) 
 

Construct from Istream.

specieThermo const word name,
const specieThermo< thermo > & 
[inline]
 

Construct as named copy.

Definition at line 106 of file specieThermoI.H.

References Foam::cp(), and Foam::T().

Here is the call graph for this function:


Member Function Documentation

scalar A const scalar  T  )  const [inline]
 

Helmholtz free energy [J/kg].

Definition at line 205 of file specieThermoI.H.

References Foam::exp(), specieThermo::g(), and Foam::T().

Here is the call graph for this function:

scalar a const scalar  T  )  const [inline]
 

Helmholtz free energy [J/kmol].

Definition at line 153 of file specieThermoI.H.

References Foam::cp(), and Foam::T().

Referenced by specieThermo::G().

Here is the call graph for this function:

scalar Cp const scalar  T  )  const [inline]
 

Heat capacity at constant pressure [J/(kg K)].

Definition at line 163 of file specieThermoI.H.

References specieThermo::cv(), and Foam::T().

Referenced by specieThermo::Kn(), and eConstThermo::s().

Here is the call graph for this function:

scalar Cv const scalar  T  )  const [inline]
 

Heat capacity at constant volume [J/(kg K)].

Definition at line 170 of file specieThermoI.H.

References Foam::T().

Here is the call graph for this function:

scalar cv const scalar  T  )  const [inline]
 

Heat capacity at constant volume [J/(kmol K)].

Definition at line 124 of file specieThermoI.H.

References Foam::cp(), and Foam::T().

Referenced by specieThermo::Cp().

Here is the call graph for this function:

scalar E const scalar  T  )  const [inline]
 

Internal energy [J/kg].

Definition at line 191 of file specieThermoI.H.

References specieThermo::g(), and Foam::T().

Here is the call graph for this function:

scalar e const scalar  T  )  const [inline]
 

Internal energy [J/kmol].

Definition at line 139 of file specieThermoI.H.

References Foam::T().

Referenced by specieThermo::g(), and specieThermo::S().

Here is the call graph for this function:

scalar G const scalar  T  )  const [inline]
 

Gibbs free energy [J/kg].

Definition at line 198 of file specieThermoI.H.

References specieThermo::a(), and Foam::T().

Here is the call graph for this function:

scalar g const scalar  T  )  const [inline]
 

Gibbs free energy [J/kmol].

Definition at line 146 of file specieThermoI.H.

References specieThermo::e(), and Foam::T().

Referenced by specieThermo::A(), and specieThermo::E().

Here is the call graph for this function:

scalar gamma const scalar  T  )  const [inline]
 

gamma = cp/cv []

Definition at line 131 of file specieThermoI.H.

References Foam::T().

Here is the call graph for this function:

scalar H const scalar  T  )  const [inline]
 

Enthalpy [J/kg].

Definition at line 177 of file specieThermoI.H.

References Foam::T().

Referenced by specieThermo::Kn().

Here is the call graph for this function:

scalar K const scalar  T  )  const [inline]
 

Equilibrium constant [] i.t.o fugacities.

= PIi(fi/Pstd)^nui

Definition at line 215 of file specieThermoI.H.

scalar Kc const scalar  T  )  const [inline]
 

Equilibrium constant i.t.o. concentration.

= PIi(ci/cstd)^nui For low pressures (where the gas mixture is near perfect) Kc = Kp(pstd/(RR*T))^nu

Definition at line 247 of file specieThermoI.H.

References Foam::equal(), specieThermo::Kp(), p, Foam::pow(), and Foam::T().

Here is the call graph for this function:

scalar Kn const scalar  T,
const scalar  p,
const scalar  n
const [inline]
 

Equilibrium constant [] i.t.o. number of moles.

For low pressures (where the gas mixture is near perfect) Kn = Kp(n*pstd/p)^nui where n = number of moles in mixture

Definition at line 286 of file specieThermoI.H.

References specieThermo::Cp(), specieThermo::H(), and Foam::T().

Here is the call graph for this function:

scalar Kp const scalar  T  )  const [inline]
 

Equilibrium constant [] i.t.o. partial pressures.

= PIi(pi/Pstd)^nui For low pressures (where the gas mixture is near perfect) Kp = K

Definition at line 235 of file specieThermoI.H.

References Foam::equal(), Foam::pow(), and Foam::T().

Referenced by specieThermo::Kc().

Here is the call graph for this function:

scalar Kx const scalar  T,
const scalar  p
const [inline]
 

Equilibrium constant [] i.t.o. mole-fractions.

For low pressures (where the gas mixture is near perfect) Kx = Kp(pstd/p)^nui

Definition at line 266 of file specieThermoI.H.

References Foam::equal(), p, Foam::pow(), and Foam::T().

Here is the call graph for this function:

void operator *= const   scalar  )  [inline]
 

Definition at line 336 of file specieThermoI.H.

void operator+= const specieThermo< thermo > &   )  [inline]
 

Definition at line 324 of file specieThermoI.H.

void operator-= const specieThermo< thermo > &   )  [inline]
 

Definition at line 330 of file specieThermoI.H.

scalar S const scalar  T  )  const [inline]
 

Entropy [J/(kg K)].

Definition at line 184 of file specieThermoI.H.

References specieThermo::e(), and Foam::T().

Here is the call graph for this function:

scalar TE const scalar  E,
const scalar  T0
const [inline]
 

Temperature from internal energy given an initial temperature T0.

Reimplemented in eConstThermo.

Definition at line 315 of file specieThermoI.H.

scalar TH const scalar  H,
const scalar  T0
const [inline]
 

Temperature from Enthalpy given an initial temperature T0.

Reimplemented in eConstThermo.

Definition at line 307 of file specieThermoI.H.


Friends And Related Function Documentation

Ostream& operator Ostream ,
const specieThermo< thermo > & 
[friend]
 

specieThermo operator * const scalar  s,
const specieThermo< thermo > &  st
[friend]
 

Definition at line 374 of file specieThermoI.H.

specieThermo operator+ const specieThermo< thermo > &  ,
const specieThermo< thermo > & 
[friend]
 

specieThermo operator- const specieThermo< thermo > &  ,
const specieThermo< thermo > & 
[friend]
 

specieThermo operator== const specieThermo< thermo > &  ,
const specieThermo< thermo > & 
[friend]
 


The documentation for this class was generated from the following files:
For further information go to www.openfoam.org