38 #ifndef thermophysicalProperties_H 39 #define thermophysicalProperties_H 63 TypeName(
"thermophysicalProperties");
116 inline scalar
W()
const;
119 inline scalar
limit(
const scalar
T)
const;
125 virtual scalar
rho(scalar
p, scalar T)
const = 0;
129 virtual scalar
psi(scalar p, scalar T)
const = 0;
134 virtual scalar
CpMCv(scalar p, scalar T)
const = 0;
140 virtual scalar
Cp(
const scalar p,
const scalar T)
const = 0;
143 virtual scalar
Ha(
const scalar p,
const scalar T)
const = 0;
146 virtual scalar
Hs(
const scalar p,
const scalar T)
const = 0;
149 virtual scalar
Hc()
const = 0;
152 virtual scalar
S(
const scalar p,
const scalar T)
const = 0;
158 virtual scalar
mu(scalar p, scalar T)
const = 0;
161 virtual scalar
kappa(scalar p, scalar T)
const = 0;
164 virtual scalar
alphah(
const scalar p,
const scalar T)
const = 0;
TypeName("thermophysicalProperties")
Base-class for thermophysical properties of solids, liquids and gases providing an interface compatib...
virtual scalar rho(scalar p, scalar T) const =0
Liquid density [kg/m^3].
A list of keyword definitions, which are a keyword followed by any number of values (e...
void write(Ostream &os) const
Write dictionary to Ostream.
virtual scalar CpMCv(scalar p, scalar T) const =0
Return (Cp - Cv) [J/(kg K].
virtual scalar kappa(scalar p, scalar T) const =0
Liquid thermal conductivity [W/(m K)].
virtual scalar mu(scalar p, scalar T) const =0
Liquid viscosity [Pa s].
virtual scalar psi(scalar p, scalar T) const =0
Liquid compressibility rho/p [s^2/m^2].
void readIfPresent(const dictionary &dict)
Read and set the properties present it the given dictionary.
friend Ostream & operator<<(Ostream &os, const thermophysicalProperties &l)
Ostream Operator.
static autoPtr< thermophysicalProperties > New(const word &name)
Return a pointer to a new thermophysicalProperties created from name.
A class for handling words, derived from string.
scalar W() const
Molecular weight [kg/kmol].
virtual scalar alphah(const scalar p, const scalar T) const =0
Liquid thermal diffusivity of enthalpy [kg/ms].
virtual scalar Cp(const scalar p, const scalar T) const =0
Heat capacity at constant pressure [J/(kg K)].
virtual ~thermophysicalProperties()
Destructor.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual scalar Ha(const scalar p, const scalar T) const =0
Absolute Enthalpy [J/kg].
virtual scalar S(const scalar p, const scalar T) const =0
virtual void writeData(Ostream &os) const =0
Write the function coefficients.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
word name(const complex &)
Return a string representation of a complex.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Macros to ease declaration of run-time selection tables.
scalar limit(const scalar T) const
Limit the temperature to be in the range Tlow_ to Thigh_.
virtual scalar Hs(const scalar p, const scalar T) const =0
Sensible enthalpy [J/kg].
virtual scalar Hc() const =0
Chemical enthalpy [J/kg].
declareRunTimeSelectionTable(autoPtr, thermophysicalProperties,,(),())
thermophysicalProperties(scalar W)
Construct from molecular weight.