bfieldtools.utils.MeshProjection

class bfieldtools.utils.MeshProjection(mesh, quad_degree)

Class for constructing projection of an arbitrary function to the hat functions of the given mesh

The constructor initializes quadrature points, point weights and vertex mappings

After the construction the method “hatfunc_innerproducts” can be called to obtain inner products of the hat functions and a given function (func)