simpeg.utils.model_builder.add_block#
- simpeg.utils.model_builder.add_block(cell_centers, model, p0, p1, prop_value)[source]#
Add a homogeneous block to an existing cell centered model
- Parameters:
- cell_centers(
n_cells
,dim
)numpy.ndarray
ordiscretize.base.BaseMesh
A mesh or its gridded cell center locations
- model(
n_cells
)numpy.ndarray
Cell-centered model. Currently, this is only implemented for isotropic properties.
- p0(
dim
)numpy.ndarray
Bottom southwest corner of the block
- p1(
dim
)numpy.ndarray
Top northeast corner of the block
- prop_value
float
Physical property value assigned to the block
- cell_centers(
- Returns:
- (
n_cells
)numpy.ndarray
The updated cell-centered model which includes the block
- (
Galleries and Tutorials using simpeg.utils.model_builder.add_block
#
Maps: ComboMaps