discretize.TreeMesh.get_interpolation_matrix

TreeMesh.get_interpolation_matrix(locs, location_type='CC', zeros_outside=False, **kwargs)[source]

Produces interpolation matrix

Parameters
loc(N, dim) array_like

Location of points to interpolate to

location_type: str, optional

What to interpolate

location_type can be:

  • ‘CC’ -> scalar field defined on cell centers

  • ‘Ex’ -> x-component of field defined on edges

  • ‘Ey’ -> y-component of field defined on edges

  • ‘Ez’ -> z-component of field defined on edges

  • ‘Fx’ -> x-component of field defined on faces

  • ‘Fy’ -> y-component of field defined on faces

  • ‘Fz’ -> z-component of field defined on faces

  • ‘N’ -> scalar field defined on nodes

Returns
(N, n_loc_type) scipy.sparse.csr_matrix

the interpolation matrix