From b333007fc39aaaa4caa91c367febb1a3c81041e4 Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Fri, 24 Jan 2014 15:15:22 +0100 Subject: [PATCH] FluidSystems::BlackOil: increase the fugacity coefficient of gas in water by a factor of 1000 this makes the PVS model work with SPE-9 and the NCP model to converge better... --- opm/material/fluidsystems/BlackOilFluidSystem.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/opm/material/fluidsystems/BlackOilFluidSystem.hpp b/opm/material/fluidsystems/BlackOilFluidSystem.hpp index 5f3d43386..b7de8b1e7 100644 --- a/opm/material/fluidsystems/BlackOilFluidSystem.hpp +++ b/opm/material/fluidsystems/BlackOilFluidSystem.hpp @@ -501,11 +501,10 @@ public: // pressure of water as a starting point. (we just set it to // 30 kPa to ease interpreting the results.) const Scalar pvWater = 30e3; - if (compIdx == oCompIdx || - compIdx == gCompIdx) - { + if (compIdx == oCompIdx) + return 1e3*pvWater / pressure; + else if (compIdx == gCompIdx) return 1e6*pvWater / pressure; - } return pvWater / pressure; }