resqpy.grid_surface.column_bisector_from_faces
- resqpy.grid_surface.column_bisector_from_faces(grid_extent_ji: Tuple[int, int], j_faces: ndarray, i_faces: ndarray) ndarray
Returns a numpy bool array denoting the bisection of the top layer of the grid by the curtain face sets.
- Parameters:
grid_extent_ji (
pairofint) – the shape of a layer of the gridj_faces (
numpy bool arrays) – True where an internal grid face forms part of the bisecting surface, shaped for a single layeri_faces (
numpy bool arrays) – True where an internal grid face forms part of the bisecting surface, shaped for a single layer
- Returns:
numpy bool array of shape grid_extent_ji, set True for cells on one side of the face sets; set False for cells on othe side
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 the False part; the resulting array is suitable for use as a grid property with indexable element of columns; the array is set True for the side of the curtain that contains cell [0, 0]