simpeg.maps.InjectActiveEdges#

class simpeg.maps.InjectActiveEdges(mesh, active_edges=None, value_inactive=0.0, nE=None)[source]#

Bases: IdentityMap

Map active edges model to all edges of a mesh.

The InjectActiveEdges class is used to define the mapping when the model consists of diagnostic property values defined on a set of active mesh edges; e.g. edges below topography, z-edges only. For a discrete set of model parameters \(\mathbf{m}\) defined on a set of active edges, the mapping \(\mathbf{u}(\mathbf{m})\) is defined as:

\[\mathbf{u}(\mathbf{m}) = \mathbf{Pm} + \mathbf{d}\, m_\perp\]

where \(\mathbf{P}\) is a (nE , nP) projection matrix from active edges to all mesh edges, and \(\mathbf{d}\) is a (nE , 1) matrix that projects the inactive edges value \(m_\perp\) to all mesh edges.

Parameters:
meshdiscretize.BaseMesh

A discretize mesh

active_edgesnumpy.ndarray

Active edges array. Can be a boolean numpy.ndarray of length mesh.nE or a numpy.ndarray of int containing the indices of the active edges.

value_inactivefloat or numpy.ndarray

The physical property value assigned to all inactive edges in the mesh.

Attributes

active_edges

Return indices of the edges.

is_linear

Determine whether or not this mapping is a linear operation.

mesh

The mesh used for the mapping

nP

Number of parameters the model acts on.

shape

Return dimensions of the mapping.

value_inactive

Return physical property value defined for all inactive edges.

Methods

deriv(m[, v])

Return derivative of the mapping with respect to the input parameters.

dot(map1)

Multiply two mappings to create a simpeg.maps.ComboMap.

inverse(u)

Compute the inverse projection operation.

test([m, num, random_seed])

Derivative test for the mapping.