bfieldtools.mesh_magnetics.scalar_potential_coupling¶
-
bfieldtools.mesh_magnetics.
scalar_potential_coupling
(mesh, r, Nchunks=None, multiply_coeff=False, approx_far=False, margin=3)¶ Coupling matrix from a stream function on a mesh to scalar potential using analytic integrals.
- 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
- multiply_coeff: boolean
If True, multiply result by mu_0/(4*pi)
- approx_far: boolean,
approximate the potential using simple quadrature (see integrals.potential_dipoles) for points far from the source triangles
- margin: float
cut-off distance for “far” points measured in mean triangle side length.
- Returns
- U: ndarray (Np, Nvertices)
Coupling matrix corresponding to a mapping from a stream function on the mesh to scalar potential at the evaluation points