From 5bbaba68f743038bc60ebbca35b2627ae5062fa1 Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Mon, 12 Jan 2015 11:57:09 +0100 Subject: [PATCH] ECL problem: fix incorrect calculation of the initial gas mass fraction in oil once uppon a time I had an incorrect definition of the Rs factor in mind. this was an artifact from that time... --- applications/ebos/eclproblem.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/ebos/eclproblem.hh b/applications/ebos/eclproblem.hh index bc07b6359..3728ffff3 100644 --- a/applications/ebos/eclproblem.hh +++ b/applications/ebos/eclproblem.hh @@ -936,7 +936,7 @@ private: // mass fractions. Scalar rhooRef = FluidSystem::referenceDensity(oilPhaseIdx, /*regionIdx=*/0); Scalar rhogRef = FluidSystem::referenceDensity(gasPhaseIdx, /*regionIdx=*/0); - Scalar XoGReal = RsReal*rhogRef / (RsReal*rhogRef + rhooRef); + Scalar XoGReal = RsReal/(RsReal + rhooRef/rhogRef); // convert mass to mole fractions Scalar MG = FluidSystem::molarMass(gasCompIdx);