Suppot EQUIL + WATER + GAS

This commit is contained in:
Tor Harald Sandve
2022-12-12 13:39:00 +01:00
parent adda7e4a3c
commit 8d37ded703
7 changed files with 362 additions and 50 deletions

View File

@@ -139,12 +139,12 @@ public:
if (FluidSystem::enableDissolvedGas())
fluidState.setRs(initialState.rs()[elemIdx]);
else if (Indices::gasEnabled)
else if (Indices::gasEnabled && Indices::oilEnabled)
fluidState.setRs(0.0);
if (FluidSystem::enableVaporizedOil())
fluidState.setRv(initialState.rv()[elemIdx]);
else if (Indices::gasEnabled)
else if (Indices::gasEnabled && Indices::oilEnabled)
fluidState.setRv(0.0);
if (FluidSystem::enableVaporizedWater())