opm-simulators icon indicating copy to clipboard operation
opm-simulators copied to clipboard

checking both components are there before using d = 1. - rs * rv

Open GitPaean opened this issue 2 years ago • 3 comments

trying to remove some not helpful debugging message, like the following. Basically, we should not try to calculate the d when there is only one component there. Then we do not run to this trouble.

684516 Problematic d value -0.25268203386454324 obtained for well A-6H during gasOilVolumeRatio calculations with rs 744.8471490915831, rv 0.0016817974471572007 and pressure 59324439.42451076. Continue as if no dissolution (rs = 0) and vaporization (rv = 0)  for this connection.
 684517  mix_s[oil] 0 mix_s[gas] 1  b[oil]  0.2949977743744645  b[gas]  229.2656516489468 

Ideally, we should check whether it is two phase state also under reservoir condition when using the d formula, while that is more involved.

GitPaean avatar Nov 23 '23 12:11 GitPaean

jenkins build this please

GitPaean avatar Nov 23 '23 12:11 GitPaean

jenkins build this please

GitPaean avatar Nov 23 '23 14:11 GitPaean

jenkins build this please

GitPaean avatar Nov 23 '23 23:11 GitPaean