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
ordiscretize.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_value
float
,optional
Background physical property value.
- block_value
float
,optional
Block physical property value
- cell_centers(
- Returns
- (
n_cells
)numpy.ndarray
Physical property model defined at the cell centers
- (