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.ndarrayordiscretize.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
- (