hydromodpy.solver.modflow_grid.solver_mesh#

Unified solver mesh abstraction for structured and unstructured grids.

SolverMesh is the single grid object that traverses the entire solver pipeline. It wraps a 2D HydroMesh (planar geometry) together with layer elevations, providing everything the solver needs to build MODFLOW DIS or DISV packages.

All solver code receives a SolverMesh - never raw FloPy grids or explicit (nlay, nrow, ncol) tuples. The structured/unstructured distinction is handled internally and exposed via is_structured.

Classes

SolverMesh(planar_mesh, top, botm, inactive_mask)

Solver-agnostic 2D+layers mesh.