SimPEG.utils.model_builder.create_block_in_wholespace#

SimPEG.utils.model_builder.create_block_in_wholespace(cell_centers, p0, p1, background_value=0.0, block_value=1.0)[source]#

Construct cell-centered model comprised of a block in a wholespace.

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

A mesh or its gridded cell center locations

p0(dim) numpy.ndarray

Bottom southwest corner of the block

p1(dim) numpy.ndarray

Top northeast corner of the block

background_valuefloat, optional

Background physical property value.

block_valuefloat, optional

Block physical property value

Returns:
(n_cells) numpy.ndarray

Physical property model defined at the cell centers