bfieldtools.mesh_magnetics.magnetic_field_coupling_analytic¶
-
bfieldtools.mesh_magnetics.
magnetic_field_coupling_analytic
(mesh, r, Nchunks=None)¶ Computes the coupling matrix which gives the magnetic field at target points due to currents (stream function) on a surface mesh using analytical formulas.
- Parameters
- mesh: Trimesh mesh object
mesh describing the geometry of the field source
- r: ndarray (Np, 3)
evaluation points
- Nchunks: int
number of chunks used in the calculation for saving memory
- 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