fix: change validation for region statistics for by resvol constraint - #3829
Merged
Conversation
tjb-ltk
requested review from
CusiniM,
OmarDuran,
dkachuma,
paveltomin,
rasimHZ and
rrsettgast
as code owners
September 23, 2025 17:44
MelReyCG
reviewed
Sep 24, 2025
MelReyCG
left a comment
Contributor
There was a problem hiding this comment.
Maybe, to not expose the statistics component to the user, you can add in the well solver's registerDataOnMesh():
if( !wellControls.referenceReservoirRegion().empty() )
{
// we need a statistics component for reference region pressure
m_referenceRegionStats = taskManager.registerGroup<SinglePhaseStatistics>( "internalStats" )
.setRestartFlags(NO_WRITE);
m_referenceRegionStats.registerDataOnMeshRecursive(meshBodies);
}m_referenceRegionStats would be a pointer or an std::optional, then you can call its execute() before reading it in updateVolRateForConstraint()
Contributor
|
We are testing the current state of the branch |
Contributor
|
No success. I'll create a branch / PR on top of this one to contribute on this issue |
dkachuma
reviewed
Oct 8, 2025
…if values are computed, 3) add msg about req task order
paveltomin
reviewed
Oct 20, 2025
paveltomin
approved these changes
Oct 20, 2025
MelReyCG
approved these changes
Nov 26, 2025
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3829 +/- ##
========================================
Coverage 59.36% 59.36%
========================================
Files 1337 1337
Lines 110815 110821 +6
========================================
+ Hits 65788 65792 +4
- Misses 45027 45029 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reservoir volume constraint needs region average quantities for computing fluid properties. The ave quantities are computed via tasks such as CompositionalMultiphaseStatistics (and SinglePhaseStatistics equivalent) that are triggered in event section
Previously validation attempted to check if compute statistics wrappers were present on region. This was incorrect. but maybe the region should own the statistics object.
New check looks at if region ave quantities are zero.
integrated tests are forthcoming..