Skip to content

bug: Allow perf connection in top well element - #4146

Open
tjb-ltk wants to merge 3 commits into
developfrom
feature/byer3/inj_constraint
Open

tjb-ltk wants to merge 3 commits into
developfrom
feature/byer3/inj_constraint

Conversation

@tjb-ltk

@tjb-ltk tjb-ltk commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

This PR removes the restriction (thermal models) of no perforations being allowed in the top well element, incorporating the single phase fix in @npillardou PR 3973 and then extending to compositional models. The fix retains the constant temperature boundary condition at top well element but now includes terms for allowing convective heat transfer from the top element into the reservoir cell.
Integrated tests are included for single phase and compositional models. The compositional model also activates the well estimator to arrive at a good initial estimate for the well solution.

An additional fix is include for compositional. There was an error in the residual scaling for well equations in thermal. This was introduced in the refactor merge. When the well boundary condition is BHP, the well doesn't have a rate constraint to use for the residual scaling in the component balance equations. When a well is controlled by BHP scaling the balance equation residual is not necessarily needed since the mass inj/prod is computed directly from the BHP constraint value.

@tjb-ltk tjb-ltk self-assigned this Sep 17, 2026
@tjb-ltk tjb-ltk added type: bug Something isn't working type: feature New feature or request ci: run integrated tests Allows to run the integrated tests in GEOS CI flag: no rebaseline Does not require rebaseline ci: run code coverage enables running of the code coverage CI jobs labels Sep 17, 2026
@tjb-ltk
tjb-ltk requested a review from npillardou September 17, 2026 14:44
@tjb-ltk tjb-ltk changed the title fix: Allow perf connection in top well element bug: Allow perf connection in top well element Sep 24, 2026
@tjb-ltk tjb-ltk added the ci: run device builds Allows to run the device (CUDA/HIP) builds label Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci: run code coverage enables running of the code coverage CI jobs ci: run device builds Allows to run the device (CUDA/HIP) builds ci: run integrated tests Allows to run the integrated tests in GEOS CI flag: no rebaseline Does not require rebaseline type: bug Something isn't working type: feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant