discretize.CylindricalMesh.get_interpolation_matrix_cartesian_mesh

CylindricalMesh.get_interpolation_matrix_cartesian_mesh(Mrect, location_type='cell_centers', location_type_to=None, **kwargs)[source]

Construct projection matrix from CylindricalMesh to other mesh.

This method is used to construct a sparse linear interpolation matrix from gridded locations on the cylindrical mesh to gridded locations on a different mesh type. That is, an interpolation from the centers, nodes, faces or edges of the cylindrical mesh to the centers, nodes, faces or edges of another mesh. This method is generally used to interpolate from cylindrical meshes to meshes defined in Cartesian coordinates; e.g. TensorMesh, TreeMesh or CurvilinearMesh.

Parameters
Mrectdiscretize.base.BaseMesh

the mesh we are interpolating onto

location_type{‘CC’, ‘N’, ‘Ex’, ‘Ey’, ‘Ez’, ‘Fx’, ‘Fy’, ‘Fz’}

gridded locations of the cylindrical mesh.

location_type_to{None, ‘CC’, ‘N’, ‘Ex’, ‘Ey’, ‘Ez’, ‘Fx’, ‘Fy’, ‘Fz’}

gridded locations being interpolated to on the other mesh. If None, this method will use the same type as location_type.

Returns
scipy.sparse.csr_matrix

interpolation matrix from gridded locations on cylindrical mesh to gridded locations on another mesh