Calculates the chemical equilibrium from the component fugacities \( f^\kappa \) in the phase \( \alpha \).
More...
template<class Scalar, class FluidSystem>
class Dumux::CompositionFromFugacities< Scalar, FluidSystem >
This constraint solver takes the component fugacity \(f^\kappa\) of of component \(\kappa\), the temperature \( T_\alpha \), the pressure \(p_\alpha\) and the composition \(x^\lambda_\alpha\) of a phase \(\alpha\) as input and calculates the mole fraction of component \(\kappa\) in that fluid phase \(x^\kappa_\alpha\). This means that the thermodynamic constraints used by this solver are
\( f^\kappa = \Phi^\kappa_\alpha(\{x^\lambda_\alpha \}, T_\alpha, p_\alpha) p_\alpha x^\kappa_\alpha\; \),
where \({f^\kappa}\), \( T_\alpha \) and \( p_\alpha \) are fixed values.
|
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) |
|