-
Notifications
You must be signed in to change notification settings - Fork 113
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
Compositional well #4334
Compositional well #4334
Conversation
jenkins build this please |
5f80b49
to
0eb6da9
Compare
jenkins build this please |
11898aa
to
c1cf35e
Compare
26fa8c7
to
e5c5bc1
Compare
e5c5bc1
to
8a1f4cb
Compare
8a1f4cb
to
a19d35a
Compare
bd0b26f
to
f02c801
Compare
59b6cee
to
039ae4d
Compare
f8c5783
to
2308faf
Compare
6a87b65
to
17cd947
Compare
jenkins build this opm-simulators=6042 please |
4 similar comments
jenkins build this opm-simulators=6042 please |
jenkins build this opm-simulators=6042 please |
jenkins build this opm-simulators=6042 please |
jenkins build this opm-simulators=6042 please |
jenkins build this please |
jenkins build this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a first pass cosmetics
The failure is due to the following message,
|
034a284
to
9f2c185
Compare
it is possible that WCONINJ* keywords will come after WINJGAS keyword.
The comments are addressed. and remove some requirement for WINJGAS keyword so the jenkins can pass. |
jenkins build this please |
uhm, are we sure it's not just a broken test case? it seems like a very good sanity check to me even if we have to reorder those files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When writing new keyword handlers, we generally prefer to use compiled item names instead of string literals. Other than that this looks good to me, with a couple of opportunities to use move()
instead of copy.
Basically, the schedule parsing in OPM is in sequential order. We have multiple occasions that some DATA file is parsed by other simulator while rejected by OPM. The direct issue for this incident is that all the wells are created by default as producers when creating the wells based on WELSPECS, Well well(wellName,
group,
timeStep,
0,
headI, headJ,
ref_depth,
WellType(preferredPhase), WellType::WellType(const Phase phase)
: WellType { true, phase }
{} Then we later update whether it is a producer or injector based on WCONP* keywords or WCONJ* keywords. For the specific DATA file, the order of the keywords are WELSPECS Then it is a decision about whether we want to let this DATA pass. I am open with other suggestions also. |
Thanks for the reviewing comments, will come back to address them later to allow other more urgent issue. |
yes i understood the problem/point. my question is if we should force sane sequential order. what is the semantics of the input file format? as far as i know, the semantics are sequential where order matters. if this is not actually the case then we indeed have to forgo the sanity check. |
I think for the problematic DATA files, the way they specify the things, I mean specifying WINJGAS before making it a injector through WCONINJE.
we should make OPM can handle it. Otherwise, in the future we might face complaining from the user side and asking the users to modify the DATA file is not always easy. What we can do (not in this PR), we can have a consistence checking for each report steps when all the relevant keywords are parsed. For example if happens for one report step, the following situation specification happens,
During the consistence checking, it shows indeed WINJGAS is specified for a producer, we should throw and gives helpful instructions for the users. |
I believe I addressed the reviewing comments. |
jenkins build this please |
You did for |
356c395
to
204dd4a
Compare
Oh, sorry for missing it. now it should be updated. |
jenkins build this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the updates. This looks good to me now and I'll merge into master.
This PR is providing some necessary elements for the compositional simulation with wells. It mostly including the following elements,
The PR can be reviewed and merged by itself without the downstream PR OPM/opm-simulators#6042 .