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...
This commit is contained in:
Andreas Lauser 2015-01-12 11:57:09 +01:00
parent e7a80216e8
commit 5bbaba68f7

View File

@ -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);