Skip to content

wells: split injector connection flow between matrix and fracture - #7354

Draft
hnil wants to merge 2 commits into
OPM:masterfrom
hnil:pr/injector-fracture-split
Draft

wells: split injector connection flow between matrix and fracture#7354
hnil wants to merge 2 commits into
OPM:masterfrom
hnil:pr/injector-fracture-split

Conversation

@hnil

@hnil hnil commented Aug 24, 2026

Copy link
Copy Markdown
Member

For injectors with registered fracture contributions, splits each connection's water rate between matrix and fracture from the ratio of the regular connection transmissibility to the fracture contribution, filling the filtrate flow factor, the per-connection fracture water rate, and the well's total fracture-routed rate.

BlackoilWellModel gains a two-line call, gated on EnableMech, before the filtration-model post-step update; initializeWellPerfData takes the report step there as well. Wells without fracture contributions are skipped, and a non-mech build compiles the call out entirely.

Stacked on #7353, which adds WellIndexFracture and the contributions this reads. Until that merges the diff here includes it. The containers it fills came in with #7311.

hnil and others added 2 commits August 24, 2026 22:36
New WellIndexFracture (own header): the extra connection factor a
dynamically created fracture contributes to an existing perforation, with
reference values reserved for pressure interpolation between fracture
solves. WellInterfaceGeneric::addFracturePerforations() records/updates the
contributions in place (storage allocated on first use; at most one
fracture per cell assumed; unknown cells warned once per well/cell via
OpmLog). closeCompletions() clears the fracture contribution together with
the regular well index.

getTw() adds the fracture factor to every conservation quantity before the
D-factor adjustment. Wells without registered fracture perforations carry
no extra state and take a single empty() check -- no behavior change.

The pre-existing addPerforations() extension point is left untouched.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
New WellFractureFlowSplit.hpp: for injectors with registered fracture
contributions, split each connection's water rate between matrix and
fracture from the ratio of the regular connection transmissibility to the
fracture contribution, filling the filtrate flow factor, the per-connection
fracture water rate and the well's total fracture-routed rate.

BlackoilWellModel gains a two-line, EnableMech-gated call before the
filtration-model post-step update; initializeWellPerfData now receives the
report step there as well. Wells without fracture contributions are
skipped, non-mech builds compile the call out.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@hnil hnil added the manual:enhancement This is an enhancement/improvent that needs to be documented in the manual label Aug 24, 2026
@hnil
hnil marked this pull request as ready for review August 28, 2026 13:57
@hnil
hnil requested review from svenn-t and totto82 August 28, 2026 13:57
@hnil
hnil marked this pull request as draft August 28, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

manual:enhancement This is an enhancement/improvent that needs to be documented in the manual

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant