35 #ifndef liquidProperties_H 36 #define liquidProperties_H 46 class liquidProperties;
47 Ostream&
operator<<(Ostream& os,
const liquidProperties& l);
179 inline scalar
Y()
const;
182 inline scalar
Tc()
const;
185 inline scalar
Pc()
const;
188 inline scalar
Vc()
const;
191 inline scalar
Zc()
const;
194 inline scalar
Tt()
const;
197 inline scalar
Pt()
const;
200 inline scalar
Tb()
const;
203 inline scalar
dipm()
const;
206 inline scalar
omega()
const;
209 inline scalar
delta()
const;
212 inline scalar
limit(
const scalar
T)
const;
219 inline scalar
psi(scalar
p, scalar
T)
const;
224 inline scalar
CpMCv(scalar
p, scalar
T)
const;
230 virtual scalar
Hf()
const = 0;
234 virtual scalar
Hs(scalar
p, scalar
T)
const = 0;
238 virtual scalar
Ha(scalar
p, scalar
T)
const = 0;
242 inline scalar
Es(scalar
p,
const scalar
T)
const;
246 inline scalar
Ea(scalar
p, scalar
T)
const;
249 scalar
S(
const scalar
p,
const scalar
T)
const;
255 virtual scalar
pv(scalar
p, scalar
T)
const = 0;
258 virtual scalar
hl(scalar
p, scalar
T)
const = 0;
261 virtual scalar
Cpg(scalar
p, scalar
T)
const = 0;
264 virtual scalar
mu(scalar
p, scalar
T)
const = 0;
267 virtual scalar
mug(scalar
p, scalar
T)
const = 0;
270 virtual scalar
kappa(scalar
p, scalar
T)
const = 0;
273 virtual scalar
kappag(scalar
p, scalar
T)
const = 0;
276 virtual scalar
sigma(scalar
p, scalar
T)
const = 0;
279 virtual scalar
D(scalar
p, scalar
T)
const = 0;
282 virtual scalar
D(scalar
p, scalar
T, scalar Wb)
const = 0;
306 template<
class Liqu
id>
313 template<
class Liqu
id>
scalar delta() const
Solubility parameter [(J/m^3)^(1/2)].
virtual scalar Hs(scalar p, scalar T) const =0
Liquid sensible enthalpy [J/kg].
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
Mass fraction of this specie in mixture.
virtual scalar hl(scalar p, scalar T) const =0
Heat of vapourisation [J/kg].
declareRunTimeSelectionTable(autoPtr, liquidProperties,,(),())
scalar Pt() const
Triple point pressure [Pa].
virtual autoPtr< liquidProperties > clone() const =0
Construct and return clone.
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 Ea(scalar p, scalar T) const
Absolute internal energy [J/kg].
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 compressibility factor.
static const bool isochoric
Is the equation of state is isochoric i.e. rho = const.
virtual const word & name() const
Return the name of the liquid.
scalar psi(scalar p, scalar T) const
Liquid compressibility [s^2/m^2].
A class for handling words, derived from string.
scalar W() const
Molecular weight [kg/kmol].
virtual scalar Ha(scalar p, scalar T) const =0
Liquid absolute enthalpy [J/kg].
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].
virtual scalar Hf() const =0
Liquid heat of formation [J/kg].
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].
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 diffusivity [m^2/s].
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
liquidProperties(const word &name, 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.
scalar omega() const
Pitzer's acentric factor [].
scalar Pc() const
Critical pressure [Pa].
Ostream & operator<<(Ostream &, const ensightPart &)
scalar S(const scalar p, const scalar T) const
Liquid entropy [J/kg/K].
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 Es(scalar p, const scalar T) const
Sensible internal energy [J/kg].
virtual void write(Ostream &os) const =0
Write the function coefficients.
scalar Tb() const
Normal boiling temperature [K].
scalar Tt() const
Triple point temperature [K].