A mixture of liquids. More...
#include <liquidMixture/liquidMixture.H>
A mixture of liquids.
The theory in this class is to a very large extent based on the book: 'The Properties of Gases & Liquids' 4th ed. by Reid, Prausnitz and Poling
For now it does not do much, since the perfect gas equation is used.
The dictionary constructor searches for the entry liquidComponents, which is a wordList. The liquid properties of each component can either be contained within a liquidProperties sub-dictionary or (for legacy purposes) can be found directly in the dictionary. The liquidProperties sub-dictionary entry should be used when possible to avoid conflicts with identically named gas-phase entries.
A simple example of a single-component liquidMixture:
liquidComponents
(
H2O
);
// the gas-phase species
species
(
AIR H2O
);
// thermo values from BurcatCpData
AIR
AIR 1 28.96518 // specie: name/nMoles/MolWt
200 6000 1000 // low/high/common temperature
3.0879272 0.0012459718 -4.2371895e-07 6.7477479e-11 -3.9707697e-15 -995.26275 5.9596093 // 7 upper Temp. coeffs
3.5683962 -0.00067872943 1.5537148e-06 -3.2993706e-12 -4.6639539e-13 -1062.3466 3.7158296 // 7 lower Temp. coeffs
1.4792e-06 116 // sutherlandTransport for AIR (STAR-CD)
;
H2O
H2O 1 18.01528 // specie: name/nMoles/MolWt
200 6000 1000 // low/high/common temperature
2.6770389 0.0029731816 -7.7376889e-07 9.4433514e-11 -4.2689991e-15 -29885.894 6.88255// 7 upper Temp. coeffs
4.1986352 -0.0020364017 6.5203416e-06 -5.4879269e-09 1.771968e-12 -30293.726 -0.84900901 // 7 lower Temp. coeffs
1.4792e-06 116 // sutherlandTransport for AIR (STAR-CD)
;
liquidProperties
{
H2O H2O defaultCoeffs;
}
Definition at line 98 of file liquidMixture.H.
Collaboration diagram for liquidMixture:Public Member Functions | |
| liquidMixture (const dictionary &) | |
| Construct from dictionary.
| |
| const List< word > & | components () const |
| const PtrList< liquid > & | properties () const |
| Return the liquid properties.
| |
| scalar | Tc (const scalarField &x) const |
| Calculate the critical temperature of mixture.
| |
| scalar | Tpc (const scalarField &x) const |
| Return pseudocritical temperature according to Kay's rule.
| |
| scalar | Ppc (const scalarField &x) const |
| Return pseudocritical pressure (modified Prausnitz and Gunn)
| |
| scalar | omega (const scalarField &x) const |
| Return mixture accentric factor.
| |
| scalarField | Xs (const scalar p, const scalar Tg, const scalar Tl, const scalarField &xg, const scalarField &xl) const |
| Return the surface molar fractions.
| |
| scalar | W (const scalarField &x) const |
| Calculate the mean molecular weight [kg/kmol].
| |
| scalarField | Y (const scalarField &X) const |
| Returns the mass fractions, given mole fractions.
| |
| scalarField | X (const scalarField &Y) const |
| Returns the mole fractions, given mass fractions.
| |
| scalar | rho (const scalar p, const scalar T, const scalarField &x) const |
| Calculate the mixture density [kg/m^3].
| |
| scalar | pv (const scalar p, const scalar T, const scalarField &x) const |
| Calculate the mixture vapour pressure [Pa].
| |
| scalar | hl (const scalar p, const scalar T, const scalarField &x) const |
| Calculate the mixture latent heat [J/kg].
| |
| scalar | cp (const scalar p, const scalar T, const scalarField &x) const |
| Calculate the mixture heat capacity [J/(kg K)].
| |
| scalar | sigma (const scalar p, const scalar T, const scalarField &x) const |
| Estimate mixture surface tension [N/m].
| |
| scalar | mu (const scalar p, const scalar T, const scalarField &x) const |
| Calculate the mixture viscosity [Pa s].
| |
| scalar | K (const scalar p, const scalar T, const scalarField &x) const |
| Estimate thermal conductivity [W/(m K)].
| |
| scalar | D (const scalar p, const scalar T, const scalarField &x) const |
Static Public Member Functions | |
| static autoPtr< liquidMixture > | New (const dictionary &) |
| Select construct from dictionary.
| |
| liquidMixture | ( | const dictionary & | thermophysicalProperties ) |
Construct from dictionary.
Definition at line 37 of file liquidMixture.C.
References forAll, dictionary::lookup(), dictionary::set(), and dictionary::subDictPtr().
| Foam::autoPtr< Foam::liquidMixture > New | ( | const dictionary & | thermophysicalProperties ) | [static]
|
Select construct from dictionary.
Definition at line 77 of file liquidMixture.C.
Definition at line 135 of file liquidMixture.H.
Referenced by LISA::atomizeParcel(), definedPressureSwirlInjector::d0(), spray::liquidEnthalpy(), spray::liquidTotalEnthalpy(), and parcel::move().
Return the liquid properties.
Definition at line 141 of file liquidMixture.H.
Referenced by LISA::atomizeParcel(), and definedPressureSwirlInjector::d0().
| Foam::scalar Tc | ( | const scalarField & | x ) | const |
Calculate the critical temperature of mixture.
Definition at line 88 of file liquidMixture.C.
References forAll.
| Foam::scalar Tpc | ( | const scalarField & | x ) | const |
Return pseudocritical temperature according to Kay's rule.
Definition at line 108 of file liquidMixture.C.
References forAll.
| Foam::scalar Ppc | ( | const scalarField & | x ) | const |
Return pseudocritical pressure (modified Prausnitz and Gunn)
Definition at line 123 of file liquidMixture.C.
References forAll.
| Foam::scalar omega | ( | const scalarField & | x ) | const |
| 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 155 of file liquidMixture.C.
References forAll, Foam::min(), p, and List< T >::size().
| Foam::scalar W | ( | const scalarField & | x ) | const |
Calculate the mean molecular weight [kg/kmol].
from mole fractions
Definition at line 176 of file liquidMixture.C.
References forAll.
Referenced by spray::liquidEnthalpy(), and spray::liquidTotalEnthalpy().
| Foam::scalarField Y | ( | const scalarField & | X ) | const |
Returns the mass fractions, given mole fractions.
Definition at line 191 of file liquidMixture.C.
Referenced by parcel::move().
| Foam::scalarField X | ( | const scalarField & | Y ) | const |
Returns the mole fractions, given mass fractions.
Definition at line 207 of file liquidMixture.C.
References forAll, and List< T >::size().
| Foam::scalar rho | ( | const scalar | p, |
| const scalar | T, | ||
| const scalarField & | x | ||
| ) | const |
Calculate the mixture density [kg/m^3].
Definition at line 224 of file liquidMixture.C.
References forAll, Foam::min(), and rho.
Referenced by LISA::atomizeParcel(), blobsSheetAtomization::atomizeParcel(), TAB::breakupParcel(), SHF::breakupParcel(), reitzKHRT::breakupParcel(), reitzDiwakar::breakupParcel(), ETAB::breakupParcel(), unitInjector::correctProfiles(), swirlInjector::correctProfiles(), multiHoleInjector::correctProfiles(), definedInjector::correctProfiles(), commonRailInjector::correctProfiles(), spray::liquidTotalEnthalpy(), parcel::move(), and breakupModel::updateParcelProperties().
| Foam::scalar pv | ( | const scalar | p, |
| const scalar | T, | ||
| const scalarField & | x | ||
| ) | const |
Calculate the mixture vapour pressure [Pa].
Definition at line 247 of file liquidMixture.C.
References forAll, and Foam::min().
Referenced by spray::liquidTotalEnthalpy(), and parcel::move().
| Foam::scalar hl | ( | const scalar | p, |
| const scalar | T, | ||
| const scalarField & | x | ||
| ) | const |
Calculate the mixture latent heat [J/kg].
Definition at line 269 of file liquidMixture.C.
References forAll, and Foam::min().
Referenced by spray::liquidEnthalpy(), spray::liquidTotalEnthalpy(), and parcel::move().
| Foam::scalar cp | ( | const scalar | p, |
| const scalar | T, | ||
| const scalarField & | x | ||
| ) | const |
Calculate the mixture heat capacity [J/(kg K)].
Definition at line 291 of file liquidMixture.C.
References cp, forAll, and Foam::min().
| Foam::scalar sigma | ( | const scalar | p, |
| const scalar | T, | ||
| const scalarField & | x | ||
| ) | const |
Estimate mixture surface tension [N/m].
Definition at line 313 of file liquidMixture.C.
References forAll, Foam::min(), p, and List< T >::size().
Referenced by LISA::atomizeParcel(), blobsSheetAtomization::atomizeParcel(), TAB::breakupParcel(), SHF::breakupParcel(), reitzKHRT::breakupParcel(), reitzDiwakar::breakupParcel(), ETAB::breakupParcel(), and breakupModel::updateParcelProperties().
| Foam::scalar mu | ( | const scalar | p, |
| const scalar | T, | ||
| const scalarField & | x | ||
| ) | const |
Calculate the mixture viscosity [Pa s].
Definition at line 347 of file liquidMixture.C.
References Foam::exp(), forAll, Foam::log(), Foam::min(), and mu.
Referenced by LISA::atomizeParcel(), TAB::breakupParcel(), SHF::breakupParcel(), reitzKHRT::breakupParcel(), ETAB::breakupParcel(), and breakupModel::updateParcelProperties().
| 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 369 of file liquidMixture.C.
References forAll, K, Foam::min(), and List< T >::size().
| Foam::scalar D | ( | const scalar | p, |
| const scalar | T, | ||
| const scalarField & | x | ||
| ) | const |
Definition at line 418 of file liquidMixture.C.
References forAll, and Foam::min().