Skip to content

Track Per-Region Cumulative Oil Production From Wells - #7293

Draft
bska wants to merge 3 commits into
OPM:masterfrom
bska:roew-no-copt
Draft

Track Per-Region Cumulative Oil Production From Wells#7293
bska wants to merge 3 commits into
OPM:masterfrom
bska:roew-no-copt

Conversation

@bska

@bska bska commented Aug 6, 2026

Copy link
Copy Markdown
Member

This PR maintains a record of the cumulative produced volume of oil attributable to each region of each defined region set. To this end, we define a special purpose ConnOPT region-level summary variable (OPM/opm-common#5279) and update this at the end of each converged time step as needed. The variable is defined only if the run requests any of the *OEW* recovery factor summary vectors.

In that case, we forward the dynamic values to the summary vector calculation engine in the I/O layer.

@bska bska added the manual:irrelevant This PR is a minor fix and should not appear in the manual label Aug 6, 2026
@bska

bska commented Aug 6, 2026

Copy link
Copy Markdown
Member Author

I'm creating this PR in draft mode for two reasons:

  1. It depends on, and contains, the earlier PR Add Parallel Support for Region Variable Values #7292.
  2. It uses the new helper function populateRegVarMapping() introduced in upstream PR Populate Region Variable Mapping From Summary Config opm-common#5279.

I will keep the PR a draft state until such time as it is ready for review and merging.

bska added 3 commits August 7, 2026 18:01
This commit introduces an MPI-aware version of class

    Opm::data::RegionsetVariableDescriptor

The primary extension to the base class is that this version
implements a non-trivial communicateGlobalRegsetMaxIDs() member
function that calculates maximum region IDs for all region sets
across MPI ranks.  The same features and restrictions that apply to
the base class also apply to this derived type.
This commit introduces an MPI-aware version of class

    Opm::data::RegionVariableValues

The primary extension to the base class is that this version
implements a non-trivial communicateIncrement() member function that
incorporates cross-rank value contributions to all variables for all
regions in all region sets.  The same features and restrictions that
apply to the base class also apply to this derived type.
This commit maintains a record of the cumulative produced volume of
oil attributable to each region of each defined region set.  To this
end, we define a special purpose "ConnOPT" region-level summary
variable and update this at the end of each converged time step as
needed.  The variable is defined only if the run requests any of the
*OEW* recovery factor summary vectors.

In that case, we forward the dynamic values to the summary vector
calculation engine in the I/O layer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

manual:irrelevant This PR is a minor fix and should not appear in the manual

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant