resqpy.grid_surface.bisector_from_faces_new

resqpy.grid_surface.bisector_from_faces_new(grid_extent_kji: Tuple[int, int, int], k_faces: ndarray, j_faces: ndarray, i_faces: ndarray, raw_bisector: bool) Tuple[ndarray, bool][source]

Creates a boolean array denoting the bisection of the grid by the face sets.

Parameters:
  • grid_extent_kji (Tuple[int, int, int]) – the shape of the grid.

  • k_faces (np.ndarray) – a boolean array of which faces represent the surface in the k dimension.

  • j_faces (np.ndarray) – a boolean array of which faces represent the surface in the j dimension.

  • i_faces (np.ndarray) – a boolean array of which faces represent the surface in the i dimension.

Returns:

Tuple containing

  • array (np.ndarray): boolean bisectors array where values are True for cells on the side

    of the surface that has a lower mean k index on average and False for cells on the other side.

  • is_curtain (bool): True if the surface is a curtain (vertical), otherwise False.

Notes

The face sets must form a single ‘sealed’ cut of the grid (eg. not waving in and out of the grid). Any ‘boxed in’ parts of the grid (completely enclosed by bisecting faces) will be consistently assigned to either the True or False part.