How to get l,r,c of a cell that contains coordinates x, y and z using flopy.mf6 #1366
Unanswered
chenmingzhang
asked this question in
Q&A
Replies: 1 comment 2 replies
-
@chenmingzhang, did you try the modelgrid's intersect method? You can do try something like:
If you want to define a coordinate system you will first want to set the coordinates with the modelgrid's "set_coord_info" method and then call the intersect method, setting local to False (default). Note that intersect returns different results for vertex and unstructured grids. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This function is very handy during mesh dependency test, as we do not have to change the lrc of the wells during remeshing.
I used to use the follow function to achieve this, if mf2005 is used :
How to achieve this if using mf6, given dis.get_rc_from_node_coordinates and dis.get_layer are not available?
Following the examples, I have done:
where ????? is needed. or my way is completely wrong.
I have checked the methods in flopy.mf6.ModflowGwf.modelgrid and it seems nothing is for this.
Thanks, Chenming
Beta Was this translation helpful? Give feedback.
All reactions