thermophysicalPropertiesSelector< ThermophysicalProperties > Class Template Reference

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

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
 Liquid density [kg/m^3]. More...
 
scalar psi (scalar p, scalar T) const
 Liquid 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
 
void write (Ostream &os) const
 Write to Ostream. More...
 
scalar mu (scalar p, scalar T) const
 Liquid viscosity [Pa s]. More...
 
scalar kappa (scalar p, scalar T) const
 Liquid thermal conductivity [W/m/K]. 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 48 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 56 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

Liquid density [kg/m^3].

Definition at line 67 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

Liquid compressibility [s^2/m^2].

Note: currently it is assumed the liquid is incompressible

Definition at line 79 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].

Note: currently it is assumed the liquid is incompressible so CpMCv 0

Definition at line 91 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 103 of file thermophysicalPropertiesSelectorI.H.

References 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/kg].

Definition at line 115 of file thermophysicalPropertiesSelectorI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ Hf()

Foam::scalar Hf
inline

Enthalpy of formation [J/kg].

Definition at line 127 of file thermophysicalPropertiesSelectorI.H.

◆ Ha()

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

Absolute enthalpy [J/kg].

Definition at line 135 of file thermophysicalPropertiesSelectorI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ Cv()

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

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

Definition at line 147 of file thermophysicalPropertiesSelectorI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ Es()

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

Sensible internal energy [J/kg].

Definition at line 159 of file thermophysicalPropertiesSelectorI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ Ea()

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

Absolute internal energy [J/kg].

Definition at line 171 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 183 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.

◆ mu()

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

Liquid viscosity [Pa s].

Definition at line 195 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

Liquid thermal conductivity [W/m/K].

Definition at line 207 of file thermophysicalPropertiesSelectorI.H.

References p, and Foam::T().

Here is the call graph for this function:

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: