Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends
hPolynomialThermo Class Reference

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

Collaboration diagram for hPolynomialThermo:
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...
 
hPolynomialThermooperator= (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...
 

Private Member Functions

 hPolynomialThermo (const EquationOfState &pt, const scalar Hf, const scalar Sf, const Polynomial< PolySize > &CpCoeffs, const typename Polynomial< PolySize >::intPolyType &hCoeffs, const Polynomial< PolySize > &sCoeffs)
 Construct from components. More...
 

Private Attributes

scalar Hf_
 Heat of formation. More...
 
scalar Sf_
 Standard entropy. More...
 
Polynomial< PolySizeCpCoeffs_
 Specific heat at constant pressure polynomial coeffs [J/(kg.K)]. More...
 
Polynomial< PolySize >::intPolyType hCoeffs_
 Enthalpy polynomial coeffs - derived from cp [J/kg]. More...
 
Polynomial< PolySizesCoeffs_
 Entropy - derived from Cp [J/(kg.K)] - relative to Tstd. 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

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

◆ hPolynomialThermo() [1/5]

hPolynomialThermo ( const EquationOfState &  pt,
const scalar  Hf,
const scalar  Sf,
const Polynomial< PolySize > &  CpCoeffs,
const typename Polynomial< PolySize >::intPolyType &  hCoeffs,
const Polynomial< PolySize > &  sCoeffs 
)
inlineprivate

Construct from components.

Definition at line 32 of file hPolynomialThermoI.H.

◆ hPolynomialThermo() [2/5]

Construct from Istream.

Definition at line 33 of file hPolynomialThermo.C.

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

◆ hPolynomialThermo() [3/5]

hPolynomialThermo ( const dictionary dict)

Construct from dictionary.

Definition at line 61 of file hPolynomialThermo.C.

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

◆ hPolynomialThermo() [4/5]

hPolynomialThermo ( const hPolynomialThermo )
inline

Construct as copy.

◆ hPolynomialThermo() [5/5]

hPolynomialThermo ( const word ,
const hPolynomialThermo  
)
inline

Construct as a named copy.

Member Function Documentation

◆ typeName()

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 154 of file hPolynomialThermo.H.

◆ limit()

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 Foam::T().

Here is the call graph for this function:

◆ cp()

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 Foam::T().

Here is the call graph for this function:

◆ ha()

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::T().

Here is the call graph for this function:

◆ hs()

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

Sensible enthalpy [J/kmol].

Definition at line 117 of file hPolynomialThermoI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ hc()

Foam::scalar hc ( ) const
inline

Chemical enthalpy [J/kmol].

Definition at line 126 of file hPolynomialThermoI.H.

◆ s()

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

Entropy [J/(kmol K)].

Definition at line 135 of file hPolynomialThermoI.H.

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

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const

Write to Ostream.

Definition at line 97 of file hPolynomialThermo.C.

References dict, Foam::indent(), Foam::name(), PolySize, and write().

Here is the call graph for this function:

◆ operator=()

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

Definition at line 149 of file hPolynomialThermoI.H.

◆ operator+=()

void operator+= ( const hPolynomialThermo )
inline

Definition at line 167 of file hPolynomialThermoI.H.

◆ operator-=()

void operator-= ( const hPolynomialThermo )
inline

Definition at line 188 of file hPolynomialThermoI.H.

◆ operator*=()

void operator*= ( const scalar  s)
inline

Definition at line 209 of file hPolynomialThermoI.H.

References s().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator+

hPolynomialThermo operator+ ( const hPolynomialThermo ,
const hPolynomialThermo  
)
friend

◆ operator-

hPolynomialThermo operator- ( const hPolynomialThermo ,
const hPolynomialThermo  
)
friend

◆ operator*

hPolynomialThermo operator* ( const  scalar,
const hPolynomialThermo  
)
friend

◆ operator==

hPolynomialThermo operator== ( const hPolynomialThermo ,
const hPolynomialThermo  
)
friend

◆ operator

Ostream& operator ( Ostream ,
const hPolynomialThermo  
)
friend

Field Documentation

◆ Hf_

scalar Hf_
private

Heat of formation.

Note: input in [J/kg], but internally uses [J/kmol]

Definition at line 103 of file hPolynomialThermo.H.

◆ Sf_

scalar Sf_
private

Standard entropy.

Note: input in [J/kg/K], but internally uses [J/kmol/K]

Definition at line 107 of file hPolynomialThermo.H.

◆ CpCoeffs_

Polynomial<PolySize> CpCoeffs_
private

Specific heat at constant pressure polynomial coeffs [J/(kg.K)].

Definition at line 110 of file hPolynomialThermo.H.

◆ hCoeffs_

Polynomial<PolySize>::intPolyType hCoeffs_
private

Enthalpy polynomial coeffs - derived from cp [J/kg].

NOTE: relative to Tstd

Definition at line 114 of file hPolynomialThermo.H.

◆ sCoeffs_

Polynomial<PolySize> sCoeffs_
private

Entropy - derived from Cp [J/(kg.K)] - relative to Tstd.

Definition at line 117 of file hPolynomialThermo.H.


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