Computes all quantities of a generic fluid state if a reference phase has been specified. More...
#include <dumux/material/constraintsolvers/computefromreferencephase.hh>
Computes all quantities of a generic fluid state if a reference phase has been specified.
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:
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:
Static Public Member Functions | |
template<class FluidState , class ParameterCache > | |
static void | solve (FluidState &fluidState, ParameterCache ¶mCache, int refPhaseIdx) |
Computes all quantities of a generic fluid state if a reference phase has been specified. More... | |
|
inlinestatic |
Computes all quantities of a generic fluid state if a reference phase has been specified.
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:
after calling the solve() method the following quantities are calculated in addition:
fluidState | Thermodynamic state of the fluids |
paramCache | Container for cache parameters |
refPhaseIdx | The phase index of the reference phase |