bfieldtools.mesh_calculus.mass_matrix¶
- bfieldtools.mesh_calculus.mass_matrix(mesh, lumped=False)¶
Computes mass matrix of a mesh.
- Parameters:
- mesh: Trimesh Mesh object
- lumped: Boolean
If True, use lumped approximation of mass matrix. If False (default), compute exact matrix. See Reuter et al 2009, page 3 (DOI: 10.1016/j.cag.2009.03.005)
- Returns:
- sparse csr_matrix of variable shape (see the description of laplacian_matrix)
Mass matrix