Skip to content

Fix thermal well perforation energy flux#3973

Open
npillardou wants to merge 8 commits intodevelopfrom
fix/npillardou/thermalWellPerforationEnergyFlux
Open

Fix thermal well perforation energy flux#3973
npillardou wants to merge 8 commits intodevelopfrom
fix/npillardou/thermalWellPerforationEnergyFlux

Conversation

@npillardou
Copy link
Copy Markdown
Contributor

This PR tries to fix a thermal well issue at top perforations.

According to the image below, for a single phase water injection, the temperature drops significantly lower than injection temperature (293.15K ) which is not logical for water injection case (left figure).

image

@tjb-ltk
Copy link
Copy Markdown
Contributor

tjb-ltk commented Feb 18, 2026

Hi Nicolas

Could you upload the associated model. There is a restriction, probably not documented, where the top segment cannot contain a perforation.
Thanks

@npillardou npillardou requested a review from dkachuma as a code owner February 18, 2026 13:44
@tjb-ltk
Copy link
Copy Markdown
Contributor

tjb-ltk commented Feb 18, 2026

Could you move/change the perf/seg definition so that the top seg doesn't have a perf and then make the comparison. Currently it looks like the top seg has 2 perforations...

@npillardou
Copy link
Copy Markdown
Contributor Author

npillardou commented Feb 18, 2026

Could you move/change the perf/seg definition so that the top seg doesn't have a perf and then make the comparison. Currently it looks like the top seg has 2 perforations...

Hello Thomas,
I updated the xml file with perforation like you suggested. However, the same issue appear in the top layers.

I also noticed a MGR issue when the injection starts from 0, I don't know if it is also your case :

    <TableFunction
      name="injectorTotalRateTable"
      inputVarNames="{ time }"
      coordinates="{  0, 100.0e6 }"
      values="{ 1e-2, 1e-2 }" 
      interpolation="lower"/> 

@npillardou
Copy link
Copy Markdown
Contributor Author

Based on discussion with @tjb-ltk, I added an assertion when a perforation is placed on the top well element (wellhead).

@dkachuma dkachuma requested review from bd713 and jafranc as code owners April 10, 2026 21:04
Copy link
Copy Markdown
Contributor

@dkachuma dkachuma left a comment

Choose a reason for hiding this comment

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

This is quite a restriction. Almost all the well cases that I have created have a perforation in the first segment. Can we simply add a "dummy" segment for the boundary condition?

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.

3 participants