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:
parent
ea4e4a1520
commit
ec4bb5c9c7
@ -2544,9 +2544,17 @@ private:
|
||||
if (FluidSystem::phaseIsActive(FluidSystem::waterPhaseIdx))
|
||||
dofFluidState.setSaturation(FluidSystem::waterPhaseIdx,
|
||||
waterSaturationData[dofIdx]);
|
||||
if (FluidSystem::phaseIsActive(FluidSystem::gasPhaseIdx))
|
||||
dofFluidState.setSaturation(FluidSystem::gasPhaseIdx,
|
||||
gasSaturationData[dofIdx]);
|
||||
|
||||
if (FluidSystem::phaseIsActive(FluidSystem::gasPhaseIdx)){
|
||||
if (!FluidSystem::phaseIsActive(FluidSystem::oilPhaseIdx)){
|
||||
dofFluidState.setSaturation(FluidSystem::gasPhaseIdx,
|
||||
1.0
|
||||
- waterSaturationData[dofIdx]);
|
||||
}
|
||||
else
|
||||
dofFluidState.setSaturation(FluidSystem::gasPhaseIdx,
|
||||
gasSaturationData[dofIdx]);
|
||||
}
|
||||
if (FluidSystem::phaseIsActive(FluidSystem::oilPhaseIdx))
|
||||
dofFluidState.setSaturation(FluidSystem::oilPhaseIdx,
|
||||
1.0
|
||||
|
Loading…
Reference in New Issue
Block a user