resqpy.grid_surfaceΒΆ

Functions relating to intsection of resqml grid with surface or trajectory objects.

Classes

GridSkin

Class of object consisting of outer skin of grid (not a RESQML class in its own right).

Functions

bisector_from_faces

Returns a numpy bool array denoting the bisection of the grid by the face sets.

bisector_from_faces_new

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

column_bisector_from_faces

Returns a numpy bool array denoting the bisection of the top layer of the grid by the curtain face sets.

create_column_face_mesh_and_surface

Creates a Mesh and corresponding Surface representing a column face.

find_faces_to_represent_surface

Returns a grid connection set containing those cell faces which are deemed to represent the surface.

find_faces_to_represent_surface_regular

Returns a grid connection set containing those cell faces which are deemed to represent the surface.

find_faces_to_represent_surface_regular_optimised

Returns a grid connection set containing those cell faces which are deemed to represent the surface.

find_faces_to_represent_surface_staffa

Returns a grid connection set containing those cell faces which are deemed to represent the surface.

find_first_intersection_of_trajectory_with_cell_surface

Return first intersection with cell's surface found along a trajectory.

find_first_intersection_of_trajectory_with_layer_interface

Returns info about the first intersection of well trajectory(s) with layer interface.

find_first_intersection_of_trajectory_with_surface

Returns xyz and other info of the first intersection of well trajectory with surface.

find_intersection_of_trajectory_interval_with_column_face

Searches for intersection of a single trajectory segment with an I or J column face.

find_intersections_of_trajectory_with_layer_interface

Returns an array of column indices and an array of xyz of intersections of well trajectory with layer interface.

find_intersections_of_trajectory_with_surface

Returns an array of triangle indices and an array of xyz of intersections of well trajectory with surface.

first_true

Returns the index + 1 of the first True value in the array.

generate_surface_for_blocked_well_cells

Returns a surface or list of surfaces representing the faces of the cells visited by the well.

generate_torn_surface_for_layer_interface

Returns a Surface object generated from the grid layer interface points.

generate_torn_surface_for_x_section

Returns a Surface object generated from the grid cross section points.

generate_untorn_surface_for_layer_interface

Returns a Surface object generated from the grid layer interface points after any faults are 'healed'.

generate_untorn_surface_for_x_section

Returns a Surface object generated from the grid cross section points for an unfaulted grid.

get_boundary

Cretaes a dictionary of the indices that bound the surface (where the faces are True).

intersect_numba

Finds the faces that intersect the surface in 3D.

point_is_within_cell

Returns True if point xyz is within cell kji0, but not on its surface.

populate_blocked_well_from_trajectory

Populate an empty blocked well object based on the intersection of its trajectory with a grid.

seed_array

Sets values of the array True up until a face is hit in each direction.

trajectory_grid_overlap

Returns True if there is some overlap of the xyz boxes for the trajectory and grid, False otherwise.

where_true

Jitted NumPy 'where' function to improve performance on subsequent calls.