3.2-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Loading...
Searching...
No Matches
Dumux::PengRobinsonMixture< Scalar, StaticParameters > Class Template Reference

Implements the Peng-Robinson equation of state for a mixture. More...

#include <dumux/material/eos/pengrobinsonmixture.hh>

Inheritance diagram for Dumux::PengRobinsonMixture< Scalar, StaticParameters >:
Inheritance graph

Description

template<class Scalar, class StaticParameters>
class Dumux::PengRobinsonMixture< Scalar, StaticParameters >

Implements the Peng-Robinson equation of state for a mixture.

Static Public Member Functions

template<class MutableParams, class FluidState>
static int computeMolarVolumes (Scalar *Vm, const MutableParams &params, int phaseIdx, const FluidState &fs)
 Computes molar volumes \(\mathrm{[m^3 / mol]}\) where the Peng-Robinson EOS is true.
template<class FluidState, class Params>
static Scalar computeFugacityCoefficient (const FluidState &fs, const Params &params, int phaseIdx, int compIdx)
 Returns the fugacity coefficient \(\mathrm{[-]}\) of an individual component in the phase.

Member Function Documentation

◆ computeFugacityCoefficient()

template<class Scalar, class StaticParameters>
template<class FluidState, class Params>
Scalar Dumux::PengRobinsonMixture< Scalar, StaticParameters >::computeFugacityCoefficient ( const FluidState & fs,
const Params & params,
int phaseIdx,
int compIdx )
inlinestatic

Returns the fugacity coefficient \(\mathrm{[-]}\) of an individual component in the phase.

Parameters
fsThermodynamic state of the fluids
paramsParameters
phaseIdxThe phase index
compIdxThe index of the component

The fugacity coefficient \(\phi_i\) of a component \(i\) is defined as

\[f_i = \phi_i x_i \;,\]

where \(f_i\) is the component's fugacity and \(x_i\) is the component's mole fraction.

See:

R. Reid, et al. (1987, pp. 42-44, 143-145) [53]

◆ computeMolarVolumes()

template<class Scalar, class StaticParameters>
template<class MutableParams, class FluidState>
int Dumux::PengRobinsonMixture< Scalar, StaticParameters >::computeMolarVolumes ( Scalar * Vm,
const MutableParams & params,
int phaseIdx,
const FluidState & fs )
inlinestatic

Computes molar volumes \(\mathrm{[m^3 / mol]}\) where the Peng-Robinson EOS is true.

Parameters
VmMolar Volume \(\mathrm{[m^3 / mol]}\)
fsThermodynamic state of the fluids
paramsParameters
phaseIdxThe phase index
Returns
Number of solutions.

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