39 #ifndef thermophysicalPropertiesSelector_H 40 #define thermophysicalPropertiesSelector_H 53 template<
class ThermophysicalProperties>
76 ThermophysicalProperties::incompressible;
80 ThermophysicalProperties::isochoric;
89 "thermophysicalPropertiesSelector<" 90 + ThermophysicalProperties::typeName
95 inline const ThermophysicalProperties&
properties()
const;
101 inline scalar
W()
const;
104 inline scalar
limit(
const scalar
T)
const;
110 inline scalar
rho(scalar
p, scalar
T)
const;
114 inline scalar
psi(scalar
p, scalar
T)
const;
119 inline scalar
CpMCv(scalar
p, scalar
T)
const;
125 inline scalar
Cp(
const scalar
p,
const scalar
T)
const;
128 inline scalar
Ha(
const scalar
p,
const scalar
T)
const;
131 inline scalar
Hs(
const scalar
p,
const scalar
T)
const;
134 inline scalar
Hc()
const;
137 inline scalar
Cv(
const scalar
p,
const scalar
T)
const;
140 inline scalar
Es(
const scalar
p,
const scalar
T)
const;
143 inline scalar
Ea(
const scalar
p,
const scalar
T)
const;
146 inline scalar
S(
const scalar
p,
const scalar
T)
const;
152 inline scalar
mu(scalar
p, scalar
T)
const;
155 inline scalar
kappa(scalar
p, scalar
T)
const;
158 inline scalar
alphah(
const scalar
p,
const scalar
T)
const;
scalar Es(const scalar p, const scalar T) const
Sensible internal energy [J/kg].
scalar kappa(scalar p, scalar T) const
Liquid thermal conductivity [W/(m K)].
scalar Cp(const scalar p, const scalar T) const
Heat capacity at constant pressure [J/(kg K)].
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
thermophysicalPropertiesSelector(const word &name)
Construct from name.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
scalar CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
scalar alphah(const scalar p, const scalar T) const
Liquid thermal diffusivity of enthalpy [kg/ms].
scalar rho(scalar p, scalar T) const
Liquid density [kg/m^3].
scalar W() const
Molecular weight [kg/kmol].
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
A class for handling words, derived from Foam::string.
scalar Ha(const scalar p, const scalar T) const
Absolute Enthalpy [J/kg].
scalar S(const scalar p, const scalar T) const
static word typeName()
Return the instantiated type name.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
scalar Ea(const scalar p, const scalar T) const
Absolute internal energy [J/kg].
scalar psi(scalar p, scalar T) const
Liquid compressibility rho/p [s^2/m^2].
const ThermophysicalProperties & properties() const
Return reference to the selected physical properties class.
scalar mu(scalar p, scalar T) const
Liquid viscosity [Pa s].
scalar limit(const scalar T) const
Limit temperature to be within the range.
scalar Cv(const scalar p, const scalar T) const
Heat capacity at constant volume [J/(kg K)].
static const bool isochoric
Is the equation of state is isochoric i.e. rho = const.
scalar Hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kg].
scalar Hc() const
Chemical enthalpy [J/kg].
Wrapper class providing run-time selection of thermophysicalProperties for the templated thermodynami...