Building MfUsg CrossSections with Voronoi Grids #2540
Replies: 2 comments
-
It would be good for us to understand why the |
Beta Was this translation helpful? Give feedback.
-
Sorry for the delay. I haven't been able to build another geometry to follow up this example. The grid is a voronoi grid, built in algomesh and then loaded to GWV to export the Modflow USG packages. The default setup in GWV was used to do the export. The flopy version i'm using is 3.9.3, and this is the code im using to display the cross section: import numpy as np ws = Path(r"C:/Users/Gonzalo/Documents/grid_view/Modflow_data") fig = plt.figure(figsize=(8, 8)) I checked the GSF file and has this structure: UNSTRUCTURED Then: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to obtain clean cross sections of a MfUsg Model with a Voronoi grid (built in algomesh)?
I'm currently loading the geometry from the .gsf file with the UnstructuredGrid.from_gridspec() function, but that ends up in sections that are not representative (for some reason, additional horizontal lines appear that are not representative of my layers)
Loading the geometry from the flopy.mfusg.MfUsg.load() - the, ml.modelgrid, returns the following error:
File ~\anaconda3\Lib\site-packages\flopy\discretization\unstructuredgrid.py:373 in xyzvertices
self._build_grid_geometry_info()
File ~\anaconda3\Lib\site-packages\flopy\discretization\unstructuredgrid.py:716 in _build_grid_geometry_info
vertexdict = {int(v[0]): [v[1], v[2]] for v in self._vertices}
TypeError: 'NoneType' object is not iterable"
Is there any function or something I could work around to get the clean cross sections I would get from working with the MF6 export of the DISU package?
Thank you!!!
Beta Was this translation helpful? Give feedback.
All reactions