35 #ifndef liquidProperties_H
36 #define liquidProperties_H
46 template<
class>
class Function1;
47 template<
class>
class Function2;
50 class liquidProperties;
51 Ostream&
operator<<(Ostream& os,
const liquidProperties& l);
183 inline scalar
Y()
const;
186 inline scalar
Tc()
const;
189 inline scalar
Pc()
const;
192 inline scalar
Vc()
const;
195 inline scalar
Zc()
const;
198 inline scalar
Tt()
const;
201 inline scalar
Pt()
const;
204 inline scalar
Tb()
const;
207 inline scalar
dipm()
const;
210 inline scalar
omega()
const;
213 inline scalar
delta()
const;
216 inline scalar
limit(
const scalar
T)
const;
223 inline scalar
psi(scalar
p, scalar
T)
const;
228 inline scalar
CpMCv(scalar
p, scalar
T)
const;
234 virtual scalar
hf()
const = 0;
238 virtual scalar
hs(scalar
p, scalar
T)
const = 0;
242 virtual scalar
ha(scalar
p, scalar
T)
const = 0;
246 inline scalar
es(scalar
p,
const scalar
T)
const;
250 inline scalar
ea(scalar
p, scalar
T)
const;
253 scalar
s(
const scalar
p,
const scalar
T)
const;
259 virtual scalar
pv(scalar
p, scalar
T)
const = 0;
262 virtual scalar
hl(scalar
p, scalar
T)
const = 0;
265 virtual scalar
Cpg(scalar
p, scalar
T)
const = 0;
268 virtual scalar
mu(scalar
p, scalar
T)
const = 0;
271 virtual scalar
mug(scalar
p, scalar
T)
const = 0;
274 virtual scalar
kappa(scalar
p, scalar
T)
const = 0;
277 virtual scalar
kappag(scalar
p, scalar
T)
const = 0;
280 virtual scalar
sigma(scalar
p, scalar
T)
const = 0;
283 virtual scalar
D(scalar
p, scalar
T)
const = 0;
286 virtual scalar
D(scalar
p, scalar
T, scalar Wb)
const = 0;
335 template<
class Liqu
id>
380 template<
class Liqu
id>
Run-time selectable function of two variables.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Dimension set for the base types.
The thermophysical properties of a liquid.
scalar ea(scalar p, scalar T) const
Absolute internal energy [J/kg].
scalar Vc() const
Critical volume [m^3/kmol].
scalar limit(const scalar T) const
Limit the temperature to be in the range Tlow_ to Thigh_.
virtual scalar mu(scalar p, scalar T) const =0
Liquid viscosity [Pa s].
virtual scalar D(scalar p, scalar T) const =0
Vapour diffusivity [m^2/s].
scalar psi(scalar p, scalar T) const
Liquid compressibility [s^2/m^2].
virtual scalar hl(scalar p, scalar T) const =0
Heat of vapourisation [J/kg].
virtual scalar sigma(scalar p, scalar T) const =0
Surface tension [N/m].
virtual scalar hf() const =0
Liquid heat of formation [J/kg].
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 Zc() const
Critical compressibility factor.
virtual void write(Ostream &os) const =0
Write the function coefficients.
scalar s(const scalar p, const scalar T) const
Liquid entropy [J/kg/K].
scalar delta() const
Solubility parameter [(J/m^3)^(1/2)].
friend Ostream & operator<<(Ostream &os, const liquidProperties &l)
Ostream Operator.
scalar es(scalar p, const scalar T) const
Sensible internal energy [J/kg].
virtual scalar kappag(scalar p, scalar T) const =0
Vapour thermal conductivity [W/m/K].
virtual autoPtr< liquidProperties > clone() const =0
Construct and return clone.
virtual scalar mug(scalar p, scalar T) const =0
Vapour viscosity [Pa s].
scalar Tb() const
Normal boiling temperature [K].
scalar Pc() const
Critical pressure [Pa].
virtual scalar pv(scalar p, scalar T) const =0
Vapour pressure [Pa].
virtual scalar hs(scalar p, scalar T) const =0
Liquid sensible enthalpy [J/kg].
virtual scalar ha(scalar p, scalar T) const =0
Liquid absolute enthalpy [J/kg].
scalar Pt() const
Triple point pressure [Pa].
scalar omega() const
Pitzer's acentric factor [].
scalar CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
scalar Tt() const
Triple point temperature [K].
scalar dipm() const
Dipole moment [].
static const bool isochoric
Is the equation of state is isochoric i.e. rho = const.
virtual scalar Cpg(scalar p, scalar T) const =0
Vapour heat capacity [J/kg/K].
declareRunTimeSelectionTable(autoPtr, liquidProperties,,(),())
scalar Y() const
Mass fraction of this specie in mixture.
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
virtual const word & name() const
Return the name of the liquid.
static autoPtr< liquidProperties > New(const word &name)
Return a pointer to a new liquidProperties created from name.
virtual scalar pvInvert(scalar p) const
Invert the vapour pressure relationship to retrieve the.
virtual ~liquidProperties()
Destructor.
scalar Tc() const
Critical temperature [K].
void readIfPresent(const dictionary &dict)
Read and set the properties present it the given dictionary.
virtual scalar kappa(scalar p, scalar T) const =0
Liquid thermal conductivity [W/m/K].
Convenience class to handle the input of constant rotational speed. Reads an omega entry with default...
Base-class for thermophysical properties of solids, liquids and gases providing an interface compatib...
scalar W() const
Molecular weight [kg/kmol].
A class for handling words, derived from string.
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)