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 | kappa (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 diffusivity [m^2/s]. More... | |
Static Public Member Functions | |
static autoPtr< liquidMixtureProperties > | New (const dictionary &) |
Select construct from dictionary. More... | |
A mixture of liquids.
An example of a two component liquid mixture:
<parentDictionary> { H2O; // employ default coefficients C7H16 { // ... user defined properties for C7H16 } }
Definition at line 66 of file liquidMixtureProperties.H.
liquidMixtureProperties | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 38 of file liquidMixtureProperties.C.
References forAll, dictionary::isDict(), Foam::compressible::New(), List< T >::setSize(), dictionary::subDict(), and dictionary::toc().
Referenced by liquidMixtureProperties::clone().
liquidMixtureProperties | ( | const liquidMixtureProperties & | lm | ) |
Construct copy.
Definition at line 71 of file liquidMixtureProperties.C.
References forAll, and liquidMixtureProperties::New().
|
inlinevirtual |
Destructor.
Definition at line 101 of file liquidMixtureProperties.H.
References liquidMixtureProperties::New().
|
inlinevirtual |
Construct and return a clone.
Definition at line 91 of file liquidMixtureProperties.H.
References liquidMixtureProperties::liquidMixtureProperties().
|
static |
Select construct from dictionary.
Definition at line 89 of file liquidMixtureProperties.C.
Referenced by liquidMixtureProperties::liquidMixtureProperties(), parcelThermo::parcelThermo(), and liquidMixtureProperties::~liquidMixtureProperties().
Return the liquid names.
Definition at line 114 of file liquidMixtureProperties.H.
|
inline |
Return the liquid properties.
Definition at line 120 of file liquidMixtureProperties.H.
Referenced by ThermoSurfaceFilm< CloudType >::absorbInteraction(), ThermoSurfaceFilm< CloudType >::drySplashInteraction(), and ThermoSurfaceFilm< CloudType >::wetSplashInteraction().
|
inline |
Return the number of liquids in the mixture.
Definition at line 126 of file liquidMixtureProperties.H.
References liquidMixtureProperties::Cp(), liquidMixtureProperties::D(), liquidMixtureProperties::hl(), liquidMixtureProperties::kappa(), liquidMixtureProperties::mu(), liquidMixtureProperties::omega(), p, liquidMixtureProperties::Ppc(), liquidMixtureProperties::pv(), liquidMixtureProperties::pvInvert(), liquidMixtureProperties::rho(), liquidMixtureProperties::sigma(), List< T >::size(), Foam::T(), liquidMixtureProperties::Tc(), liquidMixtureProperties::Tpc(), liquidMixtureProperties::Tpt(), liquidMixtureProperties::W(), liquidMixtureProperties::X(), liquidMixtureProperties::Xs(), and liquidMixtureProperties::Y().
Foam::scalar Tc | ( | const scalarField & | X | ) | const |
Calculate the critical temperature of mixture.
Definition at line 102 of file liquidMixtureProperties.C.
References forAll.
Referenced by liquidMixtureProperties::Cp(), liquidMixtureProperties::D(), liquidMixtureProperties::hl(), liquidMixtureProperties::kappa(), liquidMixtureProperties::mu(), liquidMixtureProperties::pv(), liquidMixtureProperties::pvInvert(), liquidMixtureProperties::rho(), liquidMixtureProperties::sigma(), liquidMixtureProperties::size(), and liquidMixtureProperties::Xs().
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 132 of file liquidMixtureProperties.C.
References Foam::endl(), Foam::nl, liquidMixtureProperties::pv(), Foam::T(), liquidMixtureProperties::Tc(), liquidMixtureProperties::Tpt(), and WarningInFunction.
Referenced by liquidMixtureProperties::size(), and liquidMixtureProperties::Tpt().
Foam::scalar Tpc | ( | const scalarField & | X | ) | const |
Return pseudocritical temperature according to Kay's rule.
Definition at line 175 of file liquidMixtureProperties.C.
References forAll.
Referenced by liquidMixtureProperties::Ppc(), and liquidMixtureProperties::size().
Foam::scalar Ppc | ( | const scalarField & | X | ) | const |
Return pseudocritical pressure (modified Prausnitz and Gunn)
Definition at line 188 of file liquidMixtureProperties.C.
References forAll, Foam::constant::physicoChemical::RR, and liquidMixtureProperties::Tpc().
Referenced by liquidMixtureProperties::size().
Foam::scalar Tpt | ( | const scalarField & | X | ) | const |
Return pseudo triple point temperature (mole averaged formulation)
Definition at line 118 of file liquidMixtureProperties.C.
References forAll, and liquidMixtureProperties::pvInvert().
Referenced by liquidMixtureProperties::pvInvert(), and liquidMixtureProperties::size().
Foam::scalar omega | ( | const scalarField & | X | ) | const |
Return mixture accentric factor.
Definition at line 203 of file liquidMixtureProperties.C.
References forAll, and liquidMixtureProperties::Xs().
Referenced by liquidMixtureProperties::size().
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 217 of file liquidMixtureProperties.C.
References forAll, Foam::min(), p, List< T >::size(), and liquidMixtureProperties::Tc().
Referenced by liquidMixtureProperties::omega(), liquidMixtureProperties::sigma(), and liquidMixtureProperties::size().
Foam::scalar W | ( | const scalarField & | X | ) | const |
Calculate the mean molecular weight [kg/kmol].
from mole fractions
Definition at line 238 of file liquidMixtureProperties.C.
References forAll.
Referenced by liquidMixtureProperties::size().
Foam::scalarField Y | ( | const scalarField & | X | ) | const |
Returns the mass fractions corresponding to the given mole fractions.
Definition at line 251 of file liquidMixtureProperties.C.
References forAll, and List< T >::size().
Referenced by liquidMixtureProperties::size().
Foam::scalarField X | ( | const scalarField & | Y | ) | const |
Returns the mole fractions corresponding to the given mass fractions.
Definition at line 268 of file liquidMixtureProperties.C.
References forAll, liquidMixtureProperties::rho(), and List< T >::size().
Referenced by ORourkeCollision< CloudType >::collide(), SprayCloud< Foam::DSMCCloud >::setParcelThermoProperties(), and liquidMixtureProperties::size().
Foam::scalar rho | ( | const scalar | p, |
const scalar | T, | ||
const scalarField & | X | ||
) | const |
Calculate the mixture density [kg/m^3].
Definition at line 286 of file liquidMixtureProperties.C.
References forAll, Foam::min(), liquidMixtureProperties::pv(), and liquidMixtureProperties::Tc().
Referenced by ORourkeCollision< CloudType >::collide(), SprayCloud< Foam::DSMCCloud >::setParcelThermoProperties(), liquidMixtureProperties::size(), and liquidMixtureProperties::X().
Foam::scalar pv | ( | const scalar | p, |
const scalar | T, | ||
const scalarField & | X | ||
) | const |
Calculate the mixture vapour pressure [Pa].
Definition at line 316 of file liquidMixtureProperties.C.
References forAll, liquidMixtureProperties::hl(), Foam::min(), and liquidMixtureProperties::Tc().
Referenced by liquidMixtureProperties::pvInvert(), liquidMixtureProperties::rho(), and liquidMixtureProperties::size().
Foam::scalar hl | ( | const scalar | p, |
const scalar | T, | ||
const scalarField & | X | ||
) | const |
Calculate the mixture latent heat [J/kg].
Definition at line 342 of file liquidMixtureProperties.C.
References liquidMixtureProperties::Cp(), forAll, Foam::min(), and liquidMixtureProperties::Tc().
Referenced by liquidMixtureProperties::pv(), and liquidMixtureProperties::size().
Foam::scalar Cp | ( | const scalar | p, |
const scalar | T, | ||
const scalarField & | X | ||
) | const |
Calculate the mixture heat capacity [J/kg/K].
Definition at line 368 of file liquidMixtureProperties.C.
References forAll, Foam::min(), liquidMixtureProperties::sigma(), and liquidMixtureProperties::Tc().
Referenced by ORourkeCollision< CloudType >::collide(), liquidMixtureProperties::hl(), SprayCloud< Foam::DSMCCloud >::setParcelThermoProperties(), and liquidMixtureProperties::size().
Foam::scalar sigma | ( | const scalar | p, |
const scalar | T, | ||
const scalarField & | X | ||
) | const |
Estimate mixture surface tension [N/m].
Definition at line 394 of file liquidMixtureProperties.C.
References forAll, Foam::min(), liquidMixtureProperties::mu(), p, List< T >::size(), liquidMixtureProperties::Tc(), and liquidMixtureProperties::Xs().
Referenced by ORourkeCollision< CloudType >::collide(), liquidMixtureProperties::Cp(), SprayCloud< Foam::DSMCCloud >::setParcelThermoProperties(), and liquidMixtureProperties::size().
Foam::scalar mu | ( | const scalar | p, |
const scalar | T, | ||
const scalarField & | X | ||
) | const |
Calculate the mixture viscosity [Pa s].
Definition at line 431 of file liquidMixtureProperties.C.
References Foam::exp(), forAll, liquidMixtureProperties::kappa(), Foam::log(), Foam::min(), and liquidMixtureProperties::Tc().
Referenced by ORourkeCollision< CloudType >::collide(), SprayCloud< Foam::DSMCCloud >::setParcelThermoProperties(), liquidMixtureProperties::sigma(), and liquidMixtureProperties::size().
Foam::scalar kappa | ( | 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 453 of file liquidMixtureProperties.C.
References liquidMixtureProperties::D(), forAll, Foam::min(), List< T >::size(), and liquidMixtureProperties::Tc().
Referenced by liquidMixtureProperties::mu(), and liquidMixtureProperties::size().
Foam::scalar D | ( | const scalar | p, |
const scalar | T, | ||
const scalarField & | X | ||
) | const |
Vapour diffusivity [m^2/s].
Definition at line 499 of file liquidMixtureProperties.C.
References forAll, Foam::min(), and liquidMixtureProperties::Tc().
Referenced by liquidMixtureProperties::kappa(), and liquidMixtureProperties::size().