simpeg.utils.model_builder.get_indices_sphere#

simpeg.utils.model_builder.get_indices_sphere(center, radius, cell_centers)[source]#

Get indices for cells whose centers lie inside a sphere

Parameters:
center(dim) numpy.ndarray

Location of the center of the sphere

radiusfloat

Radius of the sphere

cell_centers(n_cells, dim) numpy.ndarray or discretize.base.BaseMesh

A mesh or its gridded cell center locations

Returns:
array of int

Indices of the cells whose center lie within the specified sphere

Galleries and Tutorials using simpeg.utils.model_builder.get_indices_sphere#

Tensor Meshes

Tensor Meshes

Tree Meshes

Tree Meshes

2.5D Forward Simulation of a DCIP Line

2.5D Forward Simulation of a DCIP Line

DC/IP Forward Simulation in 3D

DC/IP Forward Simulation in 3D

2.5D DC Resistivity and IP Least-Squares Inversion

2.5D DC Resistivity and IP Least-Squares Inversion

3D Least-Squares Inversion of DC and IP Data

3D Least-Squares Inversion of DC and IP Data