reservoirflow.grids.RegularCartesian.get_cell_coords#

RegularCartesian.get_cell_coords(id, boundary: bool = True)#

Returns cell/cells coordinates as tuple/list of tuples.

Parameters:
  • id (int, tuple of int) – cell id based on natural order as int. For multiple cells, tuple of int (id,id,…). Warning: providing an unhashable type (e.g. list, ndarray) is not supported and will cause TypeError.

  • boundary (bool, optional) – include boundary cells.

Returns:

cell/cells coordinates as tuple/list of tuples.

Return type:

tuple/list of tuples