mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-09-05 04:40:19 -05:00
This commit makes the PI/II calculation more closely mirror the approach taken when computing connection flow rates. In particular, we switch to using total mobility, mixing and volume ratios for injecting connections while producing connections continue to use the phase mobilities and formation volume factors derived from conditions in the connecting cells. We also include dissolved gas/oil ratios and vaporised oil/gas ratios in order to fully capture the surface flow conditions. We split the handling of producing/injecting connections out to separate helper functions in order to make the overall logic in updateProductivityIndex() more manageable.ex() more manageable.