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

Constant properties thermodynamics package templated into the EquationOfState. More...

Public Member Functions

 hRefConstThermo (Istream &)
 Construct from Istream. More...
 
 hRefConstThermo (const dictionary &dict)
 Construct from dictionary. More...
 
 hRefConstThermo (const word &, const hRefConstThermo &)
 Construct as named copy. More...
 
autoPtr< hRefConstThermoclone () 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/(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 hRefConstThermo &)
 
void operator-= (const hRefConstThermo &)
 

Static Public Member Functions

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

Private Member Functions

 hRefConstThermo (const EquationOfState &st, const scalar cp, const scalar hf, const scalar tref, const scalar href)
 Construct from components. More...
 

Private Attributes

scalar Cp_
 
scalar Hf_
 
scalar Tref_
 
scalar Href_
 

Friends

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

Detailed Description

Constant properties thermodynamics package templated into the EquationOfState.

Source files

Definition at line 46 of file hRefConstThermo.H.

Constructor & Destructor Documentation

◆ hRefConstThermo() [1/4]

hRefConstThermo ( const EquationOfState &  st,
const scalar  cp,
const scalar  hf,
const scalar  tref,
const scalar  href 
)
inlineprivate

Construct from components.

Definition at line 30 of file hRefConstThermoI.H.

◆ hRefConstThermo() [2/4]

Construct from Istream.

◆ hRefConstThermo() [3/4]

hRefConstThermo ( const dictionary dict)

Construct from dictionary.

Definition at line 49 of file hRefConstThermo.C.

References hRefConstThermo::Cp_, hRefConstThermo::Hf_, and hRefConstThermo::Href_.

◆ hRefConstThermo() [4/4]

hRefConstThermo ( const word ,
const hRefConstThermo  
)
inline

Construct as named copy.

Member Function Documentation

◆ clone()

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

Construct and return a clone.

Definition at line 65 of file hRefConstThermoI.H.

◆ New() [1/2]

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

Selector from Istream.

Definition at line 76 of file hRefConstThermoI.H.

◆ New() [2/2]

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

Selector from dictionary.

Definition at line 87 of file hRefConstThermoI.H.

References dict.

◆ typeName()

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 140 of file hRefConstThermo.H.

◆ limit()

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

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

Definition at line 100 of file hRefConstThermoI.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 110 of file hRefConstThermoI.H.

◆ ha()

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

Absolute Enthalpy [J/kmol].

Definition at line 121 of file hRefConstThermoI.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 131 of file hRefConstThermoI.H.

References Foam::T().

Here is the call graph for this function:

◆ hc()

Foam::scalar hc ( ) const
inline

Chemical enthalpy [J/kmol].

Definition at line 140 of file hRefConstThermoI.H.

◆ s()

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

Entropy [J/(kmol K)].

Definition at line 148 of file hRefConstThermoI.H.

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

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const

Write to Ostream.

Definition at line 66 of file hRefConstThermo.C.

References dictionary::add(), dict, dictionaryName::dictName(), Foam::indent(), and write().

Here is the call graph for this function:

◆ operator+=()

void operator+= ( const hRefConstThermo )
inline

Definition at line 160 of file hRefConstThermoI.H.

◆ operator-=()

void operator-= ( const hRefConstThermo )
inline

Definition at line 178 of file hRefConstThermoI.H.

Friends And Related Function Documentation

◆ operator+

hRefConstThermo operator+ ( const hRefConstThermo ,
const hRefConstThermo  
)
friend

◆ operator-

hRefConstThermo operator- ( const hRefConstThermo ,
const hRefConstThermo  
)
friend

◆ operator*

hRefConstThermo operator* ( const  scalar,
const hRefConstThermo  
)
friend

◆ operator==

hRefConstThermo operator== ( const hRefConstThermo ,
const hRefConstThermo  
)
friend

◆ operator

Ostream& operator ( Ostream ,
const hRefConstThermo  
)
friend

Field Documentation

◆ Cp_

scalar Cp_
private

Definition at line 95 of file hRefConstThermo.H.

Referenced by hRefConstThermo::hRefConstThermo().

◆ Hf_

scalar Hf_
private

Definition at line 96 of file hRefConstThermo.H.

Referenced by hRefConstThermo::hRefConstThermo().

◆ Tref_

scalar Tref_
private

Definition at line 97 of file hRefConstThermo.H.

◆ Href_

scalar Href_
private

Definition at line 98 of file hRefConstThermo.H.

Referenced by hRefConstThermo::hRefConstThermo().


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