xugrid.Ugrid2d.from_structured_bounds#
- static Ugrid2d.from_structured_bounds(x_bounds: ndarray, y_bounds: ndarray, name: str = 'mesh2d') Ugrid2d [source]#
Create a Ugrid2d topology from a structured topology based on 1D bounds.
The bounds contain the lower and upper cell boundary for each cell.
- Parameters:
x_bounds (np.ndarray of shape (M, 2)) – x-coordinate bounds for N row and M columns.
y_bounds (np.ndarray of shape (N, 2)) – y-coordinate bounds for N row and M columns.
name (str)
- Returns:
grid
- Return type: