version 3.8
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 >

The constraint solver assumes the following quantities to be set:

  • temperatures of all phases
  • saturations of all phases
  • pressures of all phases

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:

  • temperature of all phases
  • density, molar density, molar volume of all phases
  • composition in mole and mass fractions and molarities of all phases
  • mean molar masses of all phases
  • fugacity coefficients of all components in all phases

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

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: