Skip to content

Request PSAT in the 1D_COMP restart output - #1593

Draft
GitPaean wants to merge 1 commit into
OPM:masterfrom
GitPaean:comp_1d_comp_diagnostics
Draft

Request PSAT in the 1D_COMP restart output#1593
GitPaean wants to merge 1 commit into
OPM:masterfrom
GitPaean:comp_1d_comp_diagnostics

Conversation

@GitPaean

@GitPaean GitPaean commented Sep 9, 2026

Copy link
Copy Markdown
Member

Adds PSAT to the RPTRST list of 1D_COMP.

No compositional regression case asked for the saturation pressure, so the PSAT output path had no coverage: the decks that do request it are the equilibration pair, whose tests are not registered yet, and the black-oil gaslift and spe02 cases never reach the compositional module.

The case exercises both branches of the output. The early steps are two-phase, where PSAT is the cell pressure, and the column then gasses out to near-pure CO2 at 150 degC, far above its critical temperature, so the late steps have no saturation pressure and report zero. Between those, a few single-phase steps return a calculated saturation pressure, so the solver path is exercised as well as the two trivial ones.

The reference data is deliberately not included: it is left to the automatic update, which regenerates it from a build carrying the PSAT output. The comparison therefore fails until that lands.

Requires the PSAT output in OPM/opm-simulators#7389, which in turn requires the solver in OPM/opm-common#5283.

@GitPaean
GitPaean marked this pull request as draft September 9, 2026 08:20
@GitPaean
GitPaean force-pushed the comp_1d_comp_diagnostics branch from 9e08a09 to 5ad0c13 Compare September 9, 2026 09:05
@GitPaean

GitPaean commented Sep 9, 2026

Copy link
Copy Markdown
Member Author

jenkins build this failure_report please

https://ci.opm-project.org/job/opm-tests-PR-builder/294/

@bska

bska commented Sep 9, 2026

Copy link
Copy Markdown
Member

References are regenerated for flow_comp and flowexp_comp.

Did you create those on your own machine? If so, there's a chance that they won't apply to the CI system. I've experienced on a number of occasions that my machine computes result sets that are ever so slightly different from those of the CI system's. Different CPUs, different compilers (or compiler versions), different build flags &c could all be contributing to changes that make locally generated solutions not match those of the CI system.

@GitPaean

GitPaean commented Sep 9, 2026

Copy link
Copy Markdown
Member Author

References are regenerated for flow_comp and flowexp_comp.

Did you create those on your own machine? If so, there's a chance that they won't apply to the CI system. I've experienced on a number of occasions that my machine computes result sets that are ever so slightly different from those of the CI system's. Different CPUs, different compilers (or compiler versions), different build flags &c could all be contributing to changes that make locally generated solutions not match those of the CI system.

Yes. but this one works. Like the jenkins test https://ci.opm-project.org/job/opm-common-PR-builder/10316/ shows.

I am okay to undo it and use Jenkins update also.

This jenkins request in opm-tests just wants to show that the simulator flow_comp does not produce the PSAT in the restart file, it confirms. And that should be the only issue.

If you prefer, I can remove the reference update and let jenkins do the work.

@bska

bska commented Sep 9, 2026

Copy link
Copy Markdown
Member

Did you create those on your own machine? If so, there's a chance that they won't apply to the CI system.

Yes. but this one works.

Only until it doesn't. I just merged #1595 generated by the changes in OPM/opm-common#5348 and that has introduced merge conflicts for the 1D_COMP.* result files.

If you prefer, I can remove the reference update and let jenkins do the work.

Yes please. I generally prefer Jenkins generating reference solution updates.

@GitPaean
GitPaean force-pushed the comp_1d_comp_diagnostics branch from 5ad0c13 to adf30c6 Compare September 9, 2026 11:04
No compositional regression case asked for the saturation pressure, so
the PSAT output path had no coverage: the decks that do request it are
the equilibration pair, whose tests are not registered yet, and the
black-oil gaslift and spe02 cases never reach the compositional module.

The case exercises both branches of the output. The early steps are
two-phase, where PSAT is the cell pressure, and the column then gasses
out to near-pure CO2 at 150 degC, far above its critical temperature, so
the late steps have no saturation pressure and report zero. Between
those, a few single-phase steps return a calculated saturation pressure.

The reference data is left to the automatic update, which regenerates it
from a build carrying the PSAT output.
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.

2 participants