Public Member Functions | Static Public Member Functions | Friends | List of all members
hPolynomialThermo< EquationOfState, PolySize > Class Template Reference

Thermodynamics package templated on the equation of state, using polynomial functions for cp, h and s. More...

Inheritance diagram for hPolynomialThermo< EquationOfState, PolySize >:
Inheritance graph
[legend]
Collaboration diagram for hPolynomialThermo< EquationOfState, PolySize >:
Collaboration graph
[legend]

Public Member Functions

 hPolynomialThermo (Istream &is)
 Construct from Istream. More...
 
 hPolynomialThermo (const dictionary &dict)
 Construct from dictionary. More...
 
 hPolynomialThermo (const hPolynomialThermo &)
 Construct as copy. More...
 
 hPolynomialThermo (const word &, const hPolynomialThermo &)
 Construct as a named copy. More...
 
scalar limit (const scalar) const
 Limit the temperature to be in the range Tlow_ to Thigh_. More...
 
scalar cp (const scalar p, const scalar T) const
 Heat capacity at constant pressure [J/(kmol K)]. More...
 
scalar ha (const scalar p, const scalar T) const
 Absolute Enthalpy [J/kmol]. More...
 
scalar hs (const scalar p, const scalar T) const
 Sensible enthalpy [J/kmol]. More...
 
scalar hc () const
 Chemical enthalpy [J/kmol]. More...
 
scalar s (const scalar p, const scalar T) const
 Entropy [J/(kmol K)]. More...
 
void write (Ostream &os) const
 Write to Ostream. More...
 
void operator= (const hPolynomialThermo &)
 
void operator+= (const hPolynomialThermo &)
 
void operator-= (const hPolynomialThermo &)
 
void operator*= (const scalar)
 

Static Public Member Functions

static word typeName ()
 Return the instantiated type name. More...
 

Friends

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

Detailed Description

template<class EquationOfState, int PolySize = 8>
class Foam::hPolynomialThermo< EquationOfState, PolySize >

Thermodynamics package templated on the equation of state, using polynomial functions for cp, h and s.

Polynomials for h and s derived from cp

Source files

Definition at line 52 of file hPolynomialThermo.H.

Constructor & Destructor Documentation

Construct from Istream.

Definition at line 33 of file hPolynomialThermo.C.

References Foam::constant::standard::Tstd.

hPolynomialThermo ( const dictionary dict)

Construct from dictionary.

Definition at line 61 of file hPolynomialThermo.C.

References Foam::constant::standard::Tstd, and hPolynomialThermo< EquationOfState, PolySize >::write().

Here is the call graph for this function:

hPolynomialThermo ( const hPolynomialThermo< EquationOfState, PolySize > &  pt)
inline

Construct as copy.

Definition at line 54 of file hPolynomialThermoI.H.

hPolynomialThermo ( const word name,
const hPolynomialThermo< EquationOfState, PolySize > &  pt 
)
inline

Construct as a named copy.

Definition at line 69 of file hPolynomialThermoI.H.

References hPolynomialThermo< EquationOfState, PolySize >::limit().

Here is the call graph for this function:

Member Function Documentation

static word typeName ( )
inlinestatic
Foam::scalar limit ( const scalar  T) const
inline

Limit the temperature to be in the range Tlow_ to Thigh_.

Definition at line 87 of file hPolynomialThermoI.H.

References hPolynomialThermo< EquationOfState, PolySize >::cp(), and Foam::T().

Referenced by hPolynomialThermo< EquationOfState, PolySize >::hPolynomialThermo(), and hPolynomialThermo< EquationOfState, PolySize >::typeName().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::scalar cp ( const scalar  p,
const scalar  T 
) const
inline

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

Definition at line 97 of file hPolynomialThermoI.H.

References cp, and hPolynomialThermo< EquationOfState, PolySize >::ha().

Referenced by hPolynomialThermo< EquationOfState, PolySize >::limit(), and hPolynomialThermo< EquationOfState, PolySize >::typeName().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::scalar ha ( const scalar  p,
const scalar  T 
) const
inline

Absolute Enthalpy [J/kmol].

Definition at line 107 of file hPolynomialThermoI.H.

References Foam::constant::universal::h, and hPolynomialThermo< EquationOfState, PolySize >::hs().

Referenced by hPolynomialThermo< EquationOfState, PolySize >::cp(), hPolynomialThermo< EquationOfState, PolySize >::hs(), and hPolynomialThermo< EquationOfState, PolySize >::typeName().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::scalar hs ( const scalar  p,
const scalar  T 
) const
inline

Sensible enthalpy [J/kmol].

Definition at line 117 of file hPolynomialThermoI.H.

References hPolynomialThermo< EquationOfState, PolySize >::ha(), and hPolynomialThermo< EquationOfState, PolySize >::hc().

Referenced by hPolynomialThermo< EquationOfState, PolySize >::ha(), and hPolynomialThermo< EquationOfState, PolySize >::typeName().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::scalar hc ( ) const
inline

Chemical enthalpy [J/kmol].

Definition at line 126 of file hPolynomialThermoI.H.

References hPolynomialThermo< EquationOfState, PolySize >::s().

Referenced by hPolynomialThermo< EquationOfState, PolySize >::hs(), and hPolynomialThermo< EquationOfState, PolySize >::typeName().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::scalar s ( const scalar  p,
const scalar  T 
) const
inline

Entropy [J/(kmol K)].

Definition at line 135 of file hPolynomialThermoI.H.

References s().

Referenced by hPolynomialThermo< EquationOfState, PolySize >::hc(), hPolynomialThermo< EquationOfState, PolySize >::operator*=(), and hPolynomialThermo< EquationOfState, PolySize >::typeName().

Here is the call graph for this function:

Here is the caller graph for this function:

void write ( Ostream os) const

Write to Ostream.

Definition at line 97 of file hPolynomialThermo.C.

References dictionary::add(), dict, dictionaryName::dictName(), Foam::indent(), Foam::name(), Foam::tab, and write().

Referenced by hPolynomialThermo< EquationOfState, PolySize >::hPolynomialThermo(), and hPolynomialThermo< EquationOfState, PolySize >::typeName().

Here is the call graph for this function:

Here is the caller graph for this function:

void operator= ( const hPolynomialThermo< EquationOfState, PolySize > &  )
inline

Definition at line 148 of file hPolynomialThermoI.H.

Referenced by hPolynomialThermo< EquationOfState, PolySize >::typeName().

Here is the caller graph for this function:

void operator+= ( const hPolynomialThermo< EquationOfState, PolySize > &  )
inline

Definition at line 164 of file hPolynomialThermoI.H.

Referenced by hPolynomialThermo< EquationOfState, PolySize >::typeName().

Here is the caller graph for this function:

void operator-= ( const hPolynomialThermo< EquationOfState, PolySize > &  )
inline

Definition at line 185 of file hPolynomialThermoI.H.

Referenced by hPolynomialThermo< EquationOfState, PolySize >::typeName().

Here is the caller graph for this function:

void operator*= ( const scalar  s)
inline

Definition at line 206 of file hPolynomialThermoI.H.

References hPolynomialThermo< EquationOfState, PolySize >::s().

Referenced by hPolynomialThermo< EquationOfState, PolySize >::typeName().

Here is the call graph for this function:

Here is the caller graph for this function:

Friends And Related Function Documentation

hPolynomialThermo operator+ ( const hPolynomialThermo< EquationOfState, PolySize > &  ,
const hPolynomialThermo< EquationOfState, PolySize > &   
)
friend
hPolynomialThermo operator- ( const hPolynomialThermo< EquationOfState, PolySize > &  ,
const hPolynomialThermo< EquationOfState, PolySize > &   
)
friend
hPolynomialThermo operator* ( const scalar  ,
const hPolynomialThermo< EquationOfState, PolySize > &   
)
friend
hPolynomialThermo operator== ( const hPolynomialThermo< EquationOfState, PolySize > &  ,
const hPolynomialThermo< EquationOfState, PolySize > &   
)
friend
Ostream& operator ( Ostream ,
const hPolynomialThermo< EquationOfState, PolySize > &   
)
friend

The documentation for this class was generated from the following files: