Nearfield Potential Evaluation#
After computing the density on the surface, the potential
away from or close to the boundary needs to be evaluated.
For target points close to the surface, the kernel is nearly singular. Fixed order quadrature and pure farfield expansions lose accuracy exactly where the visualized potential is often most interesting.
Local Geometry#
For a close triangular source element \(\phi(\widehat T)\), we project the target point onto the reference triangle and build a tangent triangle at the projected point:

Analytical Correction#
The singular correction is computed on \(\phi_{\mathrm{lin}}(\widehat T)\). Pulling the element integral back to the reference triangle gives
We add and subtract the tangent triangle:
The tangent triangle captures the leading local singularity. For the Laplace kernel \(G_0(x,y)=\frac{1}{4\pi|x-y|}\) this cancels the leading \(\frac{1}{r}\) behavior, leaving a bounded remainder for standard quadrature. For Helmholtz,
so the same subtraction removes the singular part and only a smooth Helmholtz correction remains. The first integral is evaluated by the exact triangle formula [GD21], the second part is evaluated using standard Gauss quadrature.
Near and Far Split#
For each target point, the surface mesh is split into far elements and near elements,
The potential is written as
The far element integrals are smooth for this target and are evaluated using FMM. The near element integrals use the analytical correction above.