38 #ifndef thermophysicalProperties_H
39 #define thermophysicalProperties_H
50 class thermophysicalProperties;
51 Ostream&
operator<<(Ostream& os,
const thermophysicalProperties& l);
67 TypeName(
"thermophysicalProperties");
118 virtual const word&
name()
const = 0;
124 inline scalar
W()
const;
127 inline scalar
limit(
const scalar
T)
const;
133 virtual scalar
rho(scalar
p, scalar
T)
const = 0;
136 virtual scalar
psi(scalar
p, scalar
T)
const = 0;
139 virtual scalar
CpMCv(scalar
p, scalar
T)
const = 0;
145 virtual scalar
Cp(
const scalar
p,
const scalar
T)
const = 0;
148 virtual scalar
hs(
const scalar
p,
const scalar
T)
const = 0;
151 virtual scalar
hf()
const = 0;
154 virtual scalar
ha(
const scalar
p,
const scalar
T)
const = 0;
157 virtual scalar
s(
const scalar
p,
const scalar
T)
const = 0;
163 virtual scalar
mu(scalar
p, scalar
T)
const = 0;
166 virtual scalar
kappa(scalar
p, scalar
T)
const = 0;
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Base-class for thermophysical properties of solids, liquids and gases providing an interface compatib...
virtual const word & name() const =0
Return the name of the substance.
scalar limit(const scalar T) const
Limit the temperature to be in the range Tlow_ to Thigh_.
virtual scalar mu(scalar p, scalar T) const =0
Viscosity [Pa s].
virtual scalar CpMCv(scalar p, scalar T) const =0
Return (Cp - Cv) [J/(kg K].
virtual scalar hf() const =0
Enthalpy of formation [J/kg].
virtual void write(Ostream &os) const =0
Write the function coefficients.
virtual scalar s(const scalar p, const scalar T) const =0
TypeName("thermophysicalProperties")
virtual ~thermophysicalProperties()
Destructor.
virtual scalar psi(scalar p, scalar T) const =0
Compressibility [s^2/m^2].
thermophysicalProperties(scalar W)
Construct from molecular weight.
virtual scalar hs(const scalar p, const scalar T) const =0
Sensible enthalpy [J/kg].
scalar W() const
Molecular weight [kg/kmol].
virtual scalar rho(scalar p, scalar T) const =0
Density [kg/m^3].
static autoPtr< thermophysicalProperties > New(const word &name)
Return a pointer to a new thermophysicalProperties created from name.
declareRunTimeSelectionTable(autoPtr, thermophysicalProperties,,(),())
virtual scalar ha(const scalar p, const scalar T) const =0
Absolute enthalpy [J/kg].
void readIfPresent(const dictionary &dict)
Read and set the properties present it the given dictionary.
virtual scalar kappa(scalar p, scalar T) const =0
Thermal conductivity [W/m/K].
virtual scalar Cp(const scalar p, const scalar T) const =0
Heat capacity at constant pressure [J/kg/K].
A class for handling words, derived from string.
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Macros to ease declaration of run-time selection tables.