Public Member Functions | Static Public Member Functions | Friends | List of all members
hConstThermo< EquationOfState > Class Template Reference

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

Inheritance diagram for hConstThermo< EquationOfState >:
Inheritance graph
[legend]
Collaboration diagram for hConstThermo< EquationOfState >:
Collaboration graph
[legend]

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...
 

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

template<class EquationOfState>
class Foam::hConstThermo< EquationOfState >

Constant properties thermodynamics package templated into the EquationOfState.

Source files

Definition at line 46 of file hConstThermo.H.

Constructor & Destructor Documentation

hConstThermo ( Istream is)

Construct from Istream.

Definition at line 32 of file hConstThermo.C.

References IOstream::check().

Here is the call graph for this function:

hConstThermo ( const dictionary dict)

Construct from dictionary.

Definition at line 46 of file hConstThermo.C.

hConstThermo ( const word name,
const hConstThermo< EquationOfState > &  ct 
)
inline

Construct as named copy.

Definition at line 46 of file hConstThermoI.H.

Member Function Documentation

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

Construct and return a clone.

Definition at line 59 of file hConstThermoI.H.

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

Selector from Istream.

Definition at line 70 of file hConstThermoI.H.

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

Selector from dictionary.

Definition at line 81 of file hConstThermoI.H.

References dict, and hConstThermo< EquationOfState >::limit().

Here is the call graph for this function:

static word typeName ( )
inlinestatic
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 hConstThermo< EquationOfState >::cp(), and Foam::T().

Referenced by hConstThermo< EquationOfState >::New(), and hConstThermo< EquationOfState >::typeName().

Here is the call graph for this function:

Here is the caller graph for this function:

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.

References cp, and hConstThermo< EquationOfState >::ha().

Referenced by hConstThermo< EquationOfState >::limit(), and hConstThermo< EquationOfState >::typeName().

Here is the call graph for this function:

Here is the caller graph for this function:

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::constant::universal::h, and hConstThermo< EquationOfState >::hs().

Referenced by hConstThermo< EquationOfState >::cp(), and hConstThermo< EquationOfState >::typeName().

Here is the call graph for this function:

Here is the caller graph for this function:

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::constant::universal::h.

Referenced by hConstThermo< EquationOfState >::ha(), and hConstThermo< EquationOfState >::typeName().

Here is the caller graph for this function:

Foam::scalar hc ( ) const
inline

Chemical enthalpy [J/kmol].

Definition at line 134 of file hConstThermoI.H.

References hConstThermo< EquationOfState >::s().

Referenced by hConstThermo< EquationOfState >::typeName().

Here is the call graph for this function:

Here is the caller graph for this function:

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(), s(), and Foam::constant::standard::Tstd.

Referenced by hConstThermo< EquationOfState >::hc(), hConstThermo< EquationOfState >::operator-=(), and hConstThermo< EquationOfState >::typeName().

Here is the call graph for this function:

Here is the caller graph for this function:

void write ( Ostream os) const

Write to Ostream.

Definition at line 60 of file hConstThermo.C.

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

Referenced by hConstThermo< EquationOfState >::typeName().

Here is the call graph for this function:

Here is the caller graph for this function:

void operator+= ( const hConstThermo< EquationOfState > &  )
inline

Definition at line 154 of file hConstThermoI.H.

Referenced by hConstThermo< EquationOfState >::typeName().

Here is the caller graph for this function:

void operator-= ( const hConstThermo< EquationOfState > &  )
inline

Definition at line 172 of file hConstThermoI.H.

References hConstThermo< EquationOfState >::s().

Referenced by hConstThermo< EquationOfState >::typeName().

Here is the call graph for this function:

Here is the caller graph for this function:

Friends And Related Function Documentation

hConstThermo operator+ ( const hConstThermo< EquationOfState > &  ,
const hConstThermo< EquationOfState > &   
)
friend
hConstThermo operator- ( const hConstThermo< EquationOfState > &  ,
const hConstThermo< EquationOfState > &   
)
friend
hConstThermo operator* ( const scalar  ,
const hConstThermo< EquationOfState > &   
)
friend
hConstThermo operator== ( const hConstThermo< EquationOfState > &  ,
const hConstThermo< EquationOfState > &   
)
friend
Ostream& operator ( Ostream ,
const hConstThermo< EquationOfState > &   
)
friend

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