simpeg.electromagnetics.viscous_remanent_magnetization.receivers.Point.getP#

Point.getP(mesh, projected_grid='CC')[source]#

Get projection matrix from mesh to receivers

Parameters:
meshdiscretize.BaseMesh

A discretize mesh

projected_gridstr

Define what part of the mesh (i.e. edges, faces, centers, nodes) to project from. 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
Returns:
scipy.sparse.csr_matrix

P, the interpolation matrix