One common approach to computing the magnetic field produced by a filamentary current-carrying coil is to approximate the coil as a series of straight segments. The Biot–Savart field from each straight segment is analytically known. However, if the endpoints of the straight segments are chosen to lie on the coil, then the accuracy of the Biot–Savart computation is generally only the second order in the number of endpoints. We propose a simple modification: shift each end point of the coil in the outward normal direction by an amount proportional to the local curvature. With this modification, the Biot–Savart accuracy increases to the fourth order and the numerical error is dramatically reduced for a given number of discretization points.

1.
T. S.
Pedersen
,
M.
Otte
,
S.
Lazerson
,
P.
Helander
,
S.
Bozhenkov
,
C.
Biedermann
,
T.
Klinger
,
R. C.
Wolf
, and
H. S.
Bosch
, “
Confirmation of the topology of the Wendelstein 7-X magnetic field to better than 1:100,000
,”
Nat. Commun.
7
,
13493
(
2016
).
2.
See
S.
Lazerson
,
J.
Schmitt
,
C.
Zhu
,
J.
Breslau
, and
All STELLOPT Developers
, https://www.osti.gov//servlets/purl/1617636 for “
STELLOPT (Computer Software)
” (
2020
).
3.
C.
Zhu
,
S. R.
Hudson
,
Y.
Song
, and
Y.
Wan
, “
New method to design stellarator coils without the winding surface
,”
Nucl. Fusion
58
,
016008
(
2017
).
4.
L.
Greengard
and
V.
Rokhlin
, “
A new version of the fast multipole method for the laplace equation in three dimensions
,”
Acta Numer.
6
,
229
269
(
1997
).
5.
It is well known that the Biot–Savart integral has zero curl in regions where J=0, as predicted by Ampere's law. However, the integrand of the Biot–Savart law has non-zero curl even where J=0. Therefore, in contrast with many other methods (e.g., quadrature, discontinuous piecewise linear), the explicit construction of a closed filamentary curve ensures that the resulting magnetic field is curl-free to machine precision.
6.
J. D.
Hanson
and
S. P.
Hirshman
, “
Compact expressions for the Biot–Savart fields of a filamentary segment
,”
Phys. Plasmas
9
,
4410
4412
(
2002
).
7.
L.
Urankar
, “
Vector potential and magnetic field of current-carrying finite arc segment in analytical form, part I: Filament approximation
,”
IEEE Trans. Magn.
16
,
1283
1288
(
1980
).
8.
L.
Urankar
, “
Vector potential and magnetic field of current-carrying finite elliptic arc segment in analytical form
,”
Z. Naturforsch., A
40
,
1069
1074
(
1985
).
9.
L.
Urankar
, “
Vector potential and magnetic field of current-carying finite arc segment in analytical form, part II: Thin sheet approximation
,”
IEEE Trans. Magn.
18
,
911
917
(
1982
).
10.
L.
Urankar
, “
Vector potential and magnetic field of current-carrying finite arc segment in analytical form, part III: Exact computation for rectangular cross section
,”
IEEE Trans. Magn.
18
,
1860
1867
(
1982
).
11.
L.
Urankar
, “
Vector potential and magnetic field of current-carrying finite arc segment in analytical form, part IV: General three-dimensional current density
,”
IEEE Trans. Magn.
20
,
2145
2150
(
1984
).
12.
L.
Urankar
, “
Vector potential and magnetic field of current-carrying circular finite arc segment in analytical form. V. Polygon cross section
,”
IEEE Trans. Magn.
26
,
1171
1180
(
1990
).
13.
J.-C.
Suh
, “
The evaluation of the Biot–Savart integral
,”
J. Eng. Math.
37
,
375
395
(
2000
).
14.
M.
Fontana
,
Integration Methods for the Calculation of the Magnetostatic Field Due to Coils
(
Chalmers Finite Element Center, University of Chalmers
,
Göteborg
,
2001
).
15.
S. I.
Babic
and
C.
Akyel
, “
An improvement in the calculation of the magnetic field for an arbitrary geometry coil with rectangular cross section
,”
Int. J. Numer. Modell.
18
,
493
504
(
2005
).
16.
A.
Nunes
,
O.
Chadebec
,
P.
Kuo-Peng
,
P.
Dular
, and
B.
Cucco
, “
Contribution on the source field calculation through the Biot-Savart equation using curvilinear elements and an adaptive process
,”
Prog. Electromagn. Res. C
88
,
145
161
(
2018
).
17.
H.
Wobig
,
E.
Harmeyer
,
F.
Herrnegger
, and
J.
Kisslinger
,
The Magnetic Field of Modular Coils
(
IPP Report, Max Planck Institute for Plasma Physics
,
2009
).
18.
N.
McGreivy
,
S. R.
Hudson
, and
C.
Zhu
, “
Optimized finite-build stellarator coils using automatic differentiation
,” arXiv:2009.00196 (
2020
).
19.
See
J.
van Nugteren
and
N.
Deelen
, https://gitlab.com/Project-Rat for “
Project Rat
” (
2020
).
You do not currently have access to this content.