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

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

Public Member Functions

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

Static Public Member Functions

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

Private Member Functions

 hConstThermo (const EquationOfState &st, const scalar cp, const scalar hf)
 Construct from components. More...
 

Private Attributes

scalar Cp_
 
scalar Hf_
 

Friends

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

Detailed Description

Constant properties thermodynamics package templated into the EquationOfState.

Source files

Definition at line 46 of file hConstThermo.H.

Constructor & Destructor Documentation

◆ hConstThermo() [1/4]

hConstThermo ( const EquationOfState &  st,
const scalar  cp,
const scalar  hf 
)
inlineprivate

Construct from components.

Definition at line 30 of file hConstThermoI.H.

◆ hConstThermo() [2/4]

Construct from Istream.

◆ hConstThermo() [3/4]

hConstThermo ( const dictionary dict)

Construct from dictionary.

Definition at line 46 of file hConstThermo.C.

References hConstThermo::Cp_, and hConstThermo::Hf_.

◆ hConstThermo() [4/4]

hConstThermo ( const word ,
const hConstThermo  
)
inline

Construct as named copy.

Member Function Documentation

◆ clone()

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

Construct and return a clone.

Definition at line 59 of file hConstThermoI.H.

◆ New() [1/2]

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

Selector from Istream.

Definition at line 70 of file hConstThermoI.H.

◆ New() [2/2]

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

Selector from dictionary.

Definition at line 81 of file hConstThermoI.H.

References dict.

◆ typeName()

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 136 of file hConstThermo.H.

◆ limit()

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

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

Definition at line 94 of file hConstThermoI.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 104 of file hConstThermoI.H.

◆ ha()

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

Absolute Enthalpy [J/kmol].

Definition at line 115 of file hConstThermoI.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 125 of file hConstThermoI.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 134 of file hConstThermoI.H.

◆ s()

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

Entropy [J/(kmol K)].

Definition at line 142 of file hConstThermoI.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 60 of file hConstThermo.C.

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

Here is the call graph for this function:

◆ operator+=()

void operator+= ( const hConstThermo )
inline

Definition at line 154 of file hConstThermoI.H.

◆ operator-=()

void operator-= ( const hConstThermo )
inline

Definition at line 172 of file hConstThermoI.H.

Friends And Related Function Documentation

◆ operator+

hConstThermo operator+ ( const hConstThermo ,
const hConstThermo  
)
friend

◆ operator-

hConstThermo operator- ( const hConstThermo ,
const hConstThermo  
)
friend

◆ operator*

hConstThermo operator* ( const  scalar,
const hConstThermo  
)
friend

◆ operator==

hConstThermo operator== ( const hConstThermo ,
const hConstThermo  
)
friend

◆ operator

Ostream& operator ( Ostream ,
const hConstThermo  
)
friend

Field Documentation

◆ Cp_

scalar Cp_
private

Definition at line 95 of file hConstThermo.H.

Referenced by hConstThermo::hConstThermo().

◆ Hf_

scalar Hf_
private

Definition at line 96 of file hConstThermo.H.

Referenced by hConstThermo::hConstThermo().


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