OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

liquidMixture Class Reference

A mixture of liquids. More...

Collaboration diagram for liquidMixture:

List of all members.


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.

Detailed Description

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 90 of file liquidMixture.H.


Constructor & Destructor Documentation

liquidMixture ( const dictionary &  thermophysicalProperties  ) 

Construct from dictionary.

Definition at line 29 of file liquidMixture.C.

References forAll, dictionary::lookup(), liquid::New(), PtrList< T >::set(), and dictionary::subDictPtr().

Referenced by liquidMixture::Tc().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Function Documentation

Foam::autoPtr< Foam::liquidMixture > New ( const dictionary &  thermophysicalProperties  )  [static]

Select construct from dictionary.

Definition at line 69 of file liquidMixture.C.

const List<word>& components (  )  const [inline]

Definition at line 127 of file liquidMixture.H.

const PtrList<liquid>& properties (  )  const [inline]

Return the liquid properties.

Definition at line 133 of file liquidMixture.H.

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

Calculate the critical temperature of mixture.

Definition at line 80 of file liquidMixture.C.

References liquidMixture::liquidMixture().

Referenced by liquidMixture::W().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Return pseudocritical temperature according to Kay's rule.

Definition at line 100 of file liquidMixture.C.

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

Return pseudocritical pressure (modified Prausnitz and Gunn).

Definition at line 115 of file liquidMixture.C.

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

Return mixture accentric factor.

Definition at line 132 of file liquidMixture.C.

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 147 of file liquidMixture.C.

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

Calculate the mean molecular weight [kg/kmol].

from mole fractions

Definition at line 168 of file liquidMixture.C.

References Foam::min(), and liquidMixture::Tc().

Here is the call graph for this function:

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

Returns the mass fractions, given mole fractions.

Definition at line 183 of file liquidMixture.C.

Referenced by liquidMixture::X().

Here is the caller graph for this function:

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

Returns the mole fractions, given mass fractions.

Definition at line 199 of file liquidMixture.C.

References liquidMixture::Y().

Here is the call graph for this function:

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

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

Definition at line 216 of file liquidMixture.C.

Referenced by multiHoleInjector::tan1().

Here is the caller graph for this function:

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

Calculate the mixture vapour pressure [Pa].

Definition at line 239 of file liquidMixture.C.

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

Calculate the mixture latent heat [J/kg].

Definition at line 261 of file liquidMixture.C.

Foam::scalar cp ( const scalar  p,
const scalar  T,
const scalarField &  x 
) const

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

Definition at line 283 of file liquidMixture.C.

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

Estimate mixture surface tension [N/m].

Definition at line 305 of file liquidMixture.C.

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

Calculate the mixture viscosity [Pa s].

Definition at line 339 of file liquidMixture.C.

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 361 of file liquidMixture.C.

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

Definition at line 410 of file liquidMixture.C.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd