mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 18:50:19 -06:00
initialize water saturation for gas dissolved in water
This commit is contained in:
parent
db0b4e1e6d
commit
5eac0880a9
@ -584,6 +584,8 @@ public:
|
||||
sw = (*this)[waterSwitchIdx];
|
||||
if (primaryVarsMeaningGas() == GasMeaning::Sg)
|
||||
sg = (*this)[compositionSwitchIdx];
|
||||
if (primaryVarsMeaningWater() == WaterMeaning::Rsw)
|
||||
sw = 1.0;
|
||||
|
||||
if (primaryVarsMeaningGas() == GasMeaning::Disabled && gasEnabled)
|
||||
sg = 1.0 - sw; // water + gas case
|
||||
|
Loading…
Reference in New Issue
Block a user