simpeg.electromagnetics.static.resistivity.receivers.Dipole.getP#
- Dipole.getP(mesh, projected_grid, transpose=False)[source]#
Get projection matrix from mesh to receivers
- Parameters:
- mesh
discretize.base.BaseMesh
The mesh on which the discrete set of equations is solved
- projected_grid
str
Tensor locations on the mesh being interpolated from. projected_grid must be one of:
‘Ex’, ‘edges_x’ -> x-component of field defined on x edges
‘Ey’, ‘edges_y’ -> y-component of field defined on y edges
‘Ez’, ‘edges_z’ -> z-component of field defined on z edges
‘Fx’, ‘faces_x’ -> x-component of field defined on x faces
‘Fy’, ‘faces_y’ -> y-component of field defined on y faces
‘Fz’, ‘faces_z’ -> z-component of field defined on z faces
‘N’, ‘nodes’ -> scalar field defined on nodes
‘CC’, ‘cell_centers’ -> scalar field defined on cell centers
‘CCVx’, ‘cell_centers_x’ -> x-component of vector field defined on cell centers
‘CCVy’, ‘cell_centers_y’ -> y-component of vector field defined on cell centers
‘CCVz’, ‘cell_centers_z’ -> z-component of vector field defined on cell centers
- transposebool,
default
=False
Return the transpose of the projection matrix
- mesh
- Returns:
scipy.sparse.csr_matrix
P, the interpolation matrix