mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #796 from totto82/2p_solvent
Support gas-water-solvent
This commit is contained in:
commit
58f985a741
@ -226,8 +226,13 @@ public:
|
|||||||
Evaluation So = 1.0 - Sw - Sg;
|
Evaluation So = 1.0 - Sw - Sg;
|
||||||
|
|
||||||
// deal with solvent
|
// deal with solvent
|
||||||
if constexpr (enableSolvent)
|
if constexpr (enableSolvent) {
|
||||||
So -= priVars.makeEvaluation(Indices::solventSaturationIdx, timeIdx);
|
if (FluidSystem::phaseIsActive(oilPhaseIdx)) {
|
||||||
|
So -= priVars.makeEvaluation(Indices::solventSaturationIdx, timeIdx);
|
||||||
|
} else if (FluidSystem::phaseIsActive(gasPhaseIdx)) {
|
||||||
|
Sg -= priVars.makeEvaluation(Indices::solventSaturationIdx, timeIdx);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (FluidSystem::phaseIsActive(waterPhaseIdx))
|
if (FluidSystem::phaseIsActive(waterPhaseIdx))
|
||||||
fluidState_.setSaturation(waterPhaseIdx, Sw);
|
fluidState_.setSaturation(waterPhaseIdx, Sw);
|
||||||
|
Loading…
Reference in New Issue
Block a user