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

Power-function based thermodynamics package templated on EquationOfState. More...

Public Member Functions

 hPowerThermo (Istream &)
 Construct from Istream. More...
 
 hPowerThermo (const dictionary &)
 Construct from dictionary. More...
 
 hPowerThermo (const word &, const hPowerThermo &)
 Construct as a named copy. More...
 
autoPtr< hPowerThermoclone () const
 Construct and return a clone. More...
 
scalar limit (const scalar T) 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/(kg 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/kg]. More...
 
scalar hc () const
 Chemical enthalpy [J/kg]. More...
 
scalar s (const scalar p, const scalar T) const
 Entropy [J/(kmol K)]. More...
 
void operator+= (const hPowerThermo &)
 
void operator-= (const hPowerThermo &)
 

Static Public Member Functions

static autoPtr< hPowerThermoNew (Istream &is)
 Selector from Istream. More...
 
static autoPtr< hPowerThermoNew (const dictionary &dict)
 Selector from dictionary. More...
 
static word typeName ()
 Return the instantiated type name. More...
 

Private Member Functions

void checkT (const scalar T) const
 Check given temperature is within the range of the fitted coeffs. More...
 
 hPowerThermo (const EquationOfState &st, const scalar c0, const scalar n0, const scalar Tref, const scalar Hf)
 Construct from components. More...
 

Private Attributes

scalar c0_
 
scalar n0_
 
scalar Tref_
 
scalar Hf_
 

Friends

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

Detailed Description

Power-function based thermodynamics package templated on EquationOfState.

In this thermodynamics package the heat capacity is a simple power of temperature:

Cp(T) = c0*(T/Tref)^n0;

which is particularly suitable for solids.

Source files

Definition at line 54 of file hPowerThermo.H.

Constructor & Destructor Documentation

◆ hPowerThermo() [1/4]

hPowerThermo ( const EquationOfState &  st,
const scalar  c0,
const scalar  n0,
const scalar  Tref,
const scalar  Hf 
)
inlineprivate

Construct from components.

Definition at line 66 of file hPowerThermoI.H.

◆ hPowerThermo() [2/4]

Construct from Istream.

◆ hPowerThermo() [3/4]

hPowerThermo ( const dictionary )

Construct from dictionary.

◆ hPowerThermo() [4/4]

hPowerThermo ( const word ,
const hPowerThermo  
)
inline

Construct as a named copy.

Member Function Documentation

◆ checkT()

void checkT ( const scalar  T) const
inlineprivate

Check given temperature is within the range of the fitted coeffs.

Definition at line 33 of file hPowerThermoI.H.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and T.

Here is the call graph for this function:

◆ clone()

Foam::autoPtr< Foam::hPowerThermo< EquationOfState > > clone ( ) const
inline

Construct and return a clone.

Definition at line 84 of file hPowerThermoI.H.

◆ New() [1/2]

Foam::autoPtr< Foam::hPowerThermo< EquationOfState > > New ( Istream is)
inlinestatic

Selector from Istream.

Definition at line 95 of file hPowerThermoI.H.

◆ New() [2/2]

Foam::autoPtr< Foam::hPowerThermo< EquationOfState > > New ( const dictionary dict)
inlinestatic

Selector from dictionary.

Definition at line 106 of file hPowerThermoI.H.

References dict.

◆ typeName()

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 157 of file hPowerThermo.H.

◆ limit()

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

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

Definition at line 119 of file hPowerThermoI.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/(kg K)].

Definition at line 129 of file hPowerThermoI.H.

References Foam::pow(), and 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 139 of file hPowerThermoI.H.

References p, and 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/kg].

Definition at line 149 of file hPowerThermoI.H.

References Foam::pow(), Foam::T(), and Foam::constant::standard::Tstd.

Here is the call graph for this function:

◆ hc()

Foam::scalar hc ( ) const
inline

Chemical enthalpy [J/kg].

Definition at line 159 of file hPowerThermoI.H.

◆ s()

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

Entropy [J/(kmol K)].

Definition at line 167 of file hPowerThermoI.H.

References p, Foam::pow(), s(), Foam::T(), and Foam::constant::standard::Tstd.

Here is the call graph for this function:

◆ operator+=()

void operator+= ( const hPowerThermo )
inline

Definition at line 181 of file hPowerThermoI.H.

◆ operator-=()

void operator-= ( const hPowerThermo )
inline

Definition at line 200 of file hPowerThermoI.H.

Friends And Related Function Documentation

◆ operator+

hPowerThermo operator+ ( const hPowerThermo ,
const hPowerThermo  
)
friend

◆ operator-

hPowerThermo operator- ( const hPowerThermo ,
const hPowerThermo  
)
friend

◆ operator*

hPowerThermo operator* ( const  scalar,
const hPowerThermo  
)
friend

◆ operator==

hPowerThermo operator== ( const hPowerThermo ,
const hPowerThermo  
)
friend

◆ operator

Ostream& operator ( Ostream ,
const hPowerThermo  
)
friend

Field Documentation

◆ c0_

scalar c0_
private

Definition at line 105 of file hPowerThermo.H.

◆ n0_

scalar n0_
private

Definition at line 106 of file hPowerThermo.H.

◆ Tref_

scalar Tref_
private

Definition at line 107 of file hPowerThermo.H.

◆ Hf_

scalar Hf_
private

Definition at line 108 of file hPowerThermo.H.


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