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

Constant properties thermodynamics package templated on an equation of state. More...

Public Member Functions

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

Static Public Member Functions

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

Private Member Functions

 eConstThermo (const EquationOfState &st, const scalar cv, const scalar hf)
 Construct from components. More...
 

Private Attributes

scalar Cv_
 Heat capacity at constant volume. More...
 
scalar Hf_
 Heat of formation. More...
 

Friends

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

Detailed Description

Constant properties thermodynamics package templated on an equation of state.

Source files

Definition at line 48 of file eConstThermo.H.

Constructor & Destructor Documentation

◆ eConstThermo() [1/4]

eConstThermo ( const EquationOfState &  st,
const scalar  cv,
const scalar  hf 
)
inlineprivate

Construct from components.

Definition at line 30 of file eConstThermoI.H.

◆ eConstThermo() [2/4]

Construct from Istream.

◆ eConstThermo() [3/4]

eConstThermo ( const dictionary dict)

Construct from dictionary.

Definition at line 46 of file eConstThermo.C.

References eConstThermo::Cv_, and eConstThermo::Hf_.

◆ eConstThermo() [4/4]

eConstThermo ( const word ,
const eConstThermo  
)
inline

Construct as named copy.

Member Function Documentation

◆ clone()

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

Construct and return a clone.

Definition at line 59 of file eConstThermoI.H.

◆ New() [1/2]

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

Definition at line 70 of file eConstThermoI.H.

◆ New() [2/2]

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

Definition at line 81 of file eConstThermoI.H.

References dict.

◆ typeName()

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 143 of file eConstThermo.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 eConstThermoI.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 eConstThermoI.H.

References p, 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 115 of file eConstThermoI.H.

References Foam::cp(), 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/kmol].

Definition at line 126 of file eConstThermoI.H.

References Foam::cp(), 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 136 of file eConstThermoI.H.

◆ s()

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

Entropy [J/(kmol K)].

Definition at line 144 of file eConstThermoI.H.

References Foam::cp(), 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 eConstThermo.C.

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

Here is the call graph for this function:

◆ operator+=()

void operator+= ( const eConstThermo )
inline

Definition at line 157 of file eConstThermoI.H.

◆ operator-=()

void operator-= ( const eConstThermo )
inline

Definition at line 175 of file eConstThermoI.H.

Friends And Related Function Documentation

◆ operator+

eConstThermo operator+ ( const eConstThermo ,
const eConstThermo  
)
friend

◆ operator-

eConstThermo operator- ( const eConstThermo ,
const eConstThermo  
)
friend

◆ operator*

eConstThermo operator* ( const  scalar,
const eConstThermo  
)
friend

◆ operator==

eConstThermo operator== ( const eConstThermo ,
const eConstThermo  
)
friend

◆ operator

Ostream& operator ( Ostream ,
const eConstThermo  
)
friend

Field Documentation

◆ Cv_

scalar Cv_
private

Heat capacity at constant volume.

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

Definition at line 99 of file eConstThermo.H.

Referenced by eConstThermo::eConstThermo().

◆ Hf_

scalar Hf_
private

Heat of formation.

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

Definition at line 103 of file eConstThermo.H.

Referenced by eConstThermo::eConstThermo().


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