41 #ifndef thermophysicalProperties_H 42 #define thermophysicalProperties_H 66 TypeName(
"thermophysicalProperties");
118 inline scalar
W()
const;
121 inline scalar
limit(
const scalar
T)
const;
127 virtual scalar
rho(scalar
p, scalar
T)
const = 0;
131 virtual scalar
psi(scalar
p, scalar
T)
const = 0;
136 virtual scalar
CpMCv(scalar
p, scalar
T)
const = 0;
142 virtual scalar
Cp(
const scalar
p,
const scalar
T)
const = 0;
145 virtual scalar
Hs(
const scalar
p,
const scalar
T)
const = 0;
148 virtual scalar
Hc()
const = 0;
151 virtual scalar
Ha(
const scalar
p,
const scalar
T)
const = 0;
154 virtual scalar
S(
const scalar
p,
const scalar
T)
const = 0;
160 virtual scalar
mu(scalar
p, scalar
T)
const = 0;
163 virtual scalar
kappa(scalar
p, scalar
T)
const = 0;
166 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 ~thermophysicalProperties()=default
Destructor.
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 a number of values (eg...
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.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
static autoPtr< thermophysicalProperties > New(const word &name)
Return a pointer to a new thermophysicalProperties created from name.
A class for handling words, derived from Foam::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)].
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.
OBJstream os(runTime.globalPath()/outputName)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Macros to ease declaration of run-time selection tables.
scalar limit(const scalar T) const
Limit temperature to be within the range.
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.