Calculates the chemical equilibrium from the component fugacities in a phase.
More...
#include <CompositionFromFugacities.hpp>
|
typedef Dune::FieldVector< Evaluation, numComponents > | ComponentVector |
|
|
template<class FluidState > |
static void | guessInitial (FluidState &fluidState, unsigned phaseIdx, const ComponentVector &) |
| Guess an initial value for the composition of the phase.
|
|
template<class FluidState > |
static void | solve (FluidState &fluidState, typename FluidSystem::template ParameterCache< typename FluidState::Scalar > ¶mCache, unsigned phaseIdx, const ComponentVector &targetFug) |
| Calculates the chemical equilibrium from the component fugacities in a phase. More...
|
|
|
template<class FluidState > |
static void | solveIdealMix_ (FluidState &fluidState, typename FluidSystem::template ParameterCache< typename FluidState::Scalar > ¶mCache, unsigned phaseIdx, const ComponentVector &fugacities) |
|
template<class FluidState > |
static Scalar | linearize_ (Dune::FieldMatrix< Evaluation, numComponents, numComponents > &J, Dune::FieldVector< Evaluation, numComponents > &defect, FluidState &fluidState, typename FluidSystem::template ParameterCache< typename FluidState::Scalar > ¶mCache, unsigned phaseIdx, const ComponentVector &targetFug) |
|
template<class FluidState > |
static Scalar | update_ (FluidState &fluidState, typename FluidSystem::template ParameterCache< typename FluidState::Scalar > ¶mCache, Dune::FieldVector< Evaluation, numComponents > &x, Dune::FieldVector< Evaluation, numComponents > &, unsigned phaseIdx, const Dune::FieldVector< Evaluation, numComponents > &targetFug) |
|
template<class FluidState > |
static Scalar | calculateDefect_ (const FluidState ¶ms, unsigned phaseIdx, const ComponentVector &targetFug) |
|
template<class Scalar, class FluidSystem, class Evaluation = Scalar>
class Opm::CompositionFromFugacities< Scalar, FluidSystem, Evaluation >
Calculates the chemical equilibrium from the component fugacities in a phase.
◆ solve()
template<class Scalar , class FluidSystem , class Evaluation = Scalar>
template<class FluidState >
static void Opm::CompositionFromFugacities< Scalar, FluidSystem, Evaluation >::solve |
( |
FluidState & |
fluidState, |
|
|
typename FluidSystem::template ParameterCache< typename FluidState::Scalar > & |
paramCache, |
|
|
unsigned |
phaseIdx, |
|
|
const ComponentVector & |
targetFug |
|
) |
| |
|
inlinestatic |
Calculates the chemical equilibrium from the component fugacities in a phase.
The phase's fugacities must already be set.
The documentation for this class was generated from the following file: