hydromodpy.spatial.mesh.adapters.flopy_adapter#

Adapters between HydroMesh and flopy grid objects.

The two main pathways:

  1. from_flopy_structured - read a flopy StructuredGrid into a HydroMesh (preserving the structured_shape hint).

  2. to_flopy_disv_args - export a planar HydroMesh as the keyword arguments needed by flopy.mf6.ModflowGwfdisv (vertices, cell2d, top, botm).

Functions

from_flopy_structured(sgrid)

Convert a flopy StructuredGrid into a 2D HydroMesh.

to_flopy_disv_args(hydro_mesh, *, top, botm)

Build flopy DISV keyword arguments from a 2D HydroMesh.