You are currently viewing a new version of our website. To view the old version click .
Mathematics
  • Feature Paper
  • Article
  • Open Access

24 November 2025

Numerical Tests of Formulae for Volume Enclosed by Flux Surfaces of Integrable Magnetic Fields

and
1
Department of Statistics, University of Warwick, Coventry CV4 7AL, UK
2
Mathematics Institute, University of Warwick, Coventry CV4 7AL, UK
*
Author to whom correspondence should be addressed.
This article belongs to the Special Issue Mathematical Plasma Physics

Abstract

Numerical tests of volume formulae are presented to efficiently compute the volume enclosed between flux surfaces for integrable 3D vector fields with various degrees of symmetry. In the process, a new case is proposed and tested.
PACS:
52.55.-s; 05.45.-a
MSC:
37M99; 37-04

1. Introduction

In the design of magnetic confinement devices for plasma, it is often important to determine the volume V enclosed by a flux surface S, particularly the volume bounded by the outermost flux surface of a given class within the vacuum vessel. This is one objective function that is considered in computational optimisation of designs, e.g., []. Given the field, the volume is usually found by simple 3D integration.
An approach presented in [] derives expressions for the volume that take advantage of the invariance of S under the magnetic field B for a range of integrable cases, thereby simplifying the conventional three-dimensional integration and potentially enabling more efficient computation.
The purpose of this work is to test the volume formulae in [] numerically on relevant, non-trivial examples, in order to demonstrate the advantages or potential issues arising from their use.
The explicit example fields available for numerical testing are rather limited, as these formulae require some form of integrability, in particular the existence of a continuous family of flux surfaces and an associated label function Ψ , so we restrict our attention to example fields that are integrable. This is, however, a common assumption in the plasma physics context, e.g., [], because it holds for all non-degenerate magnetohydrostatic (MHS) fields (MHS means J × B = p for some function p, where J = curl B , and non-degenerate means p 0 except on a set of measure zero). It is also a common assumption in numerical codes for computing MHS fields and more generally MHD equilibria (but see Ref. [] for one that does not make this assumption and presents references to various ones that do).
Section 2.1 provides a brief exposition of the terminology and results from [], plus a new result that treats the case of integrable magnetic fields for which the associated symmetry preserves some density that is not necessarily constant. Section 2.2 describes the analytical magnetic fields used to test these results. Section 3 presents our numerical findings, which are discussed in Section 4, and the conclusions are summarised in Section 5.

2. Materials and Methods

2.1. Volume Enclosed by Flux Surfaces

A magnetic field is a C 1 vector field B on an orientable three-dimensional manifold M that preserves a volume form Ω (for the standard Euclidean volume, this is the condition div B = 0 ).
We will formulate most of our exposition in the language of exterior calculus because it makes many concepts much simpler to express and some results more evident. It is less familiar to plasma physicists, however, to whom this work is particularly directed, so we translate into vector calculus language in many places.
In the language of exterior calculus, to a magnetic field B, an associated flux 2-form can be defined as β = i B Ω , allowing the volume-preservation condition to be written as d β = 0 (i.e., β is closed: its integral over any closed surface contractible to a point is zero). The vector calculus interpretation of β is that acting on a pair of vectors ξ and η , β ( ξ , η ) = B · d S for the area element d S given by the oriented parallelogram spanned by ξ and η . So β can be integrated over a surface S by chopping S into little parallelograms, summing their contributions and taking the limit. The exterior derivative d β of β is defined to be the 3-form, acting on oriented triples of vectors, that gives the sum of β over the faces of the parallelepiped they span, oriented outwards. The exterior derivative d on 1-forms is defined similarly, and on functions f : R 3 R , d f is just the ordinary derivative. A tutorial on the use of differential forms in plasma physics can be found in [].
The fields relevant to the present work, and to much of plasma physics, typically assume the slightly stronger condition that β is exact, i.e., β = d α for some 1-form α . This is equivalent to requiring the existence of a vector potential A such that B = × A , where α = A , the 1-form that when acting on any vector ξ produces A ( ξ ) = A · ξ . Another way to define exactness of β is that S β = 0 for any closed surface S, not only contractible ones.
An invariant torus of B is called a flux surface. A magnetic field is called integrable if there is a C 1 function Ψ (called a flux function or flux surface label) such that d Ψ 0 almost everywhere (a.e.) and i B d Ψ = 0 (in vector calculus, Ψ 0 a.e. and B · Ψ = 0 , but the property does not require the Riemannian metric implicit in ∇ and ·, which is why we prefer to express it using differential forms). For an integrable field, the level sets of Ψ are invariant under B. If B and d Ψ are nowhere-zero on a compact component of a level set, then it is a torus and hence a flux surface. Furthermore, it has a neighbourhood that is foliated by flux surfaces. From KAM theory, if B is non-integrable but smooth enough, then various simple conditions imply a set of positive volumes of flux surfaces, but we will not be using that here.
To quantify the volume V enclosed by a flux surface S, once the surface has been computed, the enclosed volume can be obtained via a 3D integral V Ω . This can be reduced to a 2D integral S ν for some 2-form ν if the manifold M is contractible (i.e., Ω = d ν for some 2-form ν and then the result follows by Stokes’ theorem). For example, if  Ω = d x d y d z , as for a standard volume in Cartesian coordinates, then one can take ν = z d x d y , and integrating this over a closed surface corresponds to integrating the height difference between the points of the surface above a given point ( x , y ) of the horizontal plane, with respect to horizontal area. However, this direct approach does not take into account the invariance of S under B.
The first formula presented in [] for computing the volume that exploits this invariance is:
V = D T β ,
where D is a disk transverse to B whose boundary is on the flux surface S, and  T is the first-return time to D along the fieldline flow x ˙ = B ( x ) . Although (1) is a 2D integral, it involves computing the return-time function, which effectively makes the integration 3D, so there is no real computational reduction (in the Appendix A, however, a way to reduce the computation of V from (1) as a function of Ψ for integrable fields is given).
So we are restricted to a sequence of special cases of magnetic field, for which the integration can be reduced. In the two strongest cases, it is reduced to 2D; in the other two cases, it is reduced to a bit more than 2D, in a sense to be described.
All cases considered are integrable, but they differ in their degree of symmetry. To explain this, note that if B is integrable and non-zero a.e., then there is a vector field u independent of B a.e. such that L u β = 0 , where L u denotes the Lie derivative along u, that is, u is a symmetry of β . The expression of this in vector calculus language is curl ( B × u ) + ( div B ) u = 0 . For example, if B is integrable (and divergence-free, always assumed), with flux function Ψ , one can take u = B × Ψ / | B | 2 + f B using any Riemannian metric and any function f. But there might be values of u which preserve more than just β . For example, u might also preserve ρ Ω ( L u ( ρ Ω ) = 0 , equivalently div ( ρ u ) = 0 ) for some positive function ρ , which we call a density. Or it might preserve volume Ω (so constant density, div u = 0 ); in which case, L u B is also zero (it is equal to the commutator [ u , B ] , which can be written as curl ( B × u ) div u B + div B u ). If in addition u preserves | B | ( L u | B | = 0 , equivalently, u · | B | = 0 ), then we say u is a weak quasisymmetry of B, or it might furthermore preserve B (defined the same way as A ), at which point we say u is a quasisymmetry of B (in vector calculus, L u B = 0 is written as ( curl B ) × u + ( u · B ) = 0 ).
Note that for an integrable field, it makes sense to ask to compute not just the volume enclosed by one flux surface, but instead the whole function giving the volume V ( Ψ ) enclosed as a function of Ψ . Our methods will compute this by finding d V / d Ψ as a 1D integral (or a bit more) and then the function V ( Ψ ) by one more integration.
The proof of (1), as well as those of Theorems 1–4, can be found in []. A subsection on a new result, Theorem 3’, and its proof, is included.
In contrast to what we have just described, we will now treat the cases in order of decreasing specialisation.

2.1.1. Quasisymmetric Fields

A quasisymmetric (QS) magnetic field B is the special case in which there exists a vector field u independent from B almost everywhere (in the region of interest), with 
L u β = 0 , L u Ω = 0 , L u B = 0 .
Expressions for these in vector calculus language were given above. Under mild additional conditions [], every orbit of u is closed and has the same period τ > 0 .
The only known analytic examples of these fields (with bounded u orbits) are axisymmetric, where u = ϕ in cylindrical coordinates (the vector field with ϕ ˙ = 1 , r ˙ = 0 , z ˙ = 0 ) (so τ = 2 π ). It is an open question whether there are any other exactly quasisymmetric fields, although fields with non-axisymmetric quasisymmetry can be constructed to a high degree of accuracy [].
The conditions L u β = 0 and L u Ω = 0 imply that i u β is a closed form, i.e., γ B × u · d l , and, along a path, γ is unchanged under continuous deformation of the path preserving the ends. Assuming there is no homological obstruction (one might want to assume that every loop is contractible to a point but is stronger than necessary and rules out toroidal geometry; it is enough to suppose that each homology class in dimension 1 can be realised by an orbit of some linear combination of u and B), this further implies that i u β is exact; i.e., there exists a function Ψ such that i u β = d Ψ ( B × u = Ψ ). It follows that both u and B are tangent to the level sets of Ψ , Ψ is a flux or a label function, and that the bounded components of the level sets are tori.
Using the volume-preserving property and the conditions in (2), ref. [] provides the following formula. Choose a u-line γ and a point x γ , then
Theorem 1.
d V = τ T ( Ψ ) d Ψ , where the return time T > 0 is the first time for which the flow of B starting at x returns to γ.
  • The return time can be proved to depend on x through only Ψ ( x ) . As computing the return time T ( Ψ ) requires a 1D integration, the entire volume calculation is thereby reduced to a 2D integral. For clarity, the return time T ( Ψ ) corresponds to the time between two successive crossings of a fieldline on S with a u-line γ , while T in (1) corresponds to the time between two crossings through a given transverse disk D.
This result generalises to the case of a magnetic field with weak quasisymmetry []; this is defined by requiring
L u β = 0 , L u Ω = 0 , L u | B | = 0 .
The only relevant consequence for the volume formula is that now the value of τ is in general a function of Ψ . The extended result is the following:
Theorem 2.
d V = τ ( Ψ ) T ( Ψ ) d Ψ .
  • Thus, the computation of the volume is still equivalent to a 2D integration. It is an open question again, however, whether there are any weak QS fields that are not axisymmetric.

2.1.2. Fields with Flux-Form Symmetry

The next case considered in [] is magnetic fields B with flux-form symmetry, defined as having a volume-preserving vector field u independent from B almost everywhere, such that L u β = 0 (recall, this means curl ( B × u ) = 0 because we are assuming div B = 0 ). Perhaps the name is insufficiently clear, because for the definition it is essential that u be volume-preserving, not just L u β = 0 , but we continue to use it. It is equivalent to require u to be a volume-preserving field that commutes with B (e.g., []). It holds for all non-degenerate MHS fields that  u = J , though all examples that we know of such fields are axisymmetric (so are already covered by Theorem 1).
Under the same homological condition, this implies again that i u β = d Ψ for some function Ψ whose level sets are invariant under both u and B. Furthermore, the commutation condition implies that ( u , B ) generates an action φ of R 2 on the flux surfaces. For each pair ( t 1 , t 2 ) R 2 and point x on a flux surface, ϕ ( t 1 , t 2 ) x is given by flowing from x for time t 1 with u and time t 2 with B, in any order because the two fields commute. This is a place where formulation in vector calculus makes it harder to reach the result, though it was achieved by Hamada []. From the condition curl ( B × u ) div u B + div B u = 0 , one has to prove that flowing along u for a time t 1 and along B for time t 2 commutes. Consequently, for each flux surface, there exists a lattice Γ R 2 of pairs t R 2 of times such that φ t = Id if and only if t Γ . Let T 1 , T 2 R 2 be generators of Γ . Form a matrix T with the vectors T 1 and T 2 as columns, and let Δ = det T , which is a function of Ψ . The volume formula for this case can then be written as
Theorem 3.
d V = Δ ( Ψ ) d Ψ .

2.1.3. Integrable Fields with Symmetry Preserving a Density

In preparing this paper, we realised that several examples, including one that we treat numerically, satisfy L u β = 0 , but with u preserving a non-constant density ρ , i.e.,  L u ( ρ Ω ) = 0 for some smooth positive function ρ . Examples of this case that are not covered by a preceding Theorem are given by the fields with helical symmetry from [], which is the example we will treat here, and MHD equilibria with flow and electrostatic potential. In the latter example, the electrostatic potential provides an integral; the symmetry field is the plasma velocity, which in general is not volume-preserving but does preserve plasma mass.
Although this case can be treated by Theorem 4 below, we have derived a potentially more efficient formula for it that we explain here.
As before, L u β = 0 plus a homological condition implies there is a flux function Ψ . The next step is to notice that u commutes with B / ρ .
Lemma 1.
L u β = 0 and L u ( ρ Ω ) = 0 imply [ u , B / ρ ] = 0 .
  • In vector calculus language, this says that curl ( B × u ) + div B u = 0 and div ( ρ u ) = 0 (together with div B = 0 assumed throughout) implies curl ( B ρ × u ) div u B ρ + div B ρ u = 0 . A vector calculus reader may prove this for themselves. We give an exterior calculus proof.
Proof. 
A standard result for commutators of vector fields yields
i [ u , B / ρ ] Ω = L u i B / ρ Ω i B / ρ L u Ω .
Recalling that i B Ω = β , the first term gives
1 ρ L u β L u ρ ρ 2 β = L u ρ ρ 2 β ,
using L u β = 0 . Next, use L u ( ρ Ω ) = 0 to obtain L u Ω = L u ρ ρ Ω . Then the second term of (4) gives L u ρ ρ 2 β , which cancels the first. As  Ω is non-degenerate, i [ u , B / ρ ] Ω = 0 implies that [ u , B / ρ ] = 0 .    □
Together with the linear independence of u and B, this implies that on any flux surface S, the pair ( u , B / ρ ) of vector fields induces an action ϕ of R 2 , and the set of pairs t R 2 of times for which the resulting ϕ t is the identity forms a lattice Γ R 2 . As for Theorem 3, let T 1 , T 2 R 2 be generators for Γ and Δ be the determinant of the matrix T they form. Furthermore, the action ϕ allows one to parametrise the flux surface by a pair of angle variables ( θ 1 , θ 2 ) modulo 1, which evolve at constant speeds with respect to the u flow and the B / ρ flow. They are called Arnol’d–Liouville (AL) coordinates [].
To relate the volume enclosed by S to its value of ψ , one more ingredient is required, namely the harmonic average ρ ^ of ρ on S, with respect to the AL coordinates ( θ 1 , θ 2 ) on it:
1 ρ ^ = S 1 ρ d θ 1 d θ 2 .
This can be computed as the limit of the average of 1 / ρ at the points of a regular subdivision of the lattice Γ ; i.e., for a large enough integer q, choose a starting point on S, flow with ( u , B / ρ ) for vector-times ( n 1 T 1 + n 2 T 2 ) / q with integers n 1 , n 2 { 0 , q 1 } , evaluate 1 / ρ there, and take the average. If everything is analytic, then by Fourier analysis the error is exponentially small in q (see [] for an entertaining exposition of this), so in practice one can expect to get away with a relatively small q. In this sense, we think of evaluating ρ ^ as only a bit more than a 1D integral.
We obtain the following theorem for the change in the volume enclosed by a flux surface for a change in the value of Ψ , numbered 3’ because its hypotheses are intermediate between those for Theorems 3 and 4 of [].
Theorem 3’.
If L u β = 0 and L u ( ρ Ω ) = 0 , then
d V = Δ ρ ^ d Ψ .
Proof. 
Recall that in AL coordinates ( θ 1 , θ 2 ) , the vector fields u and B / ρ have constant components on each flux surface. Then our key step is to notice that
Ω = Δ ρ d θ 1 d θ 2 d Ψ .
To prove this, let n be a vector field such that i n d Ψ = 1 (equivalently, n · Ψ = 1 ), e.g.,  n = Ψ / | Ψ | 2 (for an arbitrary Riemannian metric), and apply i u i B / ρ i n to both sides of (5). Applied to Ω this gives 1 ρ i u i B i n Ω (this is 1 ρ times the triple product of ( n , B , u ) ), which reduces to 1 ρ because i u i B Ω = d Ψ and i n d Ψ = 1 . Applied to d θ 1 d θ 2 d Ψ , it gives det V , where V is the matrix formed by the ( θ 1 , θ 2 ) components of u and B / ρ . Here we have again used that i n d Ψ = 1 . Now V T is the identity matrix, and so
i u i B / ρ i n Δ ρ d θ 1 d θ 2 d Ψ = 1 ρ .
Because the space of top-forms at a point is one-dimensional, the two sides of (5) are equal.
Then it follows by integration over S that d V = Δ ρ ^ d Ψ .    □
Apart from the extra factor ρ ^ , using this formula is a simple modification of the case of Theorem 3.

2.1.4. Integrable Fields

After Theorem 3, ref. [] presents a weaker version, in which L u β = 0 but u is not required to be volume-preserving, nor even to preserve a density, so it is weaker than Theorem 3’ too. This case is called integrable because it is equivalent to the existence of a flux function Ψ whose level sets are invariant (modulo the homological condition). All the previous cases are also integrable but with more conditions on the symmetry field u. The result is
Theorem 4.
Choose a closed curve γ on each flux surface, depending smoothly on Ψ. Then d V = T ¯ d Φ , where
Φ = γ A ,
and T ¯ is defined as the limiting average return time to γ of an infinitely long B-line starting at any point of γ.
  • Note that Φ is the magnetic flux across a disk spanning γ ; ref. [] gives a way to compute it if the vector potential is not given explicitly. One can compute d Φ d Ψ , so this is again in the form of evaluating d V / d Ψ . We call it a bit more than a 1D integral because evaluating the average return time is longer than a bounded 1D integral.
A question is whether there are integrable magnetic fields for which there is no choice of symmetry field u that preserves a density. Integrability implies B is conjugate to λ C for some function λ and constant vector C for each flux surface [], a conclusion that would follow if β has a symmetry field u that preserves λ Ω , so this suggests that the answer is no. Indeed, ref. [] shows that in any “toroidal component” for an integrable magnetic field, there is a choice of symmetry field that preserves a density. Their construction uses a result of [], which in turn uses a result of Calibi that does not look explicit to us, but they give explicit choices in particular contexts. For example, if  curl B preserves the same function Ψ , then u = B × Ψ / | B | 2 works, with  ρ = | B | 2 . As another example, if B has a global cross-section, then Birkhoff proved there is an angle variable ϕ that increases by 1 for each return to the section, and [] proved that there is a symmetry field u preserving ρ = L B ϕ (namely the vector field along the contours of ( ϕ , Ψ ) normalised to make i u i B Ω = d Ψ ). An interesting challenge is to work out the set of all compatible pairs ( u , ρ ) for a general integrable B-field, including at least one explicit case. A curious thing is that the construction of [] always produces a symmetry field with a rational winding ratio, whereas there are axisymmetric cases for which this is not the case. Indeed, one can add any flux function times B / ρ to u and get another symmetry preserving the same density, and this will make the winding ratio of u change continuously, in particular through irrational values.
As a result of this discussion, Theorem 4 may turn out to have little value. Nevertheless, if the construction of a compatible pair ( u , ρ ) is awkward in an example, then it might still be useful. So we also test it.

2.2. Tested Magnetic Fields

The present work considers two different kinds of magnetic fields to test the volume formulae presented in the previous section. For Theorem 1, we consider a simple axisymmetric tokamak field as in []. For Theorems 3’ and 4, we use a different integrable vector field consisting of an axisymmetric field perturbed by a single helical mode, described in [].

2.2.1. Axisymmetric Magnetic Field

As the only known quasisymmetric fields are the axisymmetric ones, our chosen example to test the quasisymmetric volume formula is axisymmetric. Taken from Section 3.2 in [], an example of an axisymmetric tokamak magnetic field in cylindrical polar coordinates ( R , ϕ , z ) , is given by contravariant components
B R = z R , B ϕ = C R 2 , B z = r R ,
in a solid torus r 2 + z 2 r 0 2 for some r 0 < 1 , with  r = R 1 , and  C > 0 . This field has a closed line for z = 0 , R = 1 , called the ‘magnetic axis’. Corresponding to the symmetry u = ϕ , the fieldlines preserve a flux function,
Ψ = 1 2 r 2 + z 2 .
The flux surfaces for this field are two-tori of minor radius 2 Ψ and major radius R 0 = 1 . Therefore the volume enclosed between a flux surface Ψ > 0 and the magnetic axis ( Ψ = 0 ) is given by a relatively simple integral that evaluates to
V = 4 π 2 Ψ .

2.2.2. Toroidal Helical Magnetic Fields

To test the volume formula of Theorem 4 for fields with only integrability, we opted to use the magnetic fields considered in [,], which correspond to perturbations of a circular tokamak field by helical modes, based on []. Readers interested in the details can refer to [,]. As it turns out, to preserve a density, however, we take the opportunity to also test Theorem 3’.
The fields considered have a circular magnetic axis of radius R 0 > 0 in the horizontal plane z = 0 . They are best described and treated in an adapted toroidal coordinate system ( ψ , ϑ , ϕ ) , which is a variant of the standard toroidal coordinates ( r , θ , ϕ ) . The latter coordinates are related to Cartesian coordinates ( x , y , z ) through
x = R sin ϕ , y = R cos ϕ , z = r sin θ ,
where
R = R 0 + r cos θ ,
for 0 r < R 0 . R represents the cylindrical radius relative to the z-axis. In these standard coordinates, the metric tensor is represented by the matrix diag ( 1 , r 2 , R 2 ) .
Following [], the adapted coordinates ( ψ , ϑ ) are introduced to simplify the restriction of the magnetic flux-form β to a poloidal section ( ϕ = constant), and through some sensible choices (like setting ψ as the toroidal magnetic flux across the poloidal disk of radius r and selecting B ϕ = B 0 R 0 / R 2 ) [,,], we get
ψ = B 0 R 0 2 1 1 r 2 R 0 2 tan ϑ 2 = R 0 r R 0 + r tan θ 2 .
In terms of the covariant components of A, the contravariant components of B are given by
B i = 1 | g | ϵ i j k j A k ,
where ϵ is the Levi-Civita symbol and | g | is the determinant of the matrix g representing the metric tensor, d s 2 = g i j d x i d x j . In our adapted toroidal coordinates, the volume factor
| g | = 1 / B ϕ = R 2 / ( B 0 R 0 ) .
We take a vector potential, with one helical mode introduced in its toroidal component, of the form (in covariant components)
A ψ = 0 A ϑ = ψ A ϕ = [ w 1 ψ + w 2 ψ 2 + ε ψ m / 2 f ( ψ ) cos ( m ϑ n ϕ + ζ ) ] ,
where w 1 R , w 2 0 , m , n are integers with m 2 , f are smooth functions and ζ is an arbitrary phase.
The vector potential (11) gives rise to the magnetic field B, whose (contravariant) components are
B ψ = B 0 R 0 R 2 m ε ψ m / 2 f ( ψ ) sin ( m ϑ n ϕ + ζ ) B ϑ = B 0 R 0 R 2 w 1 + 2 w 2 ψ + ε ψ m / 2 1 m 2 f ( ψ ) + ψ f ( ψ ) cos ( m ϑ n ϕ + ζ ) B ϕ = B 0 R 0 R 2 .
The cylindrical radius R occurring in the conversion from V to B can be expressed in our adapted coordinates via
R = R 0 2 r 2 R 0 r cos ϑ
with
r = R 0 1 1 ψ B 0 R 0 2 2 .
Because we take m 2 , all the fields have ψ = 0 as a closed fieldline, which can be considered the magnetic axis.
As mentioned in [], with the addition of a single helical mode, the field is still integrable []. Indeed, it has the invariant (i.e., integral of motion)
Ψ = n ψ m A ϕ ,
and the symmetry field
u = n ϑ + m ϕ .
They are related by i u β = d i u A = d Ψ . In vector calculus, this is B × u = Ψ , but one has to use the metric to express it in the adapted toroidal coordinates. However, for n 0 (else the field is axisymmetric), u is not volume-preserving:
L u Ω = 2 n r sin ϑ R 0 r cos ϑ Ω ,
so we can not use Theorem 3. Nonetheless, from (10), u preserves the density B ϕ , so in addition to testing the formula of Theorem 4, we also test the new formula of Theorem 3’.
As in [,], the particular field considered takes the following values and function for the vector potential (11).
w 1 = 1 / 4 , w 2 = 1 , B 0 = 1 , R 0 = 2 , ζ = 0 , f ( ψ ) = ψ R 0 2 / B 0 .
  The poloidal plane plots for this field will use “symplectic” coordinates, defined as
y ˜ = 2 ψ / B 0 cos ϑ z ˜ = 2 ψ / B 0 sin ϑ
on the poloidal section ϕ = 0 . Near the magnetic axis, this is a small distortion (especially for a large aspect ratio r / R 0 0 ) of the true y z -plane x = 0 , but with area equal to toroidal flux and the magnetic axis shifted to the origin.
As can be observed from Figure 1, the label function Ψ in (13) can switch between three different regions in the poloidal plane—inner tori, magnetic islands, and outer tori—which are to be distinguished. Therefore, the volume computation should be carried out over different intervals of Ψ . Additionally, it is expected that the slow dynamics of fieldlines near the separatrices will yield divergent values for T ( Ψ ) ; consequently, the volume estimations given by (1) and Theorems 3’ and 4 should be computed carefully, but the integrals are still expected to converge.
Figure 1. Level sets of Ψ on the poloidal section ϕ = 0 for ( m , n ) = ( 2 , 1 ) and standard values given by (16), in Cartesian (a) and symplectic (b) coordinates. The tori are coloured according to the region: inner (green), magnetic island (yellow), outer (magenta) and the separatrices (cyan).

3. Results

In this section, we apply the formulae in Equation (1) and Theorem 1 to the axisymmetric field (6), and the Equation (1) and Theorems 3’ and 4 to the field (12). As previously mentioned, the results in all forthcoming figures are presented over the poloidal plane ϕ = 0 .
For the computation of the volume Formula (1), we employ a regular grid in a convenient set of Cartesian coordinates ( x , y ) over the chosen poloidal plane, in order to approximate the area element appearing in the volume formula. More precisely, for the volume enclosed between the flux surfaces Ψ 0 and Ψ 1 (with Ψ 1 > Ψ 0 ), we consider
D = { ( x m , y n ) R 2 : Ψ 0 < Ψ ( x m , y n ) < Ψ 1 } ,
where ( x m , y n ) are the nodes of an N 1 × N 2 regular grid over the domain [ x 0 L 1 , x 0 + L 1 ] × [ y 0 L 2 , y 0 + L 2 ] . If β in these coordinates (restricted to the poloidal plane) takes the form
β P = f ( x , y ) d x d y ,
then the volume Formula (1) is approximated by
V 4 L 1 L 2 N 1 N 2 i = 1 N 1 j = 1 N 2 T ( x i , y j ) | f ( x i , y j ) | · 1 { ( x i , y j ) D } .
In the first example, the axisymmetric magnetic field, the convenient coordinates are ( R , z ) over the poloidal plane ϕ = 0 . In this case, β restricted to the poloidal section takes the form:
β P = B ϕ R d R d z = C R d R d z ,
therefore, for this case: | f ( R i , z j ) | = C / R i .
For the second example, we employ the symplectic coordinates ( y ˜ , z ˜ ) , since the areas are equivalent whether computed in ( y ˜ , z ˜ ) or in ( ψ , ϑ ) , by  d y ˜ d z ˜ = B 0 1 d ψ d ϑ . Thus, β restricted to the poloidal section ϕ = 0 can be written as,
β P = B ϕ | g | d ψ d ϑ = B 0 d y ˜ d z ˜ ;
therefore, for the second example: | f ( y ˜ i , z ˜ j ) | = | B 0 | .
Note, however, that the accuracy of (20) cannot be expected to be better than O ( ( N 1 N 2 ) 3 / 4 ) ; see for example, the classic cases of Gauss and Dirichlet for the number of grid points inside a circle or under a hyperbola []. Partly for this reason, and partly to see if we could improve the efficiency of computation of V ( Ψ ) as a function of Ψ (not just individual values of Ψ ), we also tested the method in the Appendix A. For this purpose, we established an algorithm to determine the level sets of Ψ ( y ˜ , z ˜ , ϕ = 0 ) = Ψ 0 on the poloidal plane, which then is discretised into a regular partition of N g points { ν j } . With it, we computed (A1) by,
d V d Ψ ( Ψ 0 ) j = 1 N g T ( ν j ) i ϵ j λ ,
where ϵ j denotes half displacement between ν j 1 and ν j + 1 , and  λ = i B i n Ω , with  n = Ψ / | Ψ | 2 . To simplify the computations for the second example, we used the diagonal metric
d s 2 = 1 2 B 0 ψ d ψ 2 + 2 ψ B 0 d ϑ 2 + R 0 2 d ϕ 2 ,
to compute Ψ and  i ϵ j λ = det W / B ϕ , where W is a matrix whose columns are the contravariant components of ( n , B , ε j ) in the ( ψ , ϑ , ϕ ) coordinate system.
The implementation of (A1) for the first example used a discretisation ν j of the level sets of Ψ with coordinates R j = ( 1 + 2 Ψ cos θ j ) , z j = 2 Ψ sin θ j and θ j = 2 π / N , j = 0 , 1 , , N 1 . Following the steps in the Appendix A, (23) reduces in this case to
d V d Ψ ( Ψ 0 ) C j = 0 N 1 T ( ν j ) sin ( 2 π / N ) 1 + 2 Ψ cos θ j .
In contrast, for the integration of the volume formulae in Theorems 1, 3’ and 4, and the integration of (23), the trapezoidal rule was applied over a uniform grid in Ψ , and the LSODA algorithm (Python’s scipy implementation) was employed for the field-line integration. All codes used an a priori short integration time for the fieldline (to get away from the initial line) and then extended it until the minimum number of crossings, N c , required by the corresponding formula was attained.
Details about the codes used in the computations are provided in the Supplementary Materials.

3.1. Axisymmetric Magnetic Field—Theorem 1

The left subplot in Figure 2 shows a comparison between the computations of the volume enclosed by the flux surfaces using the general Formula (1) and Theorem 1, for the axisymmetric magnetic field (1), as a function of the flux function Ψ , defined in (7). The analytic volume given in (8) is also included. The volume formula (1) was computed over a regular array of points contained within a disc D of radius 2 Ψ , with Ψ taken from (7). For the volume computation using Theorem 1, only one initial point x = ( 1 + 2 Ψ , 0 ) was used to compute T ( Ψ ) . The right inset in Figure 2 shows an example of the regular grid used to compute (8) and the flux surfaces corresponding to a uniform discretisation on Ψ used in Theorem 1.
Figure 2. (a) Volume enclosed by the flux-surface computed by (1) (blue), (A1) (black), Theorem 1 (red) and exact formula (8) (dashed grey) as a function of Ψ for the field (6), with C = 1 . (b) Example of the grid (top) and set of flux surfaces (bottom) used to compute (1) and Theorems 1, respectively.

3.2. Toroidal Helical Magnetic Field—Theorems 3’ and 4

The example considered corresponds to the magnetic field derived from (11) for one mode, namely the resonance 2 / 1 , that is
A ϕ = ψ / 4 + ψ 2 + ε ψ ( ψ 4 ) cos ( 2 ϑ ϕ ) .
Thus, (13) becomes Ψ = ψ 2 A ϕ , which implies that vector field u takes the form,
u = ϑ + 2 ϕ .
Write
v = B / ρ ,
with ρ = B ϕ .
As the vector field u in (26) is constant with integer components (and thus commensurate), the u-lines are closed and all have period 2 π in this case. Consequently, one of the lattice generators can be written as T 1 = ( 2 π , 0 ) T (superscript T denotes transpose, and flowing for time 2 π along u and for 0 along v produces the identity map on any flux surface). The generator T 2 can be obtained through the return time T along v to any chosen u-line, using T 2 = ( c , T ) T , where c is the time needed to flow along u to reach the initial point again. This is illustrated in Figure 3 for the tori in the inner and outer regions. Thus, the determinant in the volume formula for this case (Theorem 3’) takes the form
Δ ( Ψ ) = 2 π T ( Ψ ) ,
where T ( Ψ ) is the return time to the u-line along the scaled field v. The value of c is irrelevant for this. Thus, one factor in the volume formula for this example happens to take a similar form as in Theorem 1.
Figure 3. Selection of the lattice generators T 1 and T 2 for a torus in the inner region. (a): Generators T j in ( t u , t v ) -coordinates, corresponding to the flow times under the u- and v-fields. (b): Vectors T ˜ j , the images of T j under φ T ( 0 , 0 ) in the ( ϕ , ϑ ) -plane. T ˜ 1 (in purple) is drawn over an orbit of u (in green) through the initial point ( 0 , 0 ) ; one translate of the u-orbit is also shown in green. The construction of T ˜ 2 requires the flow of T units under v (along the red curve) and then c units under u.
The other factor, namely 1 / ρ ^ , is computed by averaging 1 / ρ over a regular subdivision of the lattice Γ , as described in Section 2.1.3. Figure 4 shows 1 / ρ ^ computed in the three regions for subdivisions by q = 4 12 . We see convergence for practical purposes when q = 6 , except near the separatrix. The convergence near the separatrix is less good, because analyticity of the AL coordinates fails in the separatrix limit, but the true value of 1 / ρ ^ is just the time-average of 1 / ρ along the hyperbolic closed fieldline (≈1.94399). The approach of 1 / ρ ^ to the separatrix value is consistent with the form δ Ψ log δ Ψ , as is to be expected from the typical logarithmic divergence of return times near a hyperbolic periodic orbit. We use q = 6 in our calculations of enclosed volume.
Figure 4. Average 1 / ρ ^ computed for subdivisions of sizes q = 4 12 : 1 / ρ q , as a function of Ψ in the three regions: (a) inner, (b) magnetic island, and (c) outer regions. The vertical lines indicate the value of Ψ for the separatrix, and the horizontal dash–dot line indicates the numerical value of 1 / ρ on the hyperbolic closed fieldline. Details of the plots near the separatrix are shown in dashed insets.
In the case of tori within a magnetic island, the visualisation on the ( ϕ , ϑ ) plane is insufficient, as these coordinates are not well suited to describing an island torus. In these coordinates, the v-orbit appears to oscillate around the u-line, as shown in the right-hand inset of Figure 5. But the first apparent intersection of the v-orbit with the u-line is actually an illusion caused by a two-to-one projection of the flux surface to ( ϕ , ϑ ) . This apparent first crossing triggers the code to search for a second crossing ( N c = 2 , instead of 1 as in the two other regions).
Figure 5. Plot in the ( ϕ , ϑ ) plane of the orbit (red) and the u-line (green) starting at the point ( y ˜ , z ˜ ) = ( 0.570 , 0.211 ) within the magnetic island. The first intersection in this plot, between the orbit and the u-line, does not correspond to an actual crossing, but rather to the orbit passing through a different point ( ψ 1 , ϑ 1 , ϕ 1 ) on the flux surface that satisfies ϑ 0 = ϑ 1 n ϕ 1 / m but not ψ 1 = ψ 0 .
For Theorem 4, choosing γ to be a u-line (i.e., ψ = constant and 2 ϑ ϕ = constant), we have that,
Φ = γ A = γ ( A ψ d ψ + A ϑ d ϑ + A ϕ d ϕ ) = γ { ψ d ϑ ψ / 4 + ψ 2 + ε ψ ( ψ 4 ) cos ( 2 ϑ ϕ ) d ϕ ) } = 2 π ψ 4 π [ ψ / 4 + ψ 2 + ε ψ ( ψ 4 ) cos ( 2 ϑ 0 ϕ 0 ) ] = 2 π Ψ ( ψ , ϑ 0 , ϕ 0 ) .
Therefore, the volume formula for this example again takes a form similar to that in Theorem 1: d V = 2 π T ¯ d Ψ , where the average T ¯ is computed using the unscaled magnetic field B. We found it to be sufficiently accurate when estimated by averaging the first ten crossings.
Figure 6 shows the averages of the return time, T N , over the first N crossings as a function of Ψ , with N = 1 , 10 , 20 , 30 , in the three regions: inner, island, and outer. The first plot uses | Ψ | on the x-axis (rather than Ψ , which is negative there) to make it go from the magnetic axis on the left to the separatrix on the right. The value of Ψ corresponding to the separatrix is indicated by a vertical dashed line in all three subplots, coinciding with the divergence of T.
Figure 6. Averages of the return time T N of an unscaled field-line to a u-line as a function of Ψ in the three regions: inner (a), magnetic island (b) and outer (c) regions. The vertical lines indicate the value of Ψ for the separatrix.
In the next subsections, we give a little more detail about how we determine the lattice generators and give the results for the enclosed volumes for the three types of flux surface in this example.

3.2.1. Inner Region

For the inner region, a typical computation of T 2 ( Ψ ) is displayed in Figure 7. From the theory, the return time along v to a given u-line is independent of the initial point on the u-line, but we checked this numerically and confirmed it. Also, the return time T 2 diverges like log δ Ψ as a separatrix is approached (compare the period of a pendulum), Figure 8.
Figure 7. Crossing of the fieldline (red) and images of the u-line (green), starting at two selected initial points ( y ˜ i , z ˜ i ) on the poloidal plane ϕ = 0 : (a) ( 0.2 , 0 ) and (b) ( 0.06 , 0.21 ) on the same flux surface ( Ψ = 0.01031 ) in the inner region, for ε = 0.007 . The return time along v is the same in both subplots T ( Ψ ) = 15.60 .
Figure 8. Return time T 2 along v, computed in the inner region (blue), and the fitted logarithmic curve f ( Ψ ) = A ln ( S | Ψ | ) + B (green dash-dot line), with S = 0.0248157 corresponding to the separatrix.
Figure 9 shows the volume computed by (1) and by Theorem 3 for the inner region as a function of Ψ defined in (13). We expected to see a more evident δ Ψ log δ Ψ behaviour near the separatrix but it requires zooming in (not shown).
Figure 9. (a) Volume computed by (1) (blue), (A1) (black), Theorem 4 (red) and Theorem 3’ (green) as a function of | Ψ | (to make the slope positive) for the field (25) in the inner region. The vertical dashed line indicate the value of Ψ for the separatrix. (b) Example of the grid (top) and the set of flux surfaces (bottom), corresponding to a uniform partition in Ψ , used to compute (1) and Theorems 3’ and 4, respectively.

3.2.2. Magnetic Island

A typical computation of T 2 ( Ψ ) for the magnetic island region is displayed in Figure 10. As mentioned earlier in this section, T 2 is recorded for the second intersection between the fieldline and the u-line on the ( ϕ , ϑ ) -plane.
Figure 10. Crossing of the fieldline (red) and u-line (green) starting at two selected initial points ( y ˜ i , z ˜ i ) on the poloidal plane ϕ = 0 : ( 0.4 , 0 ) and ( 0.570 , 0.211 ) on the same flux surface ( Ψ = 0.0316 ) and same component, in the magnetic island region, for ε = 0.007 . The second crossing time under v is the same in both subplots, T ( Ψ ) = 43.86 , while the first (spurious crossing time) differs: 21.93 (a) and 15.53 (b). The blue graph in the bottom subplots corresponds to ξ = m ( ϑ t ϑ 0 ) n ϕ t , to more easily identify the crossings between the orbit and the u-line.
Figure 11 shows the volume computed by (1) and Theorem 3 for flux surfaces in the magnetic island as a function of Ψ defined in (13).
Figure 11. (a) Volume computed by (1) (blue), (A1) (black), Theorem 4 (red) and Theorem 3’ (green) as a function of Ψ for the field (25) in the magnetic island. The vertical dashed line indicate the value of Ψ for the separatrix. (b) Example of the grid (top) and the set of flux surfaces (bottom), corresponding to a uniform partition in Ψ , used to compute (1), and Theorems 3’ and 4 and (A1), respectively.

3.2.3. Outer Region

A typical computation of T 2 ( Ψ ) for the outer region is displayed in Figure 12.
Figure 12. Crossing of the fieldline (red) and images of the u-line (green), starting at two selected initial points ( y ˜ i , z ˜ i ) on the poloidal plane ϕ = 0 : (a) ( 0.7 , 0 ) and (b) ( 0.41 , 0.54 ) , on the same flux surface ( Ψ = 0.01533 ) in the outer region, for ε = 0.007 . The return time is the same in both subplots T ( Ψ ) = 18.15 .
Figure 13 shows the volume computed by (1) and Theorem 3 for the inner region as a function of Ψ defined in (13).
Figure 13. (a) Volume computed by (1) (blue), (A1) (black), Theorem 4 (red) and Theorem 3’ (green) as a function of Ψ for the field (25) in the outer region. The volumes enclosed by the island and inner regions has been added in. The vertical dashed line indicate the value of Ψ for the separatrix. (b) Example of the grid (top) and the set of flux surfaces (bottom), corresponding to a uniform partition in Ψ , used to compute (1) and Theorems 3’ and 4, respectively.

4. Discussion

In this section, we discuss the performance of our implementations of the various methods of computation used in these examples. There are two aspects: computation time and accuracy of the result.
For the axisymmetric field, the volume computations of (1) and Theorem 1 were straightforward and the only parameter values to vary to improve the accuracy of the volume enclosed between a given Ψ 0 and Ψ 1 , were the grid size for each method, as the integration times required to compute the respective return times are of the same order. In general, we found that Theorem 1 yields higher accuracy in only a fraction of the runtime of (1) or (A1), as illustrated in Table 1, which reports average runtimes for four values of Ψ from Figure 2, with grids chosen to achieve approximately 1% relative error for (1) and a coarse grid with N = 20 for Theorem 1. Our implementation of (A1) was consistently faster and more accurate than (1), but not as efficient as Theorem 1. The average runtimes are given in seconds and correspond to single-core computations on an AMD® Ryzen 5 3500U (2.1 GHz).
Table 1. Comparison of the volume estimation V 0 , enclosed by the flux surfaces passing through [ 1 , 0 ] ( Ψ 0 = 0 ) and [ R 1 , 0 ] ( Ψ 1 ), obtained using (1) and Theorem 1, with respect to grid size and average run time. The grid dimensions are N 1 × N 2 for (1), N g = N 2 for the discretised level sets in (A1), and N Ψ = N 1 for integration in Ψ in (A1) and Theorems 3’ and 4. The rectangular domain for (1) is [ 0.1 , 1.9 ] × [ 0.9 , 0.9 ] .
For the toroidal helical field, the computations of (1) and Theorems 3’ and 4 yielded comparable results but with significantly different runtimes. Accuracy was controlled by the grid sizes: N × N points in the poloidal section for (1), N g points to discretise a level set and N on Ψ for (A1), and N points in Ψ for Theorems 3’ and 4. We quantified accuracy by the relative error compared to a reference value V * . The integration times for (1) and Theorem 3’ were of the same order, whereas that of Theorem 4 was required to be at least one order of magnitude greater to estimate the average return time. As (1) is equivalent to a three-dimensional integration, whereas (A1) and Theorems 3’ and 4 are equivalent to a bit more than two dimensions, one would expect the codes based on those theorems or (A1) to run faster than that for (1). In practice, however, for the small volumes between close flux surfaces ( | Ψ 1 Ψ 2 | < ϵ ), our use of Theorem 4 can be slower than (1), and (A1) is the slowest of the four. There is a tradeoff between accuracy and computation time between our implementations of (1) and (A1), with the first being faster in small volumes and the second always more accurate, with a consistent computation time. Our implementation of (1) computes T only for the points in the grid contained between the level sets of Ψ 1 and Ψ 2 , while that of (A1) computes T for every point in the discretised contour for N contours in the partition of Ψ . Table 2 illustrates performance by reporting average runtimes for six [ Ψ 1 , Ψ 2 ] intervals in the inner, island, and outer regions, using typical grid sizes. The reference values of Ψ 1 correspond to the magnetic axis ( Ψ = 0 ), the island O-point ( Ψ = 0.0384 ), and the separatrix ( Ψ = 0.0248 ). The reference volume V * , used to compute the relative error, is obtained from Theorem 3’ with N = 400 , as this proved the most accurate and efficient method. More comparable implementations would allow more meaningful comparisons to be made.
Table 2. Comparison of the volume estimations V 0 enclosed by the flux surfaces Ψ 1 and Ψ 2 , passing through ( y ˜ 1 , 0 ) and ( y ˜ 2 , 0 ) , respectively. The estimates are obtained from (1), (A1) and Theorems 3’ and 4, with results shown against grid size, average runtime, and relative error with respect to a reference volume V * . The grid dimensions are N 1 × N 2 for (1), N g = N 2 for the discretised level sets in (A1), and N Ψ = N 1 for integration in Ψ in (A1) and Theorems 3’ and 4. The rectangular domains for (1) are inner region [ 0.335 , 0.335 ] × [ 0.47 , 0.47 ] ; island and outer regions [ 0.9 , 0.9 ] × [ 0.8 , 0.8 ] . The reference volume V * is given by Theorem 3’ with N = 400 .
In conclusion, our tests on Theorem 4 sometimes did not give efficient volume computations, but those on Theorem 3’ generally did. As most integrable cases can also be treated by Theorem 3’ after identification of a symmetry that conserves a density, our recommendation is to use Theorem 3’ (unless Theorems 2 or 1 apply, in which case the need to compute the harmonic average of the density is removed).

5. Conclusions

We computed the volumes enclosed by flux surfaces for two different integrable examples of magnetic fields using formulae provided by [] and a new formula presented here for integrable fields with a symmetry field that preserves a density. The results of using different formulae are found to be consistent up to numerical error. As the methods are equivalent to 2D integration, they are mostly faster to compute than the standard 3D integration.
The volume estimation for the axisymmetric field between codes based on (1), (A1) and Theorem 1 confirmed that the latter was notably more efficient and accurate. This is evident in the comparison between a coarse grid in Ψ for Theorem 1 and a finer 2D grid for (1) and (A1) included in the previous section. Regarding the toroidal helical field, among the three formulae tested, the computational cost of Theorem 3’ was distinctly lower than that of (1) and Theorem 4, and exhibited faster numerical convergence. The accuracy of the integration in (1) was constrained by the resolution of the regular grid employed for its evaluation. Nevertheless, for flux surfaces with a small cross-section, (1) is more efficient than Theorem 4, since accurate integration along the flow lines was substantially more demanding, with lengths greater by approximately an order of magnitude (i.e., by a factor of ten).
A disadvantage of these methods is that they cannot be used to measure volumes enclosed by flux surfaces in fields that contain chaotic regions. It would be good to obtain an efficient formula for the flux enclosed by a flux surface of a general magnetic field. We plan to achieve and test this via a vector potential on the flux surface, which easily gives efficient formulae for enclosed toroidal and poloidal flux, and we have just worked out how to get it to give volume.
It would be desirable to test the formulae on numerically computed quasisymmetric fields as in []. The methods should also apply to approximately integrable fields with knotted or linked tori, as in Ref. [], though it is difficult to make exactly integrable examples (indeed, we have conjectured many years ago that non-degenerate integrable vacuum fields have to be axisymmetric).

Supplementary Materials

The codes for the computations are available at https://github.com/dvmtz-1/Volume-formulae-for-integrable-magnetic-fields (accessed on 1 October 2025) and https://doi.org/10.5281/zenodo.17246687.

Author Contributions

Conceptualisation, R.S.M.; methodology, R.S.M. and D.M.-d.-R.; software, D.M.-d.-R.; validation, D.M.-d.-R.; formal analysis, R.S.M. and D.M.-d.-R.; investigation, R.S.M. and D.M.-d.-R.; resources, D.M.-d.-R.; data curation, D.M.-d.-R.; writing—original draft preparation, R.S.M. and D.M.-d.-R.; writing—review and editing, R.S.M. and D.M.-d.-R.; visualisation, D.M.-d.-R.; supervision, R.S.M. and D.M.-d.-R.; project administration, R.S.M. and D.M.-d.-R.; funding acquisition, R.S.M. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by a grant from the Simons Foundation (601970, RSM).

Data Availability Statement

No new data were created or analysed in this study. Data sharing is not applicable to this article.

Acknowledgments

We are grateful to David Pfefferlé for discussions, and to the reviewers for their careful reading, questions and suggestions.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A. Computation of (1) for Integrable Fields

For an integrable field B, if one wants to use (1) to compute V ( Ψ ) for a range of Ψ , one can evaluate the integrand at a large enough grid to cover the largest domain (say the largest value of Ψ assuming Ψ increases outwards), and label each evaluation by its value of Ψ . Then, for a given value of Ψ , it suffices to add up the results for smaller values of Ψ . This can be done progressively as Ψ increases.
It might, however, be more efficient (for given accuracy) to compute
d V d Ψ ( Ψ ) = D ( Ψ ) T λ ,
where λ = i B i n Ω and n = Ψ / | Ψ | 2 (with respect to any Riemannian metric), and then take its definite integral with respect to Ψ from a reference case (e.g., magnetic axis). To prove (A1), first note that β = λ d Ψ . This is because applying either side to n gives λ , and applying either side to B gives 0. Lastly, for any ξ independent from n and B, evaluate both sides on ( n , ξ ) and ( B , ξ ) and obtain i ξ λ and 0, respectively; evaluating on ( ξ , ξ ) gives zero automatically on both sides. Then integrating T λ d Ψ over D ( Ψ ) gives the result.
To compute the integral (A1) numerically, one could discretise D ( Ψ ) uniformly with respect to some choice ν of angle variable (mod 1) around it, ν n = n / N . Let ϵ n be half the displacement vector from ν n 1 to ν n + 1 , evaluate λ on ϵ n considered to be based at ν n , and compute their sum. Note that i ϵ λ = Ω ( n , B , ϵ ) . In vector calculus language, this is given by the triple product i ϵ λ = n × B · ϵ , but if the field is presented in non-trivial coordinates x i , then it is simpler to use i ϵ λ = | g | det W , where | g | is the volume factor for the metric and W is the matrix formed by the contravariant components of the three vectors in that coordinate system. A further simplification can be made by choosing the Riemannian metric in the definition of n to be the standard one for the coordinate system, so Ψ has components Ψ x i (all that is required of n is that i n d Ψ = 1 ). If everything is analytic, then by Fourier analysis, the error will be exponentially small in N.
Computing (A1) is a 2D integration ( T is a 1D integral and it is integrated along D ( Ψ ) ), but because one can get away with relatively coarse discretisation, we can consider it to be just a bit more than 1D. So after integrating with respect to Ψ , the total is a bit more than a 2D integration.

References

  1. Landreman, M.; Medasani, B.; Wechsung, F.; Giuliani, A.; Jorge, R.; Zhu, C. SIMSOPT: A flexible framework for stellarator optimization. J. Open Source Softw. 2021, 6, 3525. [Google Scholar] [CrossRef]
  2. MacKay, R.S. Volume enclosed by a flux surface. Proc. Steklov Inst. Math. 2024, 327, 226–235. [Google Scholar] [CrossRef]
  3. Helander, P. Theory of plasma confinement in non-axisymmetric magnetic fields. Rep. Prog. Phys. 2014, 77, 087001. [Google Scholar] [CrossRef] [PubMed]
  4. Huang, Y.M.; Hew, J.K.J.; Brown, A.; Bhattacharjee, A. Computation of magnetohydrodynamic equilibria with Voigt regularization. Phys. Plasmas 2025, 32, 062507. [Google Scholar] [CrossRef]
  5. MacKay, R.S. Differential forms for plasma physics. J. Plasma Phys. 2020, 86, 925860101. [Google Scholar] [CrossRef]
  6. Burby, J.; Kallinikos, N.; MacKay, R.S. Some mathematics for quasi-symmetry. J. Math. Phys. 2020, 61, 093503. [Google Scholar] [CrossRef]
  7. Landreman, M.; Paul, E. Magnetic fields with precise quasisymmetry for plasma confinement. Phys. Rev. Lett. 2022, 128, 035001. [Google Scholar] [CrossRef] [PubMed]
  8. Rodriguez, E.; Helander, P.; Bhattacharjee, A. Necessary and sufficient conditions for quasisymmetry. Phys. Plasmas 2020, 27, 062501. [Google Scholar] [CrossRef]
  9. Hamada, S. Hydromagnetic equilibria and their proper coordinates. Nuclear Fusion 1962, 2, 23. [Google Scholar] [CrossRef]
  10. Kallinikos, N.; MacKay, R.S.; Martinez-del Rio, D. Regions without flux surfaces of given class for magnetic fields in toroidal geometry. Plasma Phys. Control Fusion 2023, 65, 095021. [Google Scholar] [CrossRef]
  11. Arnol’d, V.I. Mathematical Methods of Classical Mechanics; Springer: Berlin/Heidelberg, Germany, 2013; Volume 60. [Google Scholar] [CrossRef]
  12. Weideman, J. Numerical integration of periodic functions: A few examples. Amer. Math. Monthly 2002, 109, 21–36. [Google Scholar] [CrossRef]
  13. Newcomb, W. Magnetic differential equations. Phys. Fluids 1959, 2, 362–365. [Google Scholar] [CrossRef]
  14. Perrella, D.; Duignan, N.; Pfefferlé, D. Existence of global symmetries of divergence-free fields with first integrals. J. Math. Phys. 2023, 64, 052705. [Google Scholar] [CrossRef]
  15. Perrella, D.; Pfefferlé, D.; Stoyanov, L. Rectifiability of divergence-free fields along invariant 2-tori. Partial Differ. Equ. Appl. 2022, 3, 50. [Google Scholar] [CrossRef]
  16. Burby, J.; MacKay, R.; Naik, S. Isodrastic magnetic fields for suppressing transitions in guiding-centre motion. Nonlinearity 2023, 36, 5884. [Google Scholar] [CrossRef]
  17. Martinez-del Rio, D.; MacKay, R.S. Conefield approach to identifying regions without flux surfaces for magnetic fields. Plasma Phys. Control. Fusion 2025, 67, 055005. [Google Scholar] [CrossRef]
  18. Kallinikos, N.; Isliker, H.; Vlahos, L.; Meletlidou, E. Integrable perturbed magnetic fields in toroidal geometry: An exact analytical flux surface label for large aspect ratio. Phys. Plasmas 2014, 21, 064504. [Google Scholar] [CrossRef]
  19. Abdullaev, S. Magnetic Stochasticity in Magnetically Confined Fusion Plasmas; Springer: Berlin/Heidelberg, Germany, 2014; p. 412. [Google Scholar] [CrossRef]
  20. Huxley, M. Area, Lattice Points, and Exponential Sums; Clarendon Press: Oxford, UK, 1996; Volume 13. [Google Scholar] [CrossRef]
  21. Hudson, S.; Startsev, E.; Feibush, E. A new class of magnetic confinement device in the shape of a knot. Phys. Plasmas 2014, 21, 010705. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.