Skip to content

Update flow_comp intensive quantities without element contexts - #7730

Draft
GitPaean wants to merge 2 commits into
OPM:masterfrom
GitPaean:flowcomp-stage2
Draft

GitPaean wants to merge 2 commits into
OPM:masterfrom
GitPaean:flowcomp-stage2

Conversation

@GitPaean

Copy link
Copy Markdown
Member

On top of #7724, which it needs: only the last commit is new here.

flow_comp refreshed its cached intensive quantities through an element context per cell, and the compositional well model looped over all interior cells every Newton iteration to do the same again. The PT-flash intensive quantities now also update from a cell index, and a small FICompositionalModel uses that to refresh the cache cell by cell. The well loop is gone, since the cache is current when the wells read it. flowexp_comp and the PT-flash example keep the element-context path.

Results are unchanged on the compositional test decks, serial and parallel. The flash dominates the property update, so run time barely moves; assembly gets a little cheaper.

@GitPaean GitPaean added the manual:irrelevant This PR is a minor fix and should not appear in the manual label Nov 23, 2026
A new local residual for the PT-flash model computes the same
transmissibility-based flux as the element-context assembly. The TPFA
linearizer assembles total rates rather than rates per unit volume, so
flow_comp no longer uses a volumetric residual, and the convergence
check divides by the cell volume to keep its tolerances.

Compositional runs never read boundary conditions, so a deck with BCCON
used to run with no-flow boundaries. Such decks are now rejected.
flow_comp now refreshes the cached intensive quantities cell by cell. The
well model no longer loops over all cells every iteration, since the
cache is already up to date when the wells read it.

This branch has not been deployed

No deployments
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