Merge pull request #908 from jakobtorben/initialize_water_saturation_for_RSW

initialize water saturation for gas dissolved in water
This commit is contained in:
Atgeirr Flø Rasmussen 2024-07-19 09:22:41 +02:00 committed by GitHub
commit 55608d9407

View File

@ -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