reservoirflow.grids.RegularCartesian.get_cells_d#
- RegularCartesian.get_cells_d(dir, boundary: bool = True, fshape: bool = False)#
Returns cells dimensional meshgrid.
- Parameters:
dir (str) – direction str in [‘x’, ‘y’, ‘z’].
boundary (bool, optional) – include boundary cells.
fshape (bool, optional) – reshape to flow shape instead of flatten.
- Returns:
array of dx, dy, or dz based on dir argument.
- Return type:
ndarray