Skip to content

Guard Against Missing Phases When Extracting Curves#116

Draft
bska wants to merge 1 commit into
OPM:masterfrom
bska:phase-checks-for-two-phase-systems
Draft

Guard Against Missing Phases When Extracting Curves#116
bska wants to merge 1 commit into
OPM:masterfrom
bska:phase-checks-for-two-phase-systems

Conversation

@bska
Copy link
Copy Markdown
Member

@bska bska commented Dec 19, 2025

This PR adds certain checks for active phases before attempting to construct curve interpolants and retrieving curve points from those interpolants. Notably, we make sure that we don't return water-related curves (e.g, krw, krow, pcow) in a gas/oil system, nor gas-related curves in an oil/water system.

Finally, add initial support for gas/water systems. The Pcgw capillary pressure curve is, however, not fully finalised.

This commit adds certain checks for active phases before
attempting to construct curve interpolants and retrieving curve
points from those interpolants. Notably, we make sure that we
don't return water-related curves (e.g, krw, krow, pcow) in a
gas/oil system, nor gas-related curves in an oil/water system.

Finally, add initial support for gas/water systems. The Pcgw
capillary pressure curve is, however, not fully finalised.
@bska
Copy link
Copy Markdown
Member Author

bska commented Dec 19, 2025

I'm creating this PR in draft mode because I need to add unit tests before it's ready to go.

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.

1 participant