flopy.utils.faceutil module
Face utilities for finding shared faces between grid cells
Get the 2D coordinates of the shared face between two cells.
Get the 3D coordinates of the shared face between two cells.
Find a shared face between two cells and return its vertex indices.
- hfb_data_to_linework(recarray: recarray, modelgrid: Grid) list[tuple[tuple[float, float], tuple[float, float]]][source]
Convert HFB barrier data to line segments representing shared cell faces.
- is_vertical(mg: Grid, cellid1: tuple[int, ...], cellid2: tuple[int, ...]) bool[source]
Determine if a 3D face is horizontal (between vertically stacked cells) or vertical (between laterally adjacent cells).
For structured (DIS) and vertex (DISV) grids, uses cellid structure to determine orientation. For unstructured (DISU) grids, prefers to use the ihc (horizontal connection indicator) array if available, falling back to geometric analysis of shared face z-coordinates.