Skip to content

how to plot an unstructured grid from a disu file #1726

Closed Answered by cnicol-gwlogic
rafaur99 asked this question in Q&A
Discussion options

You must be logged in to vote

@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:

  1. use the relatively new "from Grid Specification File" option:
from flopy.discretization import UnstructuredGrid
grid = UnstructuredGrid.from_gridspec(spec_path)
ml.modelgrid = grid # I think this works...

Example notebook here.
2. Build the unstructured grid object yourself from for example csv files of lists of vertices (verts and iverts).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wpbonelli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #1723 on February 20, 2023 13:52.