resqpy.olio.grid_functionsΒΆ

Miscellaneous functions relating to grids.

Functions

actual_pillar_shape

Returns 'curved', 'straight' or 'vertical' for shape of pillar points.

columns_to_nearest_split_face

Return an int array of shape (NJ, NI) being number of cells to nearest split edge.

determine_corp_extent

Returns extent of grid derived from 7D corner points with all cells temporarily in I.

determine_corp_ijk_handedness

Determine true ijk handedness from corner point data in pagoda style 7D array; returns 'right' or 'left'.

infill_block_geometry

Scans logically vertical columns of cells setting depth (& thickness) of inactive cells.

left_right_foursome

Returns (2, 2) bool numpy array indicating which columns around a primary pillar are to the right of a line.

random_cell

Returns a random cell's (k,j,i) tuple for a cell with non-zero lengths on all 3 primary edges.

resequence_nexus_corp

Reorders corner point data in situ, to handle bizarre nexus orderings.

translate_corp

Adjusts x and y values of corner points by a constant offset.

triangles_for_cell_faces

Returns numpy array of shape (3, 2, 4, 3, 3) with axes being kji, -+, triangle within face, triangle corner, xyz.