Skip to content

Write FLORES restart arrays for compositional runs - #7728

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

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

Conversation

@GitPaean

Copy link
Copy Markdown
Member

On top of #7724, which it needs: only the last commit is new here. On master flow_comp still uses the element-context assembly, which does not keep the face fluxes, so this change alone would leave FLORES at zero.

flow_comp wrote FLR* restart arrays that were all zero, because the compositional output module never copied the linearizer's face fluxes into them. It now does, reading the phase reservoir volume rates that the flash model's face flux stores by phase index. Compositional fluid systems have no water component index, so the flows container also had no slot for water: FLRWAT was never written, and allocating it for decks with water wrote out of bounds. Water now takes the slot after oil and gas.

FLOWS needs no change: it is not a compositional RPTRST mnemonic and the parser already rejects it.

@GitPaean GitPaean added the manual:enhancement This is an enhancement/improvent that needs to be documented 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.
The compositional output module never copied the linearizer's face
fluxes into the flows container, so every FLR* array was zero. The
flash model holds the phase reservoir volume rates by phase index.
Compositional fluid systems have no water component index, which left
FLRWAT without a slot in the container.

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: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