Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bug related to matching perforations to reservoir elements #1206

Merged
merged 3 commits into from
Jan 11, 2021

Conversation

francoishamon
Copy link
Contributor

@francoishamon francoishamon commented Oct 16, 2020

This PR fixes a bug related to matching perforations to reservoir elements in the well code.

In the previous approach, I was using the location of the previous perforation as an "initial guess" to find the reservoir element containing the next perforation along the wellbore. This approach does not work well when the perforations are far from each other, or when the mesh is too fine, and as a result the algorithm cannot match the perforations to any reservoir element. To circumvent this issue, I now use the location of the reservoir element that is the closest to the perforation as "initial guess".

I also made some well error messages less cryptic.

This reminds me that I should at some point improve the "geometry" part of the well code by computing the intersections of the well polyline with the reservoir elements to make this piece of code more efficient on large meshes.

Thanks @tang39 for reporting this problem (and for using the wells).

Copy link
Member

@rrsettgast rrsettgast left a comment

Choose a reason for hiding this comment

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

@francoishamon Is this still a WIP?

@francoishamon francoishamon added ci: run CUDA builds Allows to triggers (costly) CUDA jobs and removed flag: ready for review labels Jan 8, 2021
@francoishamon francoishamon merged commit be11772 into develop Jan 11, 2021
@francoishamon francoishamon deleted the bugfix/hamon/perforations branch January 11, 2021 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci: run CUDA builds Allows to triggers (costly) CUDA jobs type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants