hydromodpy.spatial.mesh.hydro_mesh#

Unified mesh data container for HydroModPy.

HydroMesh is a thin, frozen data object that every mesh-producing or mesh-consuming module can accept or return. It follows the meshio data model (vertices + connectivity + per-cell / per-point data dictionaries) so that round-trips through meshio are lossless, while remaining solver-agnostic.

Whether the mesh is a regular structured grid or an irregular triangulation is expressed by the cell types stored in cell_blocks and the optional structured_shape hint.

Classes

CellBlock(cell_type, connectivity)

One homogeneous block of cells sharing the same geometry type.

HydroMesh(vertices, cell_blocks[, ...])

Unified mesh pivot for structured and unstructured grids.