Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@verveerpj
Copy link
Contributor

The WELTRAJ and COMPTRAJ keywords were added some time ago to enable specification of trajectory wells. This PR fixed a few issues:

  • Any MAPAXES specifications were not handled, and cases with the origin not at zero failed. To solve this, the well coordinates are now transformed when they are read.
  • There was a bug in COMPTRAJ where defaulting the saturation table column was not handled, leading to segmentation faults.
  • The code for for converting the trajectory to cell indices only took the top and bottom coordinates into account, effectively assuming linear trajectories. Now intermediate points are added, allowing arbitrary trajectories.

The existing test case had its origin at zero, and a linear trajectory, which does not test the fixes. Therefore a new test case is added that has its origin at non-zero, and a non-linear trajectory. I see value in keeping the old simple test case together with the new test case, but it could be argued that the simple case could be removed. Feedback on that is welcome.

@akva2
Copy link
Member

akva2 commented Nov 4, 2024

jenkins build this please

Copy link
Member

@bska bska left a comment

Choose a reason for hiding this comment

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

I'm on the fence about this. On the one hand, the code is fine and the tests are good. On the other hand, the simulator really should not depend on MAPAXES since that's purely a convenience for post-processors like ResInsight and others. That said, I do see the utility in being able to specify coordinates in terms of a survey map and given that this feature isn't necessary to run the simulator I'm going to merge it into the master branch.

@bska bska merged commit c52d807 into OPM:master Nov 12, 2024
1 check passed
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