Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
janafThermo Class Reference

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

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, const bool convertCoeffs=false)
 
 janafThermo (const dictionary &dict)
 
 janafThermo (const word &, const janafThermo &)
 
scalar limit (const scalar T) const
 
scalar Tlow () const
 
scalar Thigh () const
 
scalar Tcommon () const
 
const coeffArrayhighCpCoeffs () const
 
const coeffArraylowCpCoeffs () const
 
scalar Cp (const scalar p, const scalar T) const
 
scalar Ha (const scalar p, const scalar T) const
 
scalar Hs (const scalar p, const scalar T) const
 
scalar Hc () const
 
scalar S (const scalar p, const scalar T) const
 
scalar Gstd (const scalar T) const
 
scalar dCpdT (const scalar p, const scalar T) const
 
void write (Ostream &os) const
 
void operator+= (const janafThermo &)
 

Static Public Member Functions

static word typeName ()
 

Static Public Attributes

static constexpr int nCoeffs_ = 7
 

Friends

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

Detailed Description

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

Source files

Definition at line 51 of file janafThermo.H.

Member Typedef Documentation

◆ coeffArray

typedef FixedList<scalar, nCoeffs_> coeffArray

Definition at line 96 of file janafThermo.H.

Constructor & Destructor Documentation

◆ janafThermo() [1/3]

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

◆ janafThermo() [2/3]

janafThermo ( const dictionary dict)

Definition at line 55 of file janafThermo.C.

References janafThermo::nCoeffs_, and R.

◆ janafThermo() [3/3]

janafThermo ( const word ,
const janafThermo  
)
inline

Member Function Documentation

◆ typeName()

static word typeName ( )
inlinestatic

Definition at line 145 of file janafThermo.H.

◆ limit()

Foam::scalar limit ( const scalar  T) const
inline

Definition at line 107 of file janafThermoI.H.

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

Here is the call graph for this function:

◆ Tlow()

Foam::scalar Tlow ( ) const
inline

Definition at line 129 of file janafThermoI.H.

◆ Thigh()

Foam::scalar Thigh ( ) const
inline

Definition at line 136 of file janafThermoI.H.

◆ Tcommon()

Foam::scalar Tcommon ( ) const
inline

Definition at line 143 of file janafThermoI.H.

◆ highCpCoeffs()

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

Definition at line 151 of file janafThermoI.H.

◆ lowCpCoeffs()

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

Definition at line 159 of file janafThermoI.H.

◆ Cp()

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

Definition at line 167 of file janafThermoI.H.

References Cp, p, and Foam::T().

Here is the call graph for this function:

◆ Ha()

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

Definition at line 181 of file janafThermoI.H.

References H(), p, and Foam::T().

Here is the call graph for this function:

◆ Hs()

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

Definition at line 197 of file janafThermoI.H.

References Ha(), p, and Foam::T().

Here is the call graph for this function:

◆ Hc()

Foam::scalar Hc ( ) const
inline

Definition at line 207 of file janafThermoI.H.

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

◆ S()

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

Definition at line 222 of file janafThermoI.H.

References Foam::log(), p, and Foam::T().

Here is the call graph for this function:

◆ Gstd()

Foam::scalar Gstd ( const scalar  T) const
inline

Definition at line 238 of file janafThermoI.H.

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

Here is the call graph for this function:

◆ dCpdT()

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

Definition at line 257 of file janafThermoI.H.

References Foam::T().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const

Definition at line 78 of file janafThermo.C.

References Ostream::beginBlock(), Ostream::endBlock(), os(), R, Foam::vtk::write(), and Ostream::writeEntry().

Here is the call graph for this function:

◆ operator+=()

void operator+= ( const janafThermo )
inline

Definition at line 271 of file janafThermoI.H.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::mag(), Foam::max(), Foam::min(), Foam::name(), Foam::notEqual(), and Y.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator+

janafThermo operator+ ( const janafThermo ,
const janafThermo  
)
friend

◆ operator*

janafThermo operator* ( const  scalar,
const janafThermo  
)
friend

◆ operator==

janafThermo operator== ( const janafThermo ,
const janafThermo  
)
friend

◆ operator

Ostream& operator ( Ostream ,
const janafThermo  
)
friend

Member Data Documentation

◆ nCoeffs_

constexpr int nCoeffs_ = 7
staticconstexpr

Definition at line 95 of file janafThermo.H.

Referenced by janafThermo::janafThermo().


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