35 #ifndef liquidProperties_H 36 #define liquidProperties_H 167 inline scalar
Y()
const;
170 inline scalar
Tc()
const;
173 inline scalar
Pc()
const;
176 inline scalar
Vc()
const;
179 inline scalar
Zc()
const;
182 inline scalar
Tt()
const;
185 inline scalar
Pt()
const;
188 inline scalar
Tb()
const;
191 inline scalar
dipm()
const;
194 inline scalar
omega()
const;
197 inline scalar
delta()
const;
200 inline scalar
limit(
const scalar
T)
const;
207 inline scalar
psi(scalar
p, scalar
T)
const;
212 inline scalar
CpMCv(scalar
p, scalar
T)
const;
218 inline scalar
Ha(
const scalar
p,
const scalar
T)
const;
221 inline scalar
Hs(
const scalar
p,
const scalar
T)
const;
224 inline scalar
Hc()
const;
227 scalar
S(
const scalar
p,
const scalar
T)
const;
233 virtual scalar
pv(scalar
p, scalar
T)
const = 0;
236 virtual scalar
hl(scalar
p, scalar
T)
const = 0;
239 virtual scalar
h(scalar
p, scalar
T)
const = 0;
242 virtual scalar
Cpg(scalar
p, scalar
T)
const = 0;
245 virtual scalar
mu(scalar
p, scalar
T)
const = 0;
248 virtual scalar
mug(scalar
p, scalar
T)
const = 0;
251 virtual scalar
kappa(scalar
p, scalar
T)
const = 0;
254 inline scalar
alphah(
const scalar
p,
const scalar
T)
const;
257 virtual scalar
kappag(scalar
p, scalar
T)
const = 0;
260 virtual scalar
sigma(scalar
p, scalar
T)
const = 0;
263 virtual scalar
D(scalar
p, scalar
T)
const = 0;
266 virtual scalar
D(scalar
p, scalar
T, scalar Wb)
const = 0;
290 template<
class Liqu
id>
300 template<
class Liqu
id>
scalar delta() const
Solubility parameter [(J/m^3)^(1/2)].
Base-class for thermophysical properties of solids, liquids and gases providing an interface compatib...
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual scalar Cpg(scalar p, scalar T) const =0
Vapour heat capacity [J/(kg K)].
virtual scalar pvInvert(scalar p) const
Invert the vapour pressure relationship to retrieve the.
void readIfPresent(const dictionary &dict)
Read and set the properties present it the given dictionary.
virtual ~liquidProperties()
Destructor.
scalar Y() const
No of moles of this species in mixture.
virtual scalar hl(scalar p, scalar T) const =0
Heat of vapourisation [J/kg].
declareRunTimeSelectionTable(autoPtr, liquidProperties,,(),())
scalar Ha(const scalar p, const scalar T) const
Absolute Enthalpy [J/kg].
scalar Pt() const
Triple point pressure [Pa].
virtual autoPtr< liquidProperties > clone() const =0
Construct and return clone.
liquidProperties(scalar W, scalar Tc, scalar Pc, scalar Vc, scalar Zc, scalar Tt, scalar Pt, scalar Tb, scalar dipm, scalar omega, scalar delta)
Construct from components.
virtual scalar kappa(scalar p, scalar T) const =0
Liquid thermal conductivity [W/(m K)].
scalar dipm() const
Dipole moment [].
virtual scalar sigma(scalar p, scalar T) const =0
Surface tension [N/m].
friend Ostream & operator<<(Ostream &os, const liquidProperties &l)
Ostream Operator.
scalar limit(const scalar T) const
Limit the temperature to be in the range Tlow_ to Thigh_.
scalar Tc() const
Critical temperature [K].
scalar Zc() const
Critical compressibilty factor.
scalar Hc() const
Chemical enthalpy [J/kg].
static const bool isochoric
Is the equation of state is isochoric i.e. rho = const.
scalar psi(scalar p, scalar T) const
Liquid compressibility rho/p [s^2/m^2].
A class for handling words, derived from string.
scalar W() const
Molecular weight [kg/kmol].
virtual scalar h(scalar p, scalar T) const =0
Liquid enthalpy [J/kg] - reference to 298.15 K.
The thermophysical properties of a liquid.
scalar CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
virtual scalar pv(scalar p, scalar T) const =0
Vapour pressure [Pa].
scalar Vc() const
Critical volume [m^3/kmol].
virtual scalar kappag(scalar p, scalar T) const =0
Vapour thermal conductivity [W/(m K)].
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual scalar mug(scalar p, scalar T) const =0
Vapour viscosity [Pa s].
scalar Hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kg].
static autoPtr< liquidProperties > New(const word &name)
Return a pointer to a new liquidProperties created from name.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
virtual scalar D(scalar p, scalar T) const =0
Vapour diffussivity [m2/s].
word name(const complex &)
Return a string representation of a complex.
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
virtual void writeData(Ostream &os) const =0
Write the function coefficients.
scalar omega() const
Pitzer's ascentric factor [].
scalar Pc() const
Critical pressure [Pa].
void write(Ostream &os) const
Write dictionary to Ostream.
scalar S(const scalar p, const scalar T) const
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual scalar mu(scalar p, scalar T) const =0
Liquid viscosity [Pa s].
scalar alphah(const scalar p, const scalar T) const
Liquid thermal diffusivity of enthalpy [kg/ms].
scalar Tb() const
Normal boiling temperature [K].
scalar Tt() const
Triple point temperature [K].