A mixture of liquids. More...
Public Member Functions | |
liquidMixtureProperties (const dictionary &dict) | |
Construct from dictionary. More... | |
liquidMixtureProperties (const liquidMixtureProperties &lm) | |
Construct copy. More... | |
virtual autoPtr< liquidMixtureProperties > | clone () const |
Construct and return a clone. More... | |
virtual | ~liquidMixtureProperties () |
Destructor. More... | |
const List< word > & | components () const |
Return the liquid names. More... | |
const PtrList< liquidProperties > & | properties () const |
Return the liquid properties. More... | |
label | size () const |
Return the number of liquids in the mixture. More... | |
scalar | Tc (const scalarField &X) const |
Calculate the critical temperature of mixture. More... | |
scalar | pvInvert (const scalar p, const scalarField &X) const |
Invert the vapour pressure relationship to retrieve the boiling. More... | |
scalar | Tpc (const scalarField &X) const |
Return pseudocritical temperature according to Kay's rule. More... | |
scalar | Ppc (const scalarField &X) const |
Return pseudocritical pressure (modified Prausnitz and Gunn) More... | |
scalar | Tpt (const scalarField &X) const |
Return pseudo triple point temperature (mole averaged formulation) More... | |
scalar | omega (const scalarField &X) const |
Return mixture accentric factor. More... | |
scalarField | Xs (const scalar p, const scalar Tg, const scalar Tl, const scalarField &Xg, const scalarField &Xl) const |
Return the surface molar fractions. More... | |
scalar | W (const scalarField &X) const |
Calculate the mean molecular weight [kg/kmol]. More... | |
scalarField | Y (const scalarField &X) const |
Returns the mass fractions corresponding to the given mole fractions. More... | |
scalarField | X (const scalarField &Y) const |
Returns the mole fractions corresponding to the given mass fractions. More... | |
scalar | rho (const scalar p, const scalar T, const scalarField &X) const |
Calculate the mixture density [kg/m^3]. More... | |
scalar | pv (const scalar p, const scalar T, const scalarField &X) const |
Calculate the mixture vapour pressure [Pa]. More... | |
scalar | hl (const scalar p, const scalar T, const scalarField &X) const |
Calculate the mixture latent heat [J/kg]. More... | |
scalar | Cp (const scalar p, const scalar T, const scalarField &X) const |
Calculate the mixture heat capacity [J/(kg K)]. More... | |
scalar | sigma (const scalar p, const scalar T, const scalarField &X) const |
Estimate mixture surface tension [N/m]. More... | |
scalar | mu (const scalar p, const scalar T, const scalarField &X) const |
Calculate the mixture viscosity [Pa s]. More... | |
scalar | K (const scalar p, const scalar T, const scalarField &X) const |
Estimate thermal conductivity [W/(m K)]. More... | |
scalar | D (const scalar p, const scalar T, const scalarField &X) const |
Vapour diffussivity [m2/s]. More... | |
Static Public Member Functions | |
static autoPtr< liquidMixtureProperties > | New (const dictionary &) |
Select construct from dictionary. More... | |
Private Attributes | |
List< word > | components_ |
The names of the liquids. More... | |
PtrList< liquidProperties > | properties_ |
The liquid properties. More... | |
Static Private Attributes | |
static const scalar | TrMax = 0.999 |
Maximum reduced temperature. More... | |
A mixture of liquids.
An example of a two component liquid mixture:
<parentDictionary> { H2O { defaultCoeffs yes; // employ default coefficients } C7H16 { defaultCoeffs no; C7H16Coeffs { ... user defined properties for C7H16 } } }
Definition at line 74 of file liquidMixtureProperties.H.
liquidMixtureProperties | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 38 of file liquidMixtureProperties.C.
References dict, forAll, and Foam::compressible::New().
Referenced by liquidMixtureProperties::clone().
liquidMixtureProperties | ( | const liquidMixtureProperties & | lm | ) |
Construct copy.
Definition at line 60 of file liquidMixtureProperties.C.
References forAll, and liquidMixtureProperties::properties_.
|
inlinevirtual |
Destructor.
Definition at line 109 of file liquidMixtureProperties.H.
|
inlinevirtual |
Construct and return a clone.
Definition at line 99 of file liquidMixtureProperties.H.
References liquidMixtureProperties::liquidMixtureProperties().
|
static |
Select construct from dictionary.
Definition at line 78 of file liquidMixtureProperties.C.
Referenced by SLGThermo::SLGThermo().
Return the liquid names.
Definition at line 122 of file liquidMixtureProperties.H.
References liquidMixtureProperties::components_.
|
inline |
Return the liquid properties.
Definition at line 128 of file liquidMixtureProperties.H.
References liquidMixtureProperties::properties_.
|
inline |
Return the number of liquids in the mixture.
Definition at line 134 of file liquidMixtureProperties.H.
References liquidMixtureProperties::components_, and List::size().
Foam::scalar Tc | ( | const scalarField & | X | ) | const |
Calculate the critical temperature of mixture.
Definition at line 91 of file liquidMixtureProperties.C.
References forAll, liquidMixtureProperties::properties_, and liquidMixtureProperties::X().
Foam::scalar pvInvert | ( | const scalar | p, |
const scalarField & | X | ||
) | const |
Invert the vapour pressure relationship to retrieve the boiling.
temperature of the mixture as a function of pressure
Definition at line 121 of file liquidMixtureProperties.C.
References Foam::endl(), Foam::nl, p, Foam::T(), and WarningInFunction.
Foam::scalar Tpc | ( | const scalarField & | X | ) | const |
Return pseudocritical temperature according to Kay's rule.
Definition at line 164 of file liquidMixtureProperties.C.
References forAll.
Foam::scalar Ppc | ( | const scalarField & | X | ) | const |
Return pseudocritical pressure (modified Prausnitz and Gunn)
Definition at line 177 of file liquidMixtureProperties.C.
References forAll, and Foam::constant::thermodynamic::RR.
Foam::scalar Tpt | ( | const scalarField & | X | ) | const |
Return pseudo triple point temperature (mole averaged formulation)
Definition at line 107 of file liquidMixtureProperties.C.
References forAll.
Foam::scalar omega | ( | const scalarField & | X | ) | const |
Return mixture accentric factor.
Definition at line 192 of file liquidMixtureProperties.C.
References forAll.
Foam::scalarField Xs | ( | const scalar | p, |
const scalar | Tg, | ||
const scalar | Tl, | ||
const scalarField & | Xg, | ||
const scalarField & | Xl | ||
) | const |
Return the surface molar fractions.
Definition at line 206 of file liquidMixtureProperties.C.
References forAll, Foam::min(), and p.
Foam::scalar W | ( | const scalarField & | X | ) | const |
Calculate the mean molecular weight [kg/kmol].
from mole fractions
Definition at line 227 of file liquidMixtureProperties.C.
References forAll.
Foam::scalarField Y | ( | const scalarField & | X | ) | const |
Returns the mass fractions corresponding to the given mole fractions.
Definition at line 240 of file liquidMixtureProperties.C.
Foam::scalarField X | ( | const scalarField & | Y | ) | const |
Returns the mole fractions corresponding to the given mass fractions.
Definition at line 257 of file liquidMixtureProperties.C.
Referenced by SprayCloud< CloudType >::setParcelThermoProperties(), and liquidMixtureProperties::Tc().
Foam::scalar rho | ( | const scalar | p, |
const scalar | T, | ||
const scalarField & | X | ||
) | const |
Calculate the mixture density [kg/m^3].
Definition at line 275 of file liquidMixtureProperties.C.
References forAll, Foam::min(), p, rho, and Foam::T().
Referenced by SprayCloud< CloudType >::setParcelThermoProperties().
Foam::scalar pv | ( | const scalar | p, |
const scalar | T, | ||
const scalarField & | X | ||
) | const |
Calculate the mixture vapour pressure [Pa].
Definition at line 305 of file liquidMixtureProperties.C.
References forAll, Foam::min(), p, and Foam::T().
Foam::scalar hl | ( | const scalar | p, |
const scalar | T, | ||
const scalarField & | X | ||
) | const |
Calculate the mixture latent heat [J/kg].
Definition at line 331 of file liquidMixtureProperties.C.
References forAll, Foam::min(), p, and Foam::T().
Foam::scalar Cp | ( | const scalar | p, |
const scalar | T, | ||
const scalarField & | X | ||
) | const |
Calculate the mixture heat capacity [J/(kg K)].
Definition at line 357 of file liquidMixtureProperties.C.
References forAll, Foam::min(), p, and Foam::T().
Referenced by SprayCloud< CloudType >::setParcelThermoProperties().
Foam::scalar sigma | ( | const scalar | p, |
const scalar | T, | ||
const scalarField & | X | ||
) | const |
Estimate mixture surface tension [N/m].
Definition at line 383 of file liquidMixtureProperties.C.
References forAll, Foam::min(), p, Foam::constant::physicoChemical::sigma, and Foam::T().
Referenced by SprayCloud< CloudType >::setParcelThermoProperties().
Foam::scalar mu | ( | const scalar | p, |
const scalar | T, | ||
const scalarField & | X | ||
) | const |
Calculate the mixture viscosity [Pa s].
Definition at line 420 of file liquidMixtureProperties.C.
References Foam::exp(), forAll, Foam::log(), Foam::min(), Foam::constant::physicoChemical::mu, p, and Foam::T().
Referenced by SprayCloud< CloudType >::setParcelThermoProperties().
Foam::scalar K | ( | const scalar | p, |
const scalar | T, | ||
const scalarField & | X | ||
) | const |
Estimate thermal conductivity [W/(m K)].
Li's method, Eq. 10-12.27 - 10.12-19
Definition at line 442 of file liquidMixtureProperties.C.
References forAll, Foam::min(), p, and Foam::T().
Foam::scalar D | ( | const scalar | p, |
const scalar | T, | ||
const scalarField & | X | ||
) | const |
Vapour diffussivity [m2/s].
Definition at line 488 of file liquidMixtureProperties.C.
References forAll, Foam::min(), p, and Foam::T().
|
staticprivate |
Maximum reduced temperature.
Definition at line 79 of file liquidMixtureProperties.H.
The names of the liquids.
Definition at line 82 of file liquidMixtureProperties.H.
Referenced by liquidMixtureProperties::components(), and liquidMixtureProperties::size().
|
private |
The liquid properties.
Definition at line 85 of file liquidMixtureProperties.H.
Referenced by liquidMixtureProperties::liquidMixtureProperties(), liquidMixtureProperties::properties(), and liquidMixtureProperties::Tc().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.