bfieldtools.mesh_calculus.divergence_matrix

bfieldtools.mesh_calculus.divergence_matrix(mesh)

Divergence of tangential vector field on mesh faces as a linear mapping.

Parameters
mesh: Trimesh object
Returns
3 sparse csc_matrices

Dx ,Dy, Dz (Nverts, Ntri) matrices