version 3.10-dev
Dumux::ComputeFromReferencePhase< Scalar, FluidSystem > Class Template Reference

Computes all quantities of a generic fluid state if a reference phase has been specified. More...

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

Description

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

This makes it is possible to specify just one phase and let the remaining ones be calculated by the constraint solver. This constraint solver assumes thermodynamic equilibrium. It assumes the following quantities to be set:

  • composition (mole+mass fractions) of the reference phase \(x^\kappa_\beta\)
  • temperature of the reference phase \(T_\beta\)
  • saturations of all phases \(S_\alpha\), \(S_\beta\)
  • pressures of all phases \(p_\alpha\), \(p_\beta\)

    \( f^\kappa_\beta = f^\kappa_\alpha = \Phi^\kappa_\alpha(\{x^\lambda_\alpha \}, T_\alpha, p_\alpha) p_\alpha x^\kappa_\alpha\; \),

    \( p_\alpha = p_\beta + p_{c\beta\alpha}\; \),

after calling the solve() method the following quantities are calculated in addition:

  • temperature of all phases \(T_\alpha\), \(T_\beta\)
  • density, molar density, molar volume of all phases \(\rho_\alpha\), \(\rho_\beta\), \(\rho_{mol, \alpha}\), \(\rho_{mol, \beta}\), \(V_{mol, \alpha}\), \(V_{mol, \beta}\)
  • composition in mole and mass fractions and molarities of all phases \(x^\kappa_\alpha\), \(x^\kappa_\beta\), \(X^\kappa_\alpha\), \(X^\kappa_\beta\), \(c^\kappa_\alpha\), \(c^\kappa_\beta\)
  • mean molar masses of all phases \(M_\alpha\), \(M_\beta\)
  • fugacity coefficients of all components in all phases \(\Phi^\kappa_\alpha\), \(\Phi^\kappa_\beta\)

Static Public Member Functions

template<class FluidState , class ParameterCache >
static void solve (FluidState &fluidState, ParameterCache &paramCache, int refPhaseIdx)
 Computes all quantities of a generic fluid state if a reference phase has been specified. More...
 

Member Function Documentation

◆ solve()

template<class Scalar , class FluidSystem >
template<class FluidState , class ParameterCache >
static void Dumux::ComputeFromReferencePhase< Scalar, FluidSystem >::solve ( FluidState &  fluidState,
ParameterCache &  paramCache,
int  refPhaseIdx 
)
inlinestatic

This makes it is possible to specify just one phase and let the remaining ones be calculated by the constraint solver. This constraint solver assumes thermodynamic equilibrium. It assumes the following quantities to be set:

  • composition (mole+mass fractions) of the reference phase
  • temperature of the all phases
  • saturations of all phases
  • pressures of all phases

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 molaries of all phases
  • mean molar masses of all phases
  • fugacity coefficients of all components in all phases
Parameters
fluidStateThermodynamic state of the fluids
paramCacheContainer for cache parameters
refPhaseIdxThe phase index of the reference phase

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