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

2022-04: Incorrect Error Message?

Open OPMUSER opened this issue 3 years ago • 3 comments

Get this error message

Warning: In saturation table SATNUM = 1, Krow(Somax) should be equal to Krog(Somax).

but the data looks fine:

2022-09-26 18_32_07-OPM_Flow_Reference_Manual_2022-10_Rev-A ods - LibreOffice Calc

Commercial simulator does not complain, but OPM ResInsight throws an exception and will not plot the data. The data is based on SWOF and SLGOF, but this might be because of an end-pont scaling issue.

OPMUSER avatar Sep 26 '22 10:09 OPMUSER

In saturation table SATNUM = 1, Krow(Somax) should be equal to Krog(Somax).

Did you get that message in a Flow simulator run or from ResInsight?

The data is based on SWOF and SLGOF,

Is the irreducible/connate water saturation greater than zero? I.e., is the first item in column one of SWOF greater than zero? If so, I think you're right that the diagnostic is wrong provided it was really generated by Flow. It doesn't explain why ResInsight would refuse to plot the data however, because we internally translate family I-type data (i.e., SWOF/SGOF/SLGOF) into family II-type data (SWFN/SGFN/SOF3) before writing tabular data to the .INIT file. At least that's what we're supposed to do. There may of course be errors in that translation process.

Would you be able to share the SWOF/SLGOF tables and the resulting .INIT file?

bska avatar Sep 26 '22 11:09 bska

Did you get that message in a Flow simulator run or from ResInsight?

Message is from OPM Flow.

Is the irreducible/connate water saturation greater than zero? I.e., is the first item in column one of SWOF greater than zero?

No the saturations are zero, these are normalized curves, which I suspect is the cause.

Would you be able to share the SWOF/SLGOF tables and the resulting .INIT file?

We have the data, it is the R model.

OPMUSER avatar Sep 26 '22 14:09 OPMUSER

Did you get that message in a Flow simulator run or from ResInsight?

Message is from OPM Flow.

Understood. In that case it's generated by the "relperm check" in which the SLGOF code looks a little suspicious. I'll look more closely into that.

Is the irreducible/connate water saturation greater than zero? I.e., is the first item in column one of SWOF greater than zero?

No the saturations are zero, these are normalized curves, which I suspect is the cause.

I'll keep that in mind.

Would you be able to share the SWOF/SLGOF tables and the resulting .INIT file?

We have the data, it is the R model.

Ah, okay. In that case it'll be easier to reproduce locally. Tangentially, I looked into possible reasons for ResInsight failing here and noticed that the table output code does not handle the SLGOF table at all. In other words, the .INIT file generated in this case does not have normalised saturation function tables for KRG(SG), KROW(SO), or KROG(SO) and will get into all kinds of weird cases when trying to plot those functions. I'll try to fix that ahead of the 2022.10 release.

bska avatar Sep 26 '22 15:09 bska