Skip to content

Thermal msw refactoring#7199

Draft
GitPaean wants to merge 20 commits into
OPM:masterfrom
GitPaean:thermal_msw_refactoring
Draft

Thermal msw refactoring#7199
GitPaean wants to merge 20 commits into
OPM:masterfrom
GitPaean:thermal_msw_refactoring

Conversation

@GitPaean

@GitPaean GitPaean commented Jun 23, 2026

Copy link
Copy Markdown
Member

In the PR #6816, we create a FluidState for each segment.

This PR aims at reusing of the FluidState in the calculating the surface volume of the segment and calculate the fluid properties.

@GitPaean GitPaean added the manual:irrelevant This PR is a minor fix and should not appear in the manual label Jun 23, 2026
@GitPaean

Copy link
Copy Markdown
Member Author

jenkins build this failure_report please

@GitPaean

GitPaean commented Jun 24, 2026

Copy link
Copy Markdown
Member Author

The results https://ci.opm-project.org/job/opm-simulators-PR-builder/10198/ look generally fine and it has regression comparable to #7043 .

@GitPaean GitPaean force-pushed the thermal_msw_refactoring branch from 0df48d8 to eae03eb Compare June 24, 2026 12:00
GitPaean added 18 commits June 24, 2026 14:01
including adding tempearture as the primary variable for the MSW.

to calculate the enthalpy, for each segment, we generate a
SegmentFluidState.
to test the thermal equation solving for MSW
Multiply the MSW energy accumulation/flow/perforation terms by
energy_scaling_factor_ (the reservoir's BlackOilEnergyScalingFactor) so the
energy residual matches the mass-equation scale, improving well-system
conditioning and convergence; the connectionRates_ source term stays raw
since the reservoir scales the coupling centrally. The energy convergence
check now reuses the standard well tolerances instead of hand-tuned constants.
…ture

Fall back to first-perforation reservoir temperature when WINJTEMP is unset
instead of calling Well::inj_temperature() unconditionally.
Reuse surfaceToReservoirRate for the producing energy connection (now a
template over the fluid-state type, extending reservoir Eval on the fly),
hoist the segment volume and PVT parameter cache out of their phase loops.
and only applying the pressure and temperature derivative to energy
flux.
@GitPaean GitPaean changed the title Thermal msw refactoring [another test] Thermal msw refactoring Jun 24, 2026
@GitPaean GitPaean force-pushed the thermal_msw_refactoring branch from eae03eb to e28b364 Compare June 24, 2026 12:48
@GitPaean

Copy link
Copy Markdown
Member Author

jenkins build this failure_report please

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