xugrid.Ugrid2d.from_structured_intervals1d#

static Ugrid2d.from_structured_intervals1d(x_intervals: ndarray, y_intervals: ndarray, name: str = 'mesh2d') Ugrid2d[source]#

Create a Ugrid2d topology from a structured topology based on 1D intervals.

Parameters:
  • x_intervals (np.ndarray of shape (M + 1,)) – x-coordinate interval values for N row and M columns.

  • y_intervals (np.ndarray of shape (N + 1,)) – y-coordinate interval values for N row and M columns.

  • name (str)