OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

specieThermo< thermo > Class Template Reference

Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the template argument type thermo. All other properties are derived from these primitive functions. More...

Collaboration diagram for specieThermo< thermo >:

List of all members.


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 es (const scalar T) const
 Sensible 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 Hs (const scalar T) const
 Sensible enthalpy [J/kg].
scalar Hc () const
 Chemical 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. molar 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 &)

Detailed Description

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

Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the template argument type thermo. All other properties are derived from these primitive functions.

Source files

Definition at line 86 of file specieThermo.H.


Constructor & Destructor Documentation

specieThermo ( const thermo &  sp  )  [inline]

construct from components

Definition at line 24 of file specieThermoI.H.

specieThermo ( Istream is  )  [inline]

Construct from Istream.

Definition at line 33 of file specieThermo.C.

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

Construct as named copy.

Definition at line 73 of file specieThermoI.H.


Member Function Documentation

Foam::scalar cv ( const scalar  T  )  const [inline]

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

Definition at line 85 of file specieThermoI.H.

Referenced by specieThermo< thermo >::H().

Here is the caller graph for this function:

Foam::scalar gamma ( const scalar  T  )  const [inline]

gamma = cp/cv []

Definition at line 92 of file specieThermoI.H.

References Foam::cp().

Here is the call graph for this function:

Foam::scalar e ( const scalar  T  )  const [inline]

Internal energy [J/kmol].

Definition at line 100 of file specieThermoI.H.

References Foam::cp().

Referenced by specieThermo< thermo >::Cp(), and specieThermo< thermo >::G().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::scalar es ( const scalar  T  )  const [inline]

Sensible internal energy [J/kmol].

Definition at line 107 of file specieThermoI.H.

References h.

Foam::scalar g ( const scalar  T  )  const [inline]

Gibbs free energy [J/kmol].

Definition at line 114 of file specieThermoI.H.

Referenced by specieThermo< thermo >::A().

Here is the caller graph for this function:

Foam::scalar a ( const scalar  T  )  const [inline]

Helmholtz free energy [J/kmol].

Definition at line 121 of file specieThermoI.H.

References h.

Referenced by specieThermo< thermo >::K().

Here is the caller graph for this function:

Foam::scalar Cp ( const scalar  T  )  const [inline]

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

Definition at line 128 of file specieThermoI.H.

References specieThermo< thermo >::e().

Here is the call graph for this function:

Foam::scalar Cv ( const scalar  T  )  const [inline]

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

Definition at line 135 of file specieThermoI.H.

References Foam::cp().

Here is the call graph for this function:

Foam::scalar H ( const scalar  T  )  const [inline]

Enthalpy [J/kg].

Definition at line 142 of file specieThermoI.H.

References specieThermo< thermo >::cv().

Here is the call graph for this function:

Foam::scalar Hs ( const scalar  T  )  const [inline]

Sensible enthalpy [J/kg].

Definition at line 149 of file specieThermoI.H.

References h.

Foam::scalar Hc (  )  const [inline]

Chemical enthalpy [J/kg].

Definition at line 156 of file specieThermoI.H.

Foam::scalar S ( const scalar  T  )  const [inline]

Entropy [J/(kg K)].

Definition at line 163 of file specieThermoI.H.

Foam::scalar E ( const scalar  T  )  const [inline]

Internal energy [J/kg].

Definition at line 170 of file specieThermoI.H.

Foam::scalar G ( const scalar  T  )  const [inline]

Gibbs free energy [J/kg].

Definition at line 177 of file specieThermoI.H.

References specieThermo< thermo >::e().

Here is the call graph for this function:

Foam::scalar A ( const scalar  T  )  const [inline]

Helmholtz free energy [J/kg].

Definition at line 184 of file specieThermoI.H.

References specieThermo< thermo >::g().

Here is the call graph for this function:

Foam::scalar K ( const scalar  T  )  const [inline]

Equilibrium constant [] i.t.o fugacities.

= PIi(fi/Pstd)^nui

Definition at line 191 of file specieThermoI.H.

References specieThermo< thermo >::a().

Referenced by specieThermo< thermo >::Kc().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::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 207 of file specieThermoI.H.

Referenced by specieThermo< thermo >::Kn(), specieThermo< thermo >::Kx(), and specieThermo< thermo >::TH().

Here is the caller graph for this function:

Foam::scalar Kc ( const scalar  T  )  const [inline]

Equilibrium constant i.t.o. molar concentration.

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

Definition at line 214 of file specieThermoI.H.

References specieThermo< thermo >::K().

Here is the call graph for this function:

Foam::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 229 of file specieThermoI.H.

References specieThermo< thermo >::Kp(), and Foam::pow().

Here is the call graph for this function:

Foam::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 247 of file specieThermoI.H.

References specieThermo< thermo >::Kp(), and Foam::pow().

Here is the call graph for this function:

Foam::scalar TH ( const scalar  H,
const scalar  T0 
) const [inline]

Temperature from Enthalpy given an initial temperature T0.

Definition at line 266 of file specieThermoI.H.

References specieThermo< thermo >::Kp(), and Foam::pow().

Here is the call graph for this function:

Foam::scalar TE ( const scalar  E,
const scalar  T0 
) const [inline]

Temperature from internal energy given an initial temperature T0.

Definition at line 277 of file specieThermoI.H.

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

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

void operator*= ( const scalar  s  )  [inline]

Definition at line 307 of file specieThermoI.H.

Referenced by Foam::operator+().

Here is the caller graph for this function:


Friends And Related Function Documentation

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

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

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

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

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


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd