38 #ifndef thermophysicalProperties_H 39 #define thermophysicalProperties_H 50 class thermophysicalProperties;
51 Ostream&
operator<<(Ostream& os,
const thermophysicalProperties& l);
67 TypeName(
"thermophysicalProperties");
120 inline scalar
W()
const;
123 inline scalar
limit(
const scalar
T)
const;
129 virtual scalar
rho(scalar
p, scalar T)
const = 0;
133 virtual scalar
psi(scalar p, scalar T)
const = 0;
138 virtual scalar
CpMCv(scalar p, scalar T)
const = 0;
144 virtual scalar
Cp(
const scalar p,
const scalar T)
const = 0;
147 virtual scalar
Hs(
const scalar p,
const scalar T)
const = 0;
150 virtual scalar
Hf()
const = 0;
153 virtual scalar
Ha(
const scalar p,
const scalar T)
const = 0;
156 virtual scalar
S(
const scalar p,
const scalar T)
const = 0;
162 virtual scalar
mu(scalar p, scalar T)
const = 0;
165 virtual scalar
kappa(scalar p, scalar T)
const = 0;
168 virtual scalar
alphah(
const scalar p,
const scalar T)
const = 0;
virtual scalar Hf() const =0
Enthalpy of formation [J/kg].
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...
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 [s^2/m^2].
void readIfPresent(const dictionary &dict)
Read and set the properties present it the given dictionary.
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/m/s].
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 write(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.
Ostream & operator<<(Ostream &, const ensightPart &)
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].
declareRunTimeSelectionTable(autoPtr, thermophysicalProperties,,(),())
thermophysicalProperties(scalar W)
Construct from molecular weight.