mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-14 09:52:01 -05:00
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:
1 parent
e7a80216e8
commit
5bbaba68f7
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user