mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06: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:
parent
e7a80216e8
commit
5bbaba68f7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user