how to plot an unstructured grid from a disu file #1726
-
Describe the bug Hello.
To Reproduce You have to enter to the work folder and open de model.py file. The code inside the file is:
Expected behavior Desktop (please complete the following information):
Additional context |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@rafaur99 - you need to load the spatial information to use this functionality. Mfusg does not natively store this like mf6 does. I believe you have a couple of options:
from flopy.discretization import UnstructuredGrid
grid = UnstructuredGrid.from_gridspec(spec_path)
ml.modelgrid = grid # I think this works... Example notebook here. |
Beta Was this translation helpful? Give feedback.
@rafaur99 - you need to load the spatial information to use this functionality. Mfusg does not natively store this like mf6 does. I believe you have a couple of options:
Example notebook here.
2. Build the unstructured grid object yourself from for example csv files of lists of vertices (verts and iverts).