Skip to content

Add CONVERGENCE as closing reason #4529

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

totto82
Copy link
Member

@totto82 totto82 commented Mar 19, 2025

Motivation is to make it easy always to try to reopen wells that are shut due to convergence.

See OPM/opm-simulators#6067

@totto82
Copy link
Member Author

totto82 commented Mar 19, 2025

jenkins build this opm-simulators=6067 please

@totto82
Copy link
Member Author

totto82 commented Mar 19, 2025

jenkins build this opm-simulators=6097 please

1 similar comment
@totto82
Copy link
Member Author

totto82 commented Apr 1, 2025

jenkins build this opm-simulators=6097 please

@totto82 totto82 requested a review from GitPaean April 2, 2025 07:03
@totto82
Copy link
Member Author

totto82 commented Apr 2, 2025

The WGRUPCON failures is fixed with

OPM/opm-simulators#6098

@GitPaean
Copy link
Member

GitPaean commented Apr 2, 2025

jenkins build this opm-simulators=6097 please

Copy link
Member

@bska bska left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has the potential to break the restart file. I think I'm fine with having it, although the end user experience might be impaired from extending the set of possible closing reasons.

@@ -32,6 +32,7 @@
#include <string>
#include <unordered_set>
#include <vector>
#include "WellTestState.hpp"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already include that header at the top of the file.

@@ -60,6 +60,7 @@ enum class Reason {
GROUP = 4,
THP_DESIGN=8,
COMPLETION=16,
CONVERGENCE=32,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose this is fine, but you need to be aware that we'll throw an exception, and not create any restart file output. if the well is closed due to CONVERGENCE at restart file writing time.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's not good. Can we return WTest::EclCloseReason::NONE for CONVERGENCE to avoid adding new reasons to the restart files? Otherwise, we may break restart compatibility. The force-shut option for non-convergent wells is a back-door solution when we cannot converge the well and properly shut it down due to operability. Currently, they are tagged as PHYSICAL. But since the purpose of these PRs is to allow for checking these wells regardless of WTEST I think setting them as NONE is more robust.

Copy link
Member

@GitPaean GitPaean Apr 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we ever shut wells due to WellTestConfig::Reason::NONE?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we ever shut wells due to WellTestConfig::Reason::NONE?

I don't think so, but you know the well testing module better than I. That said, it would be a little strange for a closed/stopped well in the restart file to have a NONE reason. Such a well, at restart time, would be treated as open as far as the well testing code is concerned.

Is that okay?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so. It is better to open this well than to potentially shut it forever (like we do now). It will break perfect restart, but I think that is better than breaking restart compatibility.

@totto82 totto82 force-pushed the addConvergenceReason branch from e988c57 to 8621458 Compare April 3, 2025 08:25
@totto82
Copy link
Member Author

totto82 commented Apr 3, 2025

jenkins build this opm-simulators=6097 please

@GitPaean
Copy link
Member

GitPaean commented Apr 3, 2025

jenkins build this opm-simulators=6097 failure_report please

@GitPaean
Copy link
Member

GitPaean commented Apr 4, 2025

@totto82
Copy link
Member Author

totto82 commented Apr 4, 2025

Yes I know, but I haven't had time to look at it. I don't think this will be ready for release. I am not happy with the way we treat "failed wells" in master, so we should keep up the discussion.

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

Successfully merging this pull request may close these issues.

3 participants