Calculates the chemical equilibrium from the component fugacities
#include <dumux/material/constraintsolvers/compositionfromfugacities.hh>
This constraint solver takes the component fugacity
where
Public Types | |
using | ComponentVector = Dune::FieldVector< Scalar, numComponents > |
Static Public Member Functions | |
template<class FluidState > | |
static void | guessInitial (FluidState &fluidState, ParameterCache ¶mCache, int phaseIdx, const ComponentVector &fugVec) |
Guess an initial value for the composition of the phase. More... | |
template<class FluidState > | |
static void | solve (FluidState &fluidState, ParameterCache ¶mCache, int phaseIdx, const ComponentVector &targetFug) |
Calculates the chemical equilibrium from the component fugacities in a phase. More... | |
Static Protected Member Functions | |
template<class FluidState > | |
static void | solveIdealMix_ (FluidState &fluidState, ParameterCache ¶mCache, int phaseIdx, const ComponentVector &fugacities) |
template<class FluidState > | |
static void | linearize_ (Dune::FieldMatrix< Scalar, numComponents, numComponents > &J, Dune::FieldVector< Scalar, numComponents > &defect, FluidState &fluidState, ParameterCache ¶mCache, int phaseIdx, const ComponentVector &targetFug) |
template<class FluidState > | |
static Scalar | update_ (FluidState &fluidState, ParameterCache ¶mCache, Dune::FieldVector< Scalar, numComponents > &x, Dune::FieldVector< Scalar, numComponents > &b, int phaseIdx, const Dune::FieldVector< Scalar, numComponents > &targetFug) |
template<class FluidState > | |
static Scalar | calculateDefect_ (const FluidState ¶ms, int phaseIdx, const ComponentVector &targetFug) |
using Dumux::CompositionFromFugacities< Scalar, FluidSystem >::ComponentVector = Dune::FieldVector<Scalar, numComponents> |
|
inlinestaticprotected |
|
inlinestatic |
fluidState | Thermodynamic state of the fluids |
paramCache | Container for cache parameters |
phaseIdx | The phase index |
fugVec | fugacity vector of the component |
|
inlinestaticprotected |
|
inlinestatic |
fluidState | Thermodynamic state of the fluids |
paramCache | Container for cache parameters |
phaseIdx | The phase index |
targetFug | target fugacity |
The phase's fugacities must already be set.
|
inlinestaticprotected |
|
inlinestaticprotected |