3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Static Public Member Functions | List of all members
Dumux::MiscibleMultiPhaseComposition< Scalar, FluidSystem > Class Template Reference

Computes the composition of all phases of a N-phase, N-component fluid system assuming that all N phases are present. More...

#include <dumux/material/constraintsolvers/misciblemultiphasecomposition.hh>

Description

template<class Scalar, class FluidSystem>
class Dumux::MiscibleMultiPhaseComposition< Scalar, FluidSystem >

Computes the composition of all phases of a N-phase, N-component fluid system assuming that all N phases are present.

The constraint solver assumes the following quantities to be set:

It also assumes that the mole/mass fractions of all phases sum up to 1. After calling the solve() method the following quantities are calculated in addition:

Static Public Member Functions

template<class FluidState , class ParameterCache >
static void solve (FluidState &fluidState, ParameterCache &paramCache, int knownPhaseIdx=0)
 Computes the composition of all phases of a N-phase, N-component fluid system assuming that all N phases are present. More...
 

Member Function Documentation

◆ solve()

template<class Scalar , class FluidSystem >
template<class FluidState , class ParameterCache >
static void Dumux::MiscibleMultiPhaseComposition< Scalar, FluidSystem >::solve ( FluidState &  fluidState,
ParameterCache &  paramCache,
int  knownPhaseIdx = 0 
)
inlinestatic

Computes the composition of all phases of a N-phase, N-component fluid system assuming that all N phases are present.

This function additionally considers a lowering of the saturation vapor pressure of the wetting phase by the Kelvin equation:

\[ p^\textrm{w}_\textrm{sat,Kelvin} = p^\textrm{w}_\textrm{sat} \exp \left( -\frac{p_\textrm{c}}{\varrho_\textrm{w} R_\textrm{w} T} \right) \]

Parameters
fluidStateA container with the current (physical) state of the fluid
paramCacheA container for iterative calculation of fluid composition
knownPhaseIdxThe index of the phase with known properties

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