Loading...
Searching...
No Matches
thermophysicalPropertiesSelector< ThermophysicalProperties > Class Template Reference

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

#include <thermophysicalPropertiesSelector.H>

Public Member Functions

 thermophysicalPropertiesSelector (const word &name)
 Construct from name.
 thermophysicalPropertiesSelector (const dictionary &dict)
 Construct from dictionary.
const ThermophysicalProperties & properties () const
 Return reference to the selected physical properties class.
scalar W () const
 Molecular weight [kg/kmol].
scalar limit (const scalar T) const
 Limit temperature to be within the range.
scalar rho (scalar p, scalar T) const
 Liquid density [kg/m^3].
scalar psi (scalar p, scalar T) const
 Liquid compressibility rho/p [s^2/m^2].
scalar CpMCv (scalar p, scalar T) const
 Return (Cp - Cv) [J/(kg K].
scalar Cp (const scalar p, const scalar T) const
 Heat capacity at constant pressure [J/(kg K)].
scalar Ha (const scalar p, const scalar T) const
 Absolute Enthalpy [J/kg].
scalar Hs (const scalar p, const scalar T) const
 Sensible enthalpy [J/kg].
scalar Hc () const
 Chemical enthalpy [J/kg].
scalar Cv (const scalar p, const scalar T) const
 Heat capacity at constant volume [J/(kg K)].
scalar Es (const scalar p, const scalar T) const
 Sensible internal energy [J/kg].
scalar Ea (const scalar p, const scalar T) const
 Absolute internal energy [J/kg].
scalar S (const scalar p, const scalar T) const
scalar mu (scalar p, scalar T) const
 Liquid viscosity [Pa s].
scalar kappa (scalar p, scalar T) const
 Liquid thermal conductivity [W/(m K)].
scalar alphah (const scalar p, const scalar T) const
 Liquid thermal diffusivity of enthalpy [kg/ms].

Static Public Member Functions

static word typeName ()
 Return the instantiated type name.

Static Public Attributes

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

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 49 of file thermophysicalPropertiesSelector.H.

Constructor & Destructor Documentation

◆ thermophysicalPropertiesSelector() [1/2]

template<class ThermophysicalProperties>
thermophysicalPropertiesSelector ( const word & name)

Construct from name.

Definition at line 26 of file thermophysicalPropertiesSelector.C.

References Foam::name(), and Foam::New().

Here is the call graph for this function:

◆ thermophysicalPropertiesSelector() [2/2]

template<class ThermophysicalProperties>
thermophysicalPropertiesSelector ( const dictionary & dict)

Construct from dictionary.

Definition at line 37 of file thermophysicalPropertiesSelector.C.

References dict, Foam::name(), and name.

Here is the call graph for this function:

Member Function Documentation

◆ typeName()

template<class ThermophysicalProperties>
word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 91 of file thermophysicalPropertiesSelector.H.

◆ properties()

template<class ThermophysicalProperties>
const ThermophysicalProperties & properties ( ) const
inline

Return reference to the selected physical properties class.

Definition at line 26 of file thermophysicalPropertiesSelectorI.H.

◆ W()

template<class ThermophysicalProperties>
Foam::scalar W ( ) const
inline

Molecular weight [kg/kmol].

Definition at line 34 of file thermophysicalPropertiesSelectorI.H.

References W().

Referenced by W().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ limit()

template<class ThermophysicalProperties>
Foam::scalar limit ( const scalar T) const
inline

Limit temperature to be within the range.

Definition at line 42 of file thermophysicalPropertiesSelectorI.H.

References Foam::T().

Here is the call graph for this function:

◆ rho()

template<class ThermophysicalProperties>
Foam::scalar rho ( scalar p,
scalar T ) const
inline

Liquid density [kg/m^3].

Definition at line 53 of file thermophysicalPropertiesSelectorI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ psi()

template<class ThermophysicalProperties>
Foam::scalar psi ( scalar p,
scalar T ) const
inline

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

Note: currently it is assumed the liquid is incompressible

Definition at line 65 of file thermophysicalPropertiesSelectorI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ CpMCv()

template<class ThermophysicalProperties>
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 77 of file thermophysicalPropertiesSelectorI.H.

References p, and Foam::T().

Referenced by Cv().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Cp()

template<class ThermophysicalProperties>
Foam::scalar Cp ( const scalar p,
const scalar T ) const
inline

Heat capacity at constant pressure [J/(kg K)].

Definition at line 89 of file thermophysicalPropertiesSelectorI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ Ha()

template<class ThermophysicalProperties>
Foam::scalar Ha ( const scalar p,
const scalar T ) const
inline

Absolute Enthalpy [J/kg].

Definition at line 101 of file thermophysicalPropertiesSelectorI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ Hs()

template<class ThermophysicalProperties>
Foam::scalar Hs ( const scalar p,
const scalar T ) const
inline

Sensible enthalpy [J/kg].

Definition at line 113 of file thermophysicalPropertiesSelectorI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ Hc()

template<class ThermophysicalProperties>
Foam::scalar Hc ( ) const
inline

Chemical enthalpy [J/kg].

Definition at line 125 of file thermophysicalPropertiesSelectorI.H.

◆ Cv()

template<class ThermophysicalProperties>
Foam::scalar Cv ( const scalar p,
const scalar T ) const
inline

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

Definition at line 133 of file thermophysicalPropertiesSelectorI.H.

References CpMCv(), p, and Foam::T().

Here is the call graph for this function:

◆ Es()

template<class ThermophysicalProperties>
Foam::scalar Es ( const scalar p,
const scalar T ) const
inline

Sensible internal energy [J/kg].

Definition at line 145 of file thermophysicalPropertiesSelectorI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ Ea()

template<class ThermophysicalProperties>
Foam::scalar Ea ( const scalar p,
const scalar T ) const
inline

Absolute internal energy [J/kg].

Definition at line 157 of file thermophysicalPropertiesSelectorI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ S()

template<class ThermophysicalProperties>
Foam::scalar S ( const scalar p,
const scalar T ) const
inline

Definition at line 169 of file thermophysicalPropertiesSelectorI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ mu()

template<class ThermophysicalProperties>
Foam::scalar mu ( scalar p,
scalar T ) const
inline

Liquid viscosity [Pa s].

Definition at line 181 of file thermophysicalPropertiesSelectorI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ kappa()

template<class ThermophysicalProperties>
Foam::scalar kappa ( scalar p,
scalar T ) const
inline

Liquid thermal conductivity [W/(m K)].

Definition at line 193 of file thermophysicalPropertiesSelectorI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ alphah()

template<class ThermophysicalProperties>
Foam::scalar alphah ( const scalar p,
const scalar T ) const
inline

Liquid thermal diffusivity of enthalpy [kg/ms].

Definition at line 205 of file thermophysicalPropertiesSelectorI.H.

References p, and Foam::T().

Here is the call graph for this function:

Member Data Documentation

◆ incompressible

template<class ThermophysicalProperties>
const bool incompressible
static
Initial value:
=
ThermophysicalProperties::incompressible

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

Definition at line 76 of file thermophysicalPropertiesSelector.H.

◆ isochoric

template<class ThermophysicalProperties>
const bool isochoric
static
Initial value:
=
ThermophysicalProperties::isochoric

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

Definition at line 82 of file thermophysicalPropertiesSelector.H.


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