Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2022-04: Incorrect Error Message? #3157

Open
OPMUSER opened this issue Sep 26, 2022 · 3 comments
Open

2022-04: Incorrect Error Message? #3157

OPMUSER opened this issue Sep 26, 2022 · 3 comments

Comments

@OPMUSER
Copy link
Contributor

OPMUSER commented Sep 26, 2022

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.

@bska
Copy link
Member

bska commented Sep 26, 2022

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?

@OPMUSER
Copy link
Contributor Author

OPMUSER commented Sep 26, 2022

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.

@bska
Copy link
Member

bska commented Sep 26, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants