-
Notifications
You must be signed in to change notification settings - Fork 6
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
Request for support of rotated rectangular DISV grids #16
Comments
Hi, is there any update on this subject? Do you have a roadmap on the necessary modifications to the code, whether you'd prefer including rotation inside the Fortran code or doing some pre/post processing outside Modpath? I'm thinking of doing pre/post processing in Perl for my own purpose but it may be more useful to modify the Fortran code. |
Hi @Julien-K, Without ruling out the possibility, I wouldn't list this as a priority for the near future, and I haven't mapped out the specific code changes that would be needed. Developing your own Perl script would probably not be a bad investment if you plan to work with rotated grids regularly. Btw, you may be interested to know that we're working on incorporating a particle-tracking capability into MODFLOW 6 (eyeing a first release in the fall of this year). It will be able to handle more general unstructured grids than MODPATH 7 does, as well as rotated grids. |
Hi @aprovost-usgs, thank you for your reply, that would be a great feature for MF6! |
@Julien-K, thanks very much for looking into that further. I look forward to seeing how you've handled it and the results of your testing. |
G'day - did this issue ever get resolved? I see there is an open PR from a while ago. |
@rhugman Although we're grateful to the author of the PR for coding up a prototype and doing some initial testing, the tests were inconclusive in demonstrating that the implementation was working correctly. The possibility hasn't been ruled out, but incorporating grid rotation into MODPATH 7 remains a low priority for the reasons cited earlier. You might be interested to know that the particle-tracking capability being developed for MODFLOW 6 -- the PRT Model, which handles rotated grids -- should soon be merged into the develop branch of the MODFLOW 6 repo. That might be a good time to give it a try if you're so inclined. |
@rhugman <https://github.com/rhugman> I began to implement the testings
required by @aprovost-usgs but I ran in a few problems. I plan to resume
the work before the end of the year.
Regards,
Julien
…On Fri, Nov 10, 2023 at 5:35 AM rhugman ***@***.***> wrote:
G'day - did this issue ever get resolved? I see there is an open PR from a
while ago.
—
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABWOGEZW5UXASQW5OVJX5BDYDWVHHAVCNFSM4F32LFB2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBQGUYDOMRTGAZA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Julien Kirmaier ***@***.***>
|
Thank you, @Julien-K, we appreciate your efforts. |
Hello. It seems that the transition to PRT is ongoing for MF6: ... but it might not be too well known yet. Although is always on the user to read the complete docs before MP7 usage, it might still be worthwhile to suggests that this MP7 limitation be declared early in the user guide. We have found no mention to that in it. We have only found this limitation explicitly declared in the input/output manual (see images below). There are also other notes in the docs that might lead to think that rotated DIV grids are possible in MP7, which open more chances to be unaware until the search for the issue becomes more specific. The error message in our case was also not too informative. It said something along the lines of "the binary grid contains data that is inconsistent with a rectangular DISV grid". Our first thought was we did something wrong when building the grid, or that our Gridgen setup was at fault. With the abilities of flopy and other GUIs today, rotated grids in real world models are commonplace. So I hope this issue, the suggestion and the images helps other earlier when trying out rotated unstructured grids with MP7, prevent them from, or alert them on the extra processing that will be needed. Maybe this can also be mentioned in the flopy MP7 examples. Regards |
@javgs-bd Thank you for your suggestion and for the helpful supporting information. We'll consider how best to document this limitation of MODPATH 7 so it's clearer to users. Btw, the Particle Tracking (PRT) Model was released in MODFLOW 6.5.0 this past summer. |
DG (initial email to Chris 6/11/2018) and RW (initial email to Alden 10/11/2018) noted that MODPATH doesn't support rotated rectangular/quadtree DISV grids. Examination of the code shows that MP7 explicitly checks (in subroutine CheckRectangular) to make sure every cell in a MF6 DISV grid is a rectangle that's aligned with the x and y coordinate directions. If not, MODPATH throws an error.
RW asked whether we would consider adding support for rotated rectangular grids. Seems like this could be done by "unrotating" the grid, doing the particle tracking, and then "rerotating" the results. (Could probably do the same for quadtree.)
The text was updated successfully, but these errors were encountered: