SimPEG.regularization.RegularizationMesh#
- class SimPEG.regularization.RegularizationMesh(mesh, active_cells=None, **kwargs)[source]#
Bases:
BaseSimPEG
Regularization Mesh
The
RegularizationMesh
class is used to construct differencing and averaging operators for the objective function(s) defining the regularization. In practice, these operators are not constructed by creating instances ofRegularizationMesh
. The operators are instead constructed (and sometimes stored) when called as a property of the mesh. TheRegularizationMesh
class is built using much of the functionality from thediscretize.operators.differential_operators.DiffOperators
class. However, operators constructed using theRegularizationMesh
class have been modified to act only on interior faces and active cells in the inversion, thus reducing computational cost.- Parameters:
- mesh
discretize.base.BaseMesh
Mesh on which the discrete set of model parameters are defined.
- active_cells
None
, (n_cells
, )numpy.ndarray
of
bool Boolean array defining the set of mesh cells that are active in the inversion. If
None
, all cells are active.
- mesh
Attributes
Projection matrix from active cells to all mesh cells.
Projection matrix from active x-faces to all x-faces in the mesh.
Projection matrix from active y-faces to all y-faces in the mesh.
Projection matrix from active z-faces to all z-faces in the mesh.
Active cells on the regularization mesh.
Averaging operator from active x-faces to active cell centers.
Averaging operator from active y-faces to active cell centers.
Averaging operator from active z-faces to active cell centers.
Averaging operator from active cell centers to active x-faces.
Averaging operator from active cell centers to active y-faces.
Averaging operator from active cell centers to active z-faces.
Averaging operator from faces to cell centers.
Smallest dimension (i.e.
cell_gradient_x.cellDiffx has been deprecated.
cell_gradient_y.cellDiffy has been deprecated.
cell_gradient_z.cellDiffz has been deprecated.
Cell center distance array along the x-direction.
Cell center distance array along the y-direction.
Cell center distance array along the z-direction.
Cell gradient operator (cell centers to faces).
Cell-centered x-derivative operator on active cells.
Cell-centered y-derivative operator on active cells.
Cell-centered z-derivative operator on active cells.
Dimension of regularization mesh.
Number of active cells.
Volumes of active mesh cells.
regularization_type