mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
set gas saturation for water-gas system
This commit is contained in:
@@ -2544,9 +2544,17 @@ private:
|
|||||||
if (FluidSystem::phaseIsActive(FluidSystem::waterPhaseIdx))
|
if (FluidSystem::phaseIsActive(FluidSystem::waterPhaseIdx))
|
||||||
dofFluidState.setSaturation(FluidSystem::waterPhaseIdx,
|
dofFluidState.setSaturation(FluidSystem::waterPhaseIdx,
|
||||||
waterSaturationData[dofIdx]);
|
waterSaturationData[dofIdx]);
|
||||||
if (FluidSystem::phaseIsActive(FluidSystem::gasPhaseIdx))
|
|
||||||
|
if (FluidSystem::phaseIsActive(FluidSystem::gasPhaseIdx)){
|
||||||
|
if (!FluidSystem::phaseIsActive(FluidSystem::oilPhaseIdx)){
|
||||||
|
dofFluidState.setSaturation(FluidSystem::gasPhaseIdx,
|
||||||
|
1.0
|
||||||
|
- waterSaturationData[dofIdx]);
|
||||||
|
}
|
||||||
|
else
|
||||||
dofFluidState.setSaturation(FluidSystem::gasPhaseIdx,
|
dofFluidState.setSaturation(FluidSystem::gasPhaseIdx,
|
||||||
gasSaturationData[dofIdx]);
|
gasSaturationData[dofIdx]);
|
||||||
|
}
|
||||||
if (FluidSystem::phaseIsActive(FluidSystem::oilPhaseIdx))
|
if (FluidSystem::phaseIsActive(FluidSystem::oilPhaseIdx))
|
||||||
dofFluidState.setSaturation(FluidSystem::oilPhaseIdx,
|
dofFluidState.setSaturation(FluidSystem::oilPhaseIdx,
|
||||||
1.0
|
1.0
|
||||||
|
|||||||
Reference in New Issue
Block a user