thermophysicalPropertiesSelector< ThermophysicalProperties > Class Template Reference

Wrapper class providing run-time selection of thermophysicalProperties for the templated thermodynamics packages. More...

Inheritance diagram for thermophysicalPropertiesSelector< ThermophysicalProperties >:

Public Member Functions

 thermophysicalPropertiesSelector (const word &name)
 Construct from name. More...
 
 thermophysicalPropertiesSelector (const word &name, const dictionary &dict)
 Construct from name and dictionary. More...
 
 thermophysicalPropertiesSelector (const word &name, const thermophysicalPropertiesSelector &)
 Construct as named copy. More...
 
const wordname () const
 Return the specie name. More...
 
const ThermophysicalProperties & properties () const
 Return the physical properties model. More...
 
scalar W () const
 Molecular weight [kg/kmol]. More...
 
scalar limit (const scalar T) const
 Limit the temperature to be in the range Tlow_ to Thigh_. More...
 
scalar rho (scalar p, scalar T) const
 Density [kg/m^3]. More...
 
scalar psi (scalar p, scalar T) const
 Compressibility [s^2/m^2]. More...
 
scalar CpMCv (scalar p, scalar T) const
 Return (Cp - Cv) [J/kg/K]. More...
 
scalar Cp (const scalar p, const scalar T) const
 Heat capacity at constant pressure [J/kg/K]. More...
 
scalar hs (const scalar p, const scalar T) const
 Sensible enthalpy [J/kg]. More...
 
scalar hf () const
 Enthalpy of formation [J/kg]. More...
 
scalar ha (const scalar p, const scalar T) const
 Absolute enthalpy [J/kg]. More...
 
scalar Cv (const scalar p, const scalar T) const
 Heat capacity at constant volume [J/kg/K]. More...
 
scalar es (const scalar p, const scalar T) const
 Sensible internal energy [J/kg]. More...
 
scalar ea (const scalar p, const scalar T) const
 Absolute internal energy [J/kg]. More...
 
scalar s (const scalar p, const scalar T) const
 
scalar kappa (scalar p, scalar T) const
 Thermal conductivity [W/m/K]. More...
 
void write (Ostream &os) const
 Write to Ostream. More...
 

Static Public Member Functions

static word typeName ()
 Return the instantiated type name. More...
 

Static Public Attributes

static const bool incompressible
 Is the equation of state is incompressible i.e. rho != f(p) More...
 
static const bool isochoric
 Is the equation of state is isochoric i.e. rho = const. More...
 

Detailed Description

template<class ThermophysicalProperties>
class Foam::thermophysicalPropertiesSelector< ThermophysicalProperties >

Wrapper class providing run-time selection of thermophysicalProperties for the templated thermodynamics packages.

Source files

Definition at line 51 of file thermophysicalPropertiesSelector.H.

Constructor & Destructor Documentation

◆ thermophysicalPropertiesSelector() [1/3]

Construct from name.

Definition at line 31 of file thermophysicalPropertiesSelector.C.

◆ thermophysicalPropertiesSelector() [2/3]

thermophysicalPropertiesSelector ( const word name,
const dictionary dict 
)

Construct from name and dictionary.

Definition at line 43 of file thermophysicalPropertiesSelector.C.

References dict, Foam::compressible::New(), and Foam::type().

Here is the call graph for this function:

◆ thermophysicalPropertiesSelector() [3/3]

thermophysicalPropertiesSelector ( const word name,
const thermophysicalPropertiesSelector< ThermophysicalProperties > &  tps 
)

Construct as named copy.

Definition at line 66 of file thermophysicalPropertiesSelector.C.

Member Function Documentation

◆ typeName()

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 98 of file thermophysicalPropertiesSelector.H.

◆ name()

const Foam::word & name
inline

Return the specie name.

Definition at line 32 of file thermophysicalPropertiesSelectorI.H.

◆ properties()

const ThermophysicalProperties & properties
inline

Return the physical properties model.

Definition at line 40 of file thermophysicalPropertiesSelectorI.H.

◆ W()

Foam::scalar W
inline

Molecular weight [kg/kmol].

Definition at line 49 of file thermophysicalPropertiesSelectorI.H.

◆ limit()

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

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

Definition at line 57 of file thermophysicalPropertiesSelectorI.H.

References Foam::T().

Here is the call graph for this function:

◆ rho()

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

Density [kg/m^3].

Definition at line 68 of file thermophysicalPropertiesSelectorI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ psi()

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

Compressibility [s^2/m^2].

Definition at line 80 of file thermophysicalPropertiesSelectorI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ CpMCv()

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

Return (Cp - Cv) [J/kg/K].

Definition at line 92 of file thermophysicalPropertiesSelectorI.H.

References p, and 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 104 of file thermophysicalPropertiesSelectorI.H.

◆ hs()

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

Sensible enthalpy [J/kg].

Definition at line 116 of file thermophysicalPropertiesSelectorI.H.

◆ hf()

Foam::scalar hf
inline

Enthalpy of formation [J/kg].

Definition at line 128 of file thermophysicalPropertiesSelectorI.H.

◆ ha()

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

Absolute enthalpy [J/kg].

Definition at line 136 of file thermophysicalPropertiesSelectorI.H.

◆ Cv()

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

Heat capacity at constant volume [J/kg/K].

Definition at line 148 of file thermophysicalPropertiesSelectorI.H.

◆ es()

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

Sensible internal energy [J/kg].

Definition at line 160 of file thermophysicalPropertiesSelectorI.H.

◆ ea()

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

Absolute internal energy [J/kg].

Definition at line 172 of file thermophysicalPropertiesSelectorI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ s()

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

Definition at line 184 of file thermophysicalPropertiesSelectorI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ kappa()

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

Thermal conductivity [W/m/K].

Definition at line 196 of file thermophysicalPropertiesSelectorI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const

Write to Ostream.

Definition at line 81 of file thermophysicalPropertiesSelector.C.

Member Data Documentation

◆ incompressible

const bool incompressible
static
Initial value:
=
ThermophysicalProperties::incompressible

Is the equation of state is incompressible i.e. rho != f(p)

Definition at line 87 of file thermophysicalPropertiesSelector.H.

◆ isochoric

const bool isochoric
static
Initial value:
=
ThermophysicalProperties::isochoric

Is the equation of state is isochoric i.e. rho = const.

Definition at line 91 of file thermophysicalPropertiesSelector.H.


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