AMPERe: an exactly divergence-free quadrature-by-expansion evaluator for near-surface Biot–Savart and virtual-casing fields in fusion geometries
Authors:
Preprint
- 25 October 2026
- preprint
- Published by Elsevier in SSRN Electronic Journal
Abstract
Accurate magnetic-field evaluation on and near current-carrying surfaces is a recurring computational bottleneck in magnetic-confinement fusion. As targets approach the source surface, Biot–Savart and virtual-casing kernels become singular, causing standard Gauss–Legendre and upsampled trapezoidal quadratures to lose accuracy. We introduce AMPERe, a quadrature-by-expansion (QBX) evaluator for vector magnetostatic kernels on general three-dimensional, non-axisymmetric tokamak and stellarator geometries. The method develops a spherical-harmonic QBX formulation for the vector Biot–Savart and virtualcasing (Stratton–Chu) fields and expresses the resulting magnetic field as the analytic curl of a regular-solid-harmonic vector potential. This construction yields a divergence-free discrete field at every expansion order, provides analytic derivatives, and enables an a-priori separation of truncation, quadrature, and geometric errors. On the rotating-ellipse benchmark of Malhotra et al. [1], QBX maintains a relative error of 2–5 × 10^{-6} throughout the near-surface regime at distance-independent cost, whereas upsampled trapezoidal quadrature exhibits O(1) errors and requires node counts scaling as (h/d)^2. AMPERe is implemented as a header-only, performance-portable Kokkos library supporting CPU and GPU backends, with target-specific and local-correction accelerations validatedagainst the baseline. The method is further demonstrated on realistic Wendelstein 7-X configurations, including sheet-current and virtual-casing field evaluations.Keywords
This publication has 35 references indexed in Scilit:
- A fast algorithm with error bounds for Quadrature by ExpansionJournal of Computational Physics, 2018
- A local target specific quadrature by expansion method for evaluation of layer potentials in 3DJournal of Computational Physics, 2018
- Fast algorithms for Quadrature by Expansion I: Globally valid expansionsJournal of Computational Physics, 2017
- Error estimation for quadrature by expansion in layer potential evaluationAdvances in Computational Mathematics, 2016
- Fast Ewald summation for Stokesian particle suspensionsInternational Journal for Numerical Methods in Fluids, 2014
- ASCOT: Solving the kinetic equation of minority particle species in tokamak plasmasComputer Physics Communications, 2014
- Quadrature by expansion: A new method for the evaluation of layer potentialsJournal of Computational Physics, 2013
- On the evaluation of layer potentials close to their sourcesJournal of Computational Physics, 2008
- Inverse Acoustic and Electromagnetic Scattering Theory1998
- Boundary Element Techniques1984