bfieldtools.mesh_calculus.divergence

bfieldtools.mesh_calculus.divergence(vecs, mesh)

Divergence mapping applied to tangential vector field ‘vecs’

Parameters
vecs: ndarray (3, Nfaces)

vector field at mesh faces

Returns
ndarray (Nverts,)

Divergence applied on the vector field