bfieldtools.mesh_magnetics.magnetic_field_coupling¶
-
bfieldtools.mesh_magnetics.
magnetic_field_coupling
(mesh, r, Nchunks=None, quad_degree=1, analytic=False)¶ Computes the coupling matrix which gives the magnetic field at target points due to currents (stream function) on a surface mesh.
- Parameters
- mesh: Trimesh mesh object
mesh describing the geometry of the field source
- r: ndarray (Np, 3)
evalution points
- quad_degree: int >= 1
Quadrature degree (Dunavant scheme) to use.
- analytic: boolean
compute field using analytic formula (True) or quadrature (False)
- Returns
- C: ndarray (Np, 3, Nvertices)
Coupling matrix corresponding to a mapping from a stream function on the mesh to B-field at the evaluation points