Skip to content

Injection network: GNETINJE implies a standard network, and GPRG/GPRW output - #5314

Draft
hnil wants to merge 2 commits into
OPM:masterfrom
hnil:injection-network-common
Draft

Injection network: GNETINJE implies a standard network, and GPRG/GPRW output#5314
hnil wants to merge 2 commits into
OPM:masterfrom
hnil:injection-network-common

Conversation

@hnil

@hnil hnil commented Aug 24, 2026

Copy link
Copy Markdown
Member

Companion to the opm-simulators injection network work (OPM/opm-simulators#7345 and the WIP draft OPM/opm-simulators#7348 on top of it). Two commits: without the first the network never activates from GNETINJE alone; without the second the injection network is invisible in the summary, which is why the wrong answers had gone unnoticed.

The first commit is atgeirr's.

Atgeirr Flø Rasmussen and others added 2 commits August 24, 2026 10:52
The injection networks (GNETINJE) had no summary output: SummaryConfig
collected node names from the production network only, so GPRG/GPRW were
dropped as 'not supported in runs without networks', and Summary had no
evaluator for them.

- data::GroupAndNetworkValues gets gasInj/waterInj node and branch maps,
  separate from the production maps because a group can be a node of all
  three networks with different pressures.
- SummaryConfig collects the production, gas- and water-injection node names
  and routes GPRG/GPRW to the injection lists.
- Summary evaluates GPRG/GPRW from the new maps.

tests/summary_deck.DATA gets a GNETINJE gas and water network (FIELD -> G_2)
and test_Summary checks GPRG:G_2/GPRW:G_2 and that GPRG is not created for a
group outside the gas network; without this change GPRG:G_2 does not exist.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.

1 participant