bfieldtools.mesh_impedance.mutual_inductance_matrix¶
-
bfieldtools.mesh_impedance.
mutual_inductance_matrix
(mesh1, mesh2, Nchunks=None, quad_degree=1, approx_far=True, margin=2)¶ Calculate a mutual inductance matrix for hat basis functions (stream functions) between two surface meshes.
- Parameters
- mesh1: Trimesh mesh object for mesh 1
- mesh2: Trimesh mesh object for mesh 2
- Nchunks: int
Number of serial chunks to divide the computation into
- quad_degree: int >= 1
Quadrature degree (Dunavant scheme) to use. Self-inductance requires higher degree than mutual inductance
- approx_far: Boolean (True)
If True, use approximate calculation for triangles that far from the source triangles using a simple quadrature (see integrals.triangle_potential_approx)
- margin: float
Cut-off distance for “far” points measured in mean triangle side length
- Returns
- M: (Nvertices1 x Nvertices2) array
Mutual inductance matrix between mesh1 and mesh2