Skip to content

Multiple PVT regions and rock compressibility in compositional Flow - #7464

Draft
GitPaean wants to merge 9 commits into
OPM:masterfrom
GitPaean:comp-pvt-regions
Draft

GitPaean wants to merge 9 commits into
OPM:masterfrom
GitPaean:comp-pvt-regions

Conversation

@GitPaean

@GitPaean GitPaean commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

Compositional Flow took PVT region 1 everywhere and ignored rock compressibility:

  • apply ROCK in the flash intensive quantities, and reject ROCKCOMP, whose compaction tables are not applied,
  • take the water PVT and DENSITY of each cell's PVT region,
  • equilibrate the water of each PVT region with its own column, also within one equilibration region.

Needs OPM/opm-common#5400 and OPM/opm-tests#1628.

@GitPaean GitPaean added the manual:irrelevant This PR is a minor fix and should not appear in the manual label Sep 28, 2026
@GitPaean
GitPaean force-pushed the comp-pvt-regions branch 2 times, most recently from c6a8885 to aa62385 Compare September 29, 2026 22:11
With EQUIL item 10 = 1 the COMPVD rows give the composition versus
depth, so they decide where the gas zone ends. A contact outside the
gap between the last vapour row and the first liquid row now moves to
the nearest edge of that gap with a warning instead of stopping the
run. Type 3 keeps the error, as it uses the contact as reference depth.
A cell on the contact belongs to the liquid zone, so a contact moved onto
the last vapour row gave that row's depth the liquid composition. With
EQUIL item 10 = 1 the rows decide the phase.
The water took the liquid column's pressure even when the gas zone
reaches the water-oil contact, as it does once the gas-oil contact lies
below it.
Clamp once and compare, so the row gap is defined in one place. Once
the boundary moves it is no longer the EQUIL contact, so the later
messages stop calling it that. The rejection test checks which error
it gets.
The flash intensive quantities took the reference porosity, so ROCK had
no effect on compositional runs. Scale the porosity with the pressure as
the black-oil model does; the rock table follows PVTNUM or ROCKNUM.
ROCKCOMP is rejected, as its compaction tables do not enter the porosity.
…Flow

The cells took the water PVT and the water surface density of the first
PVT region. Select the cell's PVT region in the parameter cache.
The water column of every equilibration region took the water PVT of the
first PVT region. Integrate a water column for each PVT region among the
cells of an equilibration region and give each cell the column of its own
region. A datum below the water-oil contact gives the pressure of all of
these waters, so there they must reach the contact at the same pressure.

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