Loading...
Searching...
No Matches
liquidMixtureProperties Class Reference

A mixture of liquids. More...

#include <liquidMixtureProperties.H>

Public Member Functions

 liquidMixtureProperties (const dictionary &dict)
 Construct from dictionary.
 liquidMixtureProperties (const liquidMixtureProperties &lm)
 Construct copy.
virtual autoPtr< liquidMixturePropertiesclone () const
 Construct and return a clone.
virtual ~liquidMixtureProperties ()=default
 Destructor.
const List< word > & components () const
 Return the liquid names.
const PtrList< liquidProperties > & properties () const
 Return the liquid properties.
label size () const
 Return the number of liquids in the mixture.
scalar Tc (const scalarField &X) const
 Calculate the critical temperature of mixture.
scalar pvInvert (const scalar p, const scalarField &X) const
 Invert the vapour pressure relationship to retrieve the boiling.
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 Tpt (const scalarField &X) const
 Return pseudo triple point temperature (mole averaged formulation).
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 corresponding to the given mole fractions.
scalarField X (const scalarField &Y) const
 Returns the mole fractions corresponding to the 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 kappa (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
 Vapour diffusivity [m2/s].

Static Public Member Functions

static autoPtr< liquidMixturePropertiesNew (const dictionary &)
 Select construct from dictionary.

Detailed Description

A mixture of liquids.

An example of a two component liquid mixture:

    <parentDictionary>
    {
        H2O; // employ default coefficients

        C7H16
        {
            // ... user defined properties for C7H16
        }
    }
Source files
See also
Foam::liquidProperties

Definition at line 64 of file liquidMixtureProperties.H.

Constructor & Destructor Documentation

◆ liquidMixtureProperties() [1/2]

liquidMixtureProperties ( const dictionary & dict)

Construct from dictionary.

Definition at line 33 of file liquidMixtureProperties.C.

References dict, forAll, and liquidProperties::New().

Referenced by liquidMixtureProperties().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ liquidMixtureProperties() [2/2]

liquidMixtureProperties ( const liquidMixtureProperties & lm)

Construct copy.

Definition at line 70 of file liquidMixtureProperties.C.

References clone(), and liquidMixtureProperties().

Here is the call graph for this function:

◆ ~liquidMixtureProperties()

virtual ~liquidMixtureProperties ( )
virtualdefault

Destructor.

Member Function Documentation

◆ clone()

virtual autoPtr< liquidMixtureProperties > clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 101 of file liquidMixtureProperties.H.

References autoPtr< T >::New().

Referenced by liquidMixtureProperties().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ New()

Foam::autoPtr< Foam::liquidMixtureProperties > New ( const dictionary & thermophysicalProperties)
static

Select construct from dictionary.

Definition at line 83 of file liquidMixtureProperties.C.

References autoPtr< T >::New().

Here is the call graph for this function:

◆ components()

const List< word > & components ( ) const
inline

Return the liquid names.

Definition at line 126 of file liquidMixtureProperties.H.

◆ properties()

const PtrList< liquidProperties > & properties ( ) const
inline

Return the liquid properties.

Definition at line 134 of file liquidMixtureProperties.H.

◆ size()

label size ( ) const
inline

Return the number of liquids in the mixture.

Definition at line 142 of file liquidMixtureProperties.H.

◆ Tc()

Foam::scalar Tc ( const scalarField & X) const

Calculate the critical temperature of mixture.

Definition at line 94 of file liquidMixtureProperties.C.

References forAll, and X().

Referenced by Cp(), D(), hl(), kappa(), mu(), pv(), pvInvert(), rho(), sigma(), and Xs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pvInvert()

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 123 of file liquidMixtureProperties.C.

References Foam::endl(), Foam::nl, p, pv(), Foam::T(), Tc(), Tpt(), WarningInFunction, and X().

Here is the call graph for this function:

◆ Tpc()

Foam::scalar Tpc ( const scalarField & X) const

Return pseudocritical temperature according to Kay's rule.

Definition at line 167 of file liquidMixtureProperties.C.

References forAll, Tpc(), and X().

Referenced by Ppc(), and Tpc().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Ppc()

Foam::scalar Ppc ( const scalarField & X) const

Return pseudocritical pressure (modified Prausnitz and Gunn).

Definition at line 180 of file liquidMixtureProperties.C.

References forAll, Foam::constant::thermodynamic::RR, Tpc(), and X().

Here is the call graph for this function:

◆ Tpt()

Foam::scalar Tpt ( const scalarField & X) const

Return pseudo triple point temperature (mole averaged formulation).

Definition at line 110 of file liquidMixtureProperties.C.

References forAll, Tpt(), and X().

Referenced by pvInvert(), and Tpt().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ omega()

Foam::scalar omega ( const scalarField & X) const

Return mixture accentric factor.

Definition at line 195 of file liquidMixtureProperties.C.

References forAll, omega(), and X().

Referenced by omega().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Xs()

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 208 of file liquidMixtureProperties.C.

References forAll, Foam::min(), p, UList< T >::size(), Tc(), and Xs().

Referenced by sigma(), and Xs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ W()

Foam::scalar W ( const scalarField & X) const

Calculate the mean molecular weight [kg/kmol].

from mole fractions

Definition at line 230 of file liquidMixtureProperties.C.

References forAll, W(), and X().

Referenced by W().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Y()

Foam::scalarField Y ( const scalarField & X) const

Returns the mass fractions corresponding to the given mole fractions.

Definition at line 243 of file liquidMixtureProperties.C.

References forAll, X(), Y(), and Y.

Referenced by X(), and Y().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ X()

Foam::scalarField X ( const scalarField & Y) const

Returns the mole fractions corresponding to the given mass fractions.

Definition at line 260 of file liquidMixtureProperties.C.

References forAll, X(), and Y().

Referenced by Cp(), D(), hl(), kappa(), mu(), omega(), Ppc(), pv(), pvInvert(), rho(), SprayCloud< CloudType >::setParcelThermoProperties(), sigma(), Tc(), Tpc(), Tpt(), W(), X(), and Y().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rho()

Foam::scalar rho ( const scalar p,
const scalar T,
const scalarField & X ) const

Calculate the mixture density [kg/m^3].

Definition at line 277 of file liquidMixtureProperties.C.

References forAll, Foam::min(), p, rho(), Foam::T(), Tc(), and X().

Referenced by rho(), and SprayCloud< CloudType >::setParcelThermoProperties().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pv()

Foam::scalar pv ( const scalar p,
const scalar T,
const scalarField & X ) const

Calculate the mixture vapour pressure [Pa].

Definition at line 307 of file liquidMixtureProperties.C.

References forAll, Foam::min(), p, pv(), Foam::T(), Tc(), and X().

Referenced by pv(), and pvInvert().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hl()

Foam::scalar hl ( const scalar p,
const scalar T,
const scalarField & X ) const

Calculate the mixture latent heat [J/kg].

Definition at line 333 of file liquidMixtureProperties.C.

References forAll, hl(), Foam::min(), p, Foam::T(), Tc(), and X().

Referenced by hl().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Cp()

Foam::scalar Cp ( const scalar p,
const scalar T,
const scalarField & X ) const

Calculate the mixture heat capacity [J/(kg K)].

Definition at line 359 of file liquidMixtureProperties.C.

References Cp(), forAll, Foam::min(), p, Foam::T(), Tc(), and X().

Referenced by Cp(), and SprayCloud< CloudType >::setParcelThermoProperties().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sigma()

Foam::scalar sigma ( const scalar p,
const scalar T,
const scalarField & X ) const

Estimate mixture surface tension [N/m].

Definition at line 385 of file liquidMixtureProperties.C.

References forAll, Foam::min(), p, sigma(), Foam::T(), Tc(), X(), and Xs().

Referenced by SprayCloud< CloudType >::setParcelThermoProperties(), and sigma().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mu()

Foam::scalar mu ( const scalar p,
const scalar T,
const scalarField & X ) const

Calculate the mixture viscosity [Pa s].

Definition at line 422 of file liquidMixtureProperties.C.

References Foam::exp(), forAll, Foam::log(), Foam::min(), mu(), mu, p, Foam::T(), Tc(), and X().

Referenced by mu(), and SprayCloud< CloudType >::setParcelThermoProperties().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ kappa()

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 444 of file liquidMixtureProperties.C.

References forAll, kappa(), Foam::min(), p, Foam::T(), Tc(), and X().

Referenced by kappa().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ D()

Foam::scalar D ( const scalar p,
const scalar T,
const scalarField & X ) const

Vapour diffusivity [m2/s].

Definition at line 490 of file liquidMixtureProperties.C.

References forAll, Foam::min(), p, Foam::T(), Tc(), and X().

Here is the call graph for this function:

The documentation for this class was generated from the following files: