FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

janafThermo< equationOfState > Class Template Reference

JANAF tables based thermodynamics package templated into the equationOfState. More...

#include <specie/janafThermo.H>


Detailed Description

template<class equationOfState>
class Foam::janafThermo< equationOfState >

JANAF tables based thermodynamics package templated into the equationOfState.

Source files

Definition at line 92 of file janafThermo.H.

Inheritance diagram for janafThermo< equationOfState >:

List of all members.

Public Types

typedef scalar  coeffArray [7]

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.
 janafThermo (Istream &)
 Construct from Istream.
 janafThermo (const word &, const janafThermo &)
 Construct as a named copy.
scalar  cp (const scalar T) const
 Heat capacity at constant pressure [J/(kmol K)].
scalar  h (const scalar T) const
 Enthalpy [J/kmol].
scalar  hs (const scalar T) const
 Sensible enthalpy [J/kmol].
scalar  hc () const
 Chemical enthalpy [J/kmol].
scalar  s (const scalar T) const
 Entropy [J/(kmol K)].
void  operator+= (const janafThermo &)
void  operator-= (const janafThermo &)

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 &)
Ostream &  operator (Ostream &, const janafThermo &)

Member Typedef Documentation

typedef scalar coeffArray[7]

Definition at line 100 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 32 of file janafThermo.C.

References IOstream::check(), Foam::exit(), Foam::FatalIOError, and FatalIOErrorIn.

janafThermo ( const word &   name,
const janafThermo< equationOfState > &   jt  
) [inline]

Construct as a named copy.

Definition at line 95 of file janafThermoI.H.


Member Function Documentation

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

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

Definition at line 117 of file janafThermoI.H.

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

Enthalpy [J/kmol].

Definition at line 128 of file janafThermoI.H.

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

Sensible enthalpy [J/kmol].

Definition at line 143 of file janafThermoI.H.

References h.

Foam::scalar hc (  ) const [inline]

Chemical enthalpy [J/kmol].

Definition at line 152 of file janafThermoI.H.

References specie::Tstd.

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

Entropy [J/(kmol K)].

Definition at line 168 of file janafThermoI.H.

References Foam::log().

void operator+= ( const janafThermo< equationOfState > &    ) [inline]
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 99 of file janafThermo.H.


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