From 94c738538faf5d1fbc0184ebdf884c00385c4054 Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Thu, 16 Mar 2023 15:26:03 +0100 Subject: [PATCH 1/2] use mass fraction not mole fractions --- opm/material/fluidsystems/blackoilpvt/BrineCo2Pvt.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/material/fluidsystems/blackoilpvt/BrineCo2Pvt.hpp b/opm/material/fluidsystems/blackoilpvt/BrineCo2Pvt.hpp index 5aed12a39..d74b352e2 100644 --- a/opm/material/fluidsystems/blackoilpvt/BrineCo2Pvt.hpp +++ b/opm/material/fluidsystems/blackoilpvt/BrineCo2Pvt.hpp @@ -164,7 +164,7 @@ public: const Evaluation& Rs) const { - const Evaluation xlCO2 = convertXoGToxoG_(convertRsToXoG_(Rs,regionIdx)); + const Evaluation xlCO2 = convertRsToXoG_(Rs,regionIdx); return (liquidEnthalpyBrineCO2_(temperature, pressure, salinity_[regionIdx], From 5f438d19cc72d5c482b4e68fa73be8e89cbf1e01 Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Thu, 16 Mar 2023 15:26:54 +0100 Subject: [PATCH 2/2] fix sign bug in thermal Brine density calculations --- opm/material/components/Brine.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/material/components/Brine.hpp b/opm/material/components/Brine.hpp index c17d1ad56..735279ab8 100644 --- a/opm/material/components/Brine.hpp +++ b/opm/material/components/Brine.hpp @@ -274,7 +274,7 @@ public: 300*pMPa - 2400*pMPa*salinity + tempC*( - 80.0 - + 80.0 + 3*tempC - 3300*salinity - 13*pMPa +