Mesh Architecture#

How HydroModPy turns a watershed support into a solver-ready mesh: the catchment-conformal Gmsh pipeline, the structured-grid path used by MODFLOW-family solvers, and the cross-mesh pivot format consumed by plotting and I/O.

For higher-level runtime handoffs from process objects to solver adapters, see Process Architecture and Simulation Orchestration Class Diagram. For the scientific side of mesh choice, see Mesh And Spatial Support.

Pages#

Catchment mesh architecture

The dedicated mesh_catchment workflow, batch loop, simulation embedding, output layout, and the conformal Gmsh meshing core.

Catchment-Mesh Architecture
Structured grid architecture

The FloPy StructuredGrid path used by MODFLOW-family solvers, the build sequence, and the SGrid / FieldParam discretization bridge.

Structured Grid Architecture
Conformal Gmsh meshing

The low-level Gmsh integration: constraint geometry, sizing callbacks, mesh-quality checks, and the boundary recovery that keeps geology and rivers honoured.

Conformal Gmsh Meshing
Mesh pivot format

The cross-mesh pivot representation consumed by plotting, I/O, and downstream postprocessing. Bridges structured and irregular supports.

Mesh Architecture Pivot