Stabilizing the singularity swap quadrature for near-singular line integrals
David Krantz, Alex H. Barnett, Anna-Karin Tornberg
TL;DR
Problem: evaluating near-singular line integrals in 3D suffers catastrophic cancellation when kernel numerators vanish. Approach: introduce target-specific translated bases (open curves: monomials; closed curves: modified Fourier) and stabilize the constant-term evaluation with a stabilized adjoint weight framework, preserving SSQ efficiency. Findings: achieves near machine-precision accuracy on prototype integrals and up to ten orders of magnitude improvement at extremely close distances with minimal overhead. Significance: enhances robustness of SSQ for scalar and tensor kernels in Stokes flow, elasticity, and related boundary-integral solvers in 3D, with applicability to 2D as well as higher-fidelity simulations of filamentary and wire-like geometries.
Abstract
Singularity swap quadrature (SSQ) is an effective method for the evaluation at nearby targets of potentials due to densities on curves in three dimensions. While highly accurate in most settings, it is known to suffer from catastrophic cancellation when the kernel exhibits both near-vanishing numerators and strong singularities, as arises with scalar double layer potentials or tensorial kernels in Stokes flow or linear elasticity. This precision loss turns out to be tied to the interpolation basis, namely monomial (for open curves) or Fourier (for closed curves). We introduce a simple yet powerful remedy: target-specific translated monomial and Fourier bases that explicitly incorporate the near-vanishing behavior of the kernel numerator. We combine this with a stable evaluation of the constant term which now dominates the integral, significantly reducing cancellation. We show that our approach achieves close to machine precision for prototype integrals, and up to ten orders of magnitude lower error than standard SSQ at extremely close evaluation distances, without significant additional computational cost.
