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;
137 virtual scalar
psi(scalar p, scalar T)
const = 0;
142 virtual scalar
CpMCv(scalar p, scalar T)
const = 0;
148 virtual scalar
Cp(
const scalar p,
const scalar T)
const = 0;
151 virtual scalar
Hs(
const scalar p,
const scalar T)
const = 0;
154 virtual scalar
Hf()
const = 0;
157 virtual scalar
Ha(
const scalar p,
const scalar T)
const = 0;
160 virtual scalar
S(
const scalar p,
const scalar T)
const = 0;
166 virtual scalar
mu(scalar p, scalar T)
const = 0;
169 virtual scalar
kappa(scalar p, scalar T)
const = 0;
virtual const word & name() const =0
Return the name of the liquid.
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 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)
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.