SimPEG.regularization.RegularizationMesh#
- class SimPEG.regularization.RegularizationMesh(mesh, active_cells=None, **kwargs)[source]#
- Bases: - BaseSimPEG- Regularization Mesh - The - RegularizationMeshclass 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 of- RegularizationMesh. The operators are instead constructed (and sometimes stored) when called as a property of the mesh. The- RegularizationMeshclass is built using much of the functionality from the- discretize.operators.differential_operators.DiffOperatorsclass. However, operators constructed using the- RegularizationMeshclass have been modified to act only on interior faces and active cells in the inversion, thus reducing computational cost.- Parameters:
- meshdiscretize.base.BaseMesh
- Mesh on which the discrete set of model parameters are defined. 
- active_cellsNone, (n_cells, )numpy.ndarrayofbool
- 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. - Number of active cells. - Volumes of active mesh cells. - regularization_type