SimPEG.regularization.SmoothnessFirstOrder#

class SimPEG.regularization.SmoothnessFirstOrder(mesh, orientation='x', reference_model_in_smooth=False, **kwargs)[source]#

Bases: SimPEG.regularization.base.BaseRegularization

Smooth Regularization. This base class regularizes on the first spatial derivative, optionally normalized by the base cell size.

Optional Inputs

Parameters
  • mesh (discretize.base.BaseMesh) – SimPEG mesh

  • mapping (IdentityMap) – regularization mapping, takes the model from model space to the space you want to regularize in

  • reference_model (numpy.ndarray) – reference model

  • active_cells (numpy.ndarray) – active cell indices for reducing the size of differential operators in the definition of a regularization mesh

  • weights (numpy.ndarray) – cell weights

  • reference_model_in_smooth (bool) – include the reference model in the smoothness computation? (eg. look at Deriv of m (False) or Deriv of (m-reference_model) (True))

  • weights – vector of cell weights (applied in all terms)

Attributes

W

Weighting matrix that takes the volumes, free weights, fixed weights and length scales of the difference operator (normalized optional).

cell_gradient

Cell gradient operator

reference_model_in_smooth

Use the reference model in the model gradient penalties.

orientation

Methods

f_m(m)

Model gradient

f_m_deriv(m)

Derivative of the model gradient