Skip to content

Support individual satnums in wells for solvent model#6905

Open
totto82 wants to merge 1 commit intoOPM:masterfrom
totto82:support_consat_solvent
Open

Support individual satnums in wells for solvent model#6905
totto82 wants to merge 1 commit intoOPM:masterfrom
totto82:support_consat_solvent

Conversation

@totto82
Copy link
Member

@totto82 totto82 commented Mar 5, 2026

Support individual mobility for wells in combination with the solvent model.

@totto82 totto82 added the manual:irrelevant This PR is a minor fix and should not appear in the manual label Mar 5, 2026
@totto82
Copy link
Member Author

totto82 commented Mar 5, 2026

jenkins build this failure_report please

@totto82 totto82 requested a review from svenn-t March 5, 2026 12:18
Copy link
Contributor

@svenn-t svenn-t left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. One small question on the cut-off value.

if constexpr (has_solvent) {
OPM_DEFLOG_THROW(std::runtime_error, "individual mobility for wells does not work in combination with solvent", deferred_logger);
const auto Fsolgas = intQuants.solventSaturation() / (intQuants.solventSaturation() + intQuants.fluidState().saturation(FluidSystem::gasPhaseIdx));
if (Fsolgas > 1e-12) { // same cutoff as in the solvent model to avoid division by zero
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to get the cut-off value from the solvent module?

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.

2 participants