bfieldtools.integrals.gamma0

bfieldtools.integrals.gamma0(R, reg=1e-13, symmetrize=True)

1/r integrals over the edges of a triangle called gamma_0 (line charge potentials).

NOTE: MAY NOT BE VERY PRECISE FOR POINTS DIRECTLY AT TRIANGLE EDGES.

Parameters
Rndarray (…, N_triverts, xyz)

displacement vectors (r-r’) between Neval evaluation points (r) and the 3 vertices of the Ntri triangles/triangle.

reg: float, a small value added to the arguments of the logarithm,

regularizes the values very close to the line segments

symmetrize: recalculates the result for by mirroring

the evaluation points with respect the line segment mid point to get rid off the badly behaving points on the negative extension of the line segment

Returns
res: array (Neval, Nverts)

The analytic integrals for each vertex/edge