Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
janafThermo< EquationOfState > Class Template Reference

JANAF tables based thermodynamics package templated into the equation of state. More...

Inheritance diagram for janafThermo< EquationOfState >:
Inheritance graph
[legend]
Collaboration diagram for janafThermo< EquationOfState >:
Collaboration graph
[legend]

Public Types

typedef FixedList< scalar, nCoeffs_coeffArray
 

Public Member Functions

 janafThermo (const EquationOfState &st, const scalar Tlow, const scalar Thigh, const scalar Tcommon, const coeffArray &highCpCoeffs, const coeffArray &lowCpCoeffs)
 Construct from components. More...
 
 janafThermo (Istream &)
 Construct from Istream. More...
 
 janafThermo (const dictionary &dict)
 Construct from dictionary. More...
 
 janafThermo (const word &, const janafThermo &)
 Construct as a named copy. More...
 
scalar limit (const scalar T) const
 Limit the temperature to be in the range Tlow_ to Thigh_. More...
 
scalar Tlow () const
 Return const access to the low temperature limit. More...
 
scalar Thigh () const
 Return const access to the high temperature limit. More...
 
scalar Tcommon () const
 Return const access to the common temperature. More...
 
const coeffArrayhighCpCoeffs () const
 Return const access to the high temperature poly coefficients. More...
 
const coeffArraylowCpCoeffs () const
 Return const access to the low temperature poly coefficients. 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 janafThermo &)
 
void operator-= (const janafThermo &)
 

Static Public Member Functions

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

Static Public Attributes

static const int nCoeffs_ = 7
 

Friends

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

Detailed Description

template<class EquationOfState>
class Foam::janafThermo< EquationOfState >

JANAF tables based thermodynamics package templated into the equation of state.

Source files

Definition at line 49 of file janafThermo.H.

Member Typedef Documentation

typedef FixedList<scalar, nCoeffs_> coeffArray

Definition at line 102 of file janafThermo.H.

Constructor & Destructor Documentation

janafThermo ( const EquationOfState &  st,
const scalar  Tlow,
const scalar  Thigh,
const scalar  Tcommon,
const coeffArray highCpCoeffs,
const coeffArray lowCpCoeffs 
)
inline

Construct from components.

janafThermo ( Istream is)

Construct from Istream.

Definition at line 60 of file janafThermo.C.

References IOstream::check(), and forAll.

Here is the call graph for this function:

janafThermo ( const dictionary dict)

Construct from dictionary.

Definition at line 85 of file janafThermo.C.

janafThermo ( const word name,
const janafThermo< EquationOfState > &  jt 
)
inline

Construct as a named copy.

Definition at line 77 of file janafThermoI.H.

References janafThermo< EquationOfState >::limit(), and janafThermo< EquationOfState >::nCoeffs_.

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 99 of file janafThermoI.H.

References Foam::endl(), Foam::max(), Foam::min(), Foam::T(), and WarningIn.

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

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::scalar Tlow ( ) const
inline

Return const access to the low temperature limit.

Definition at line 123 of file janafThermoI.H.

Referenced by janafThermo< EquationOfState >::typeName().

Here is the caller graph for this function:

Foam::scalar Thigh ( ) const
inline

Return const access to the high temperature limit.

Definition at line 130 of file janafThermoI.H.

Referenced by janafThermo< EquationOfState >::typeName().

Here is the caller graph for this function:

Foam::scalar Tcommon ( ) const
inline

Return const access to the common temperature.

Definition at line 137 of file janafThermoI.H.

Referenced by janafThermo< EquationOfState >::typeName().

Here is the caller graph for this function:

const Foam::janafThermo< EquationOfState >::coeffArray & highCpCoeffs ( ) const
inline

Return const access to the high temperature poly coefficients.

Definition at line 145 of file janafThermoI.H.

Referenced by janafThermo< EquationOfState >::operator-=(), and janafThermo< EquationOfState >::typeName().

Here is the caller graph for this function:

const Foam::janafThermo< EquationOfState >::coeffArray & lowCpCoeffs ( ) const
inline

Return const access to the low temperature poly coefficients.

Definition at line 153 of file janafThermoI.H.

References janafThermo< EquationOfState >::cp().

Referenced by janafThermo< EquationOfState >::operator-=(), and janafThermo< EquationOfState >::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 161 of file janafThermoI.H.

References janafThermo< EquationOfState >::ha(), and Foam::constant::thermodynamic::RR.

Referenced by janafThermo< EquationOfState >::lowCpCoeffs(), and janafThermo< EquationOfState >::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 173 of file janafThermoI.H.

References janafThermo< EquationOfState >::hs(), and Foam::constant::thermodynamic::RR.

Referenced by janafThermo< EquationOfState >::cp(), janafThermo< EquationOfState >::hs(), and janafThermo< EquationOfState >::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 189 of file janafThermoI.H.

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

Referenced by janafThermo< EquationOfState >::ha(), and janafThermo< EquationOfState >::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 199 of file janafThermoI.H.

References Foam::constant::thermodynamic::RR, janafThermo< EquationOfState >::s(), and Foam::constant::standard::Tstd.

Referenced by janafThermo< EquationOfState >::hs(), and janafThermo< EquationOfState >::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 214 of file janafThermoI.H.

References Foam::log(), Foam::constant::thermodynamic::RR, and s().

Referenced by janafThermo< EquationOfState >::hc(), janafThermo< EquationOfState >::operator-=(), and janafThermo< EquationOfState >::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 101 of file janafThermo.C.

References dictionary::add(), IOstream::check(), dict, dictionaryName::dictName(), Foam::endl(), forAll, Foam::indent(), Foam::nl, Foam::tab, and write().

Referenced by janafThermo< EquationOfState >::typeName().

Here is the call graph for this function:

Here is the caller graph for this function:

void operator+= ( const janafThermo< EquationOfState > &  )
inline

Definition at line 234 of file janafThermoI.H.

References Foam::exit(), Foam::FatalError, FatalErrorIn, Foam::max(), Foam::min(), Foam::name(), and Foam::notEqual().

Referenced by janafThermo< EquationOfState >::typeName().

Here is the call graph for this function:

Here is the caller graph for this function:

void operator-= ( const janafThermo< EquationOfState > &  )
inline

Friends And Related Function Documentation

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

Member Data Documentation

const int nCoeffs_ = 7
static

Definition at line 101 of file janafThermo.H.

Referenced by janafThermo< EquationOfState >::janafThermo().


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