bfieldtools.integrals.triangle_potential_uniform

bfieldtools.integrals.triangle_potential_uniform(R, tn, planar=False)

1/r potential of a uniform triangle

for original derivation see A. S. Ferguson, Xu Zhang and G. Stroink, “A complete linear discretization for calculating the magnetic field using the boundary element method,” in IEEE Transactions on Biomedical Engineering, vol. 41, no. 5, pp. 455-460, May 1994. doi: 10.1109/10.293220

Parameters
R(Neval, (Ntri), 3, 3) array

Displacement vectors (Neval, (Ntri), Ntri_verts, xyz)

tn((Ntri), 3) array

Triangle normals (Ntri, dir)

planar: boolean
If True, assume all the triangles and the evaluation points

are on the same plane (for speed), leaves out the omega term

Returns
result: result: ndarray (Neval, (Ntri))

Resultant 1/r potential for each triangle (Ntri) at the field evaluation points (Neval)