From cc79c93184a9e12d23b58edde716b5d558df8f77 Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Fri, 25 Jul 2014 15:04:26 +0200 Subject: [PATCH] black oil fluid system: don't use the numerical value for the surface pressure directly this is just a minor clean up which does not change anything... --- opm/material/fluidsystems/BlackOilFluidSystem.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/opm/material/fluidsystems/BlackOilFluidSystem.hpp b/opm/material/fluidsystems/BlackOilFluidSystem.hpp index 933f461f9..cb488684a 100644 --- a/opm/material/fluidsystems/BlackOilFluidSystem.hpp +++ b/opm/material/fluidsystems/BlackOilFluidSystem.hpp @@ -390,9 +390,8 @@ public: // water is simple: 18 g/mol molarMass_[waterCompIdx] = 18e-3; - // for gas, we take the density at standard pressure and - // temperature and assume it to be ideal - Scalar p = 1.0135e5; + // for gas, we take the density at standard conditions and assume it to be ideal + Scalar p = surfacePressure_; Scalar rho_g = surfaceDensity_[gasPhaseIdx]; Scalar T = 297.15; molarMass_[gasCompIdx] = Opm::Constants::R*T*rho_g / p;