1. Introduction
Quasisymmetry (QS) is a continuous symmetry of the guiding centre Lagrangian that, like axisymmetry, implies confinement of collisionless guiding centre trajectories near a given flux surface on the drift time scale. Unlike axisymmetry, QS does not require a continuous spatial symmetry. Thus three-dimensional quasisymmetric magnetic fields have the potential to possess vacuum rotational transform and improved confinement properties simultaneously. The discovery of QS by Boozer (Reference Boozer1983) and the demonstration that quasisymmetric equilibria could be obtained from asymptotic expansions near the magnetic axis (Garren & Boozer Reference Garren and Boozer1991a,b) and numerical optimization of magnetohydrodynamic (MHD) equilibria (Nührenberg & Zille Reference Nührenberg and Zille1988) paved the way for the improved confinement of optimized stellarator configurations. More recently, the use of asymptotic expansions near the axis has proved to be fruitful in directly constructing quasisymmetric fields (Landreman & Sengupta Reference Landreman and Sengupta2018; Landreman Reference Landreman2019a; Landreman & Sengupta Reference Landreman and Sengupta2019; Landreman, Sengupta & Plunk Reference Landreman, Sengupta and Plunk2019; Jorge, Sengupta & Landreman Reference Jorge, Sengupta and Landreman2020b) and providing insight into their physical properties (Landreman & Jorge Reference Landreman and Jorge2020; Jorge & Landreman Reference Jorge and Landreman2021).
There remain many open questions related to the existence and nature of quasisymmetric magnetic fields. There is recent evidence that nearly quasisymmetric fields can be obtained in a volume under the assumption that a small deviation from MHD force balance is introduced (Constantin, Drivas & Ginsberg Reference Constantin, Drivas and Ginsberg2021). However, this result only applies sufficiently close to axisymmetry. By carrying out an asymptotic expansion in the distance near the magnetic axis, it was previously posited that quasisymmetric magnetic fields do not exist in a volume, as an overdetermined system arises at third order for a general axis (Garren & Boozer Reference Garren and Boozer1991a,b). If a deviation from MHD force balance is introduced in the form of an anisotropic pressure tensor, then the problem of overdetermination can be avoided, and the series can be continued to high order (Rodriguez & Bhattacharjee Reference Rodriguez and Bhattacharjee2021a,b). However, a solution with volumetric QS remains to be obtained.
While the system of equations for near-axis quasisymmetric magnetic fields with scalar pressure becomes overdetermined, it has been argued that there remains enough freedom in the free functions to achieve exact QS on one surface (Garren & Boozer Reference Garren and Boozer1991a,b; Jorge, Sengupta & Landreman Reference Jorge, Sengupta and Landreman2020a). A similar plausibility argument was made by demonstrating that an expansion in the distance from axisymmetry can be carried out to all orders to achieve exact vacuum quasi-axisymmetry on a single surface (Plunk & Helander Reference Plunk and Helander2018). Nevertheless, exact QS on a surface that is not asymptotically close to axisymmetry has not been demonstrated previously.
The three-dimensional nature and nonlinearity of quasisymmetric magnetic fields make analysis particularly difficult. The mathematical structure of the QS constraints has been recently explored in great detail (Burby, Kallinikos & MacKay Reference Burby, Kallinikos and MacKay2020; Constantin et al. Reference Constantin, Drivas and Ginsberg2021). Although one can derive an elliptic Grad–Shafranov equation analogous to the axisymmetric Grad–Shafranov equation by exploiting QS, the three-dimensional nature of the magnetic fields imposes several non-trivial constraints ((94)–(97) in Burby et al. (Reference Burby, Kallinikos and MacKay2020)) that are not present in the axisymmetric case. For physical (divergence-free) magnetic fields with flux surfaces denoted by
$\psi$, the
$\psi$ derivatives (radial or ‘out-of-surface’ derivatives) of the fields are nonlinearly coupled to the angular (‘in-surface’) derivatives. Therefore, even if we want to impose QS on a single flux surface and not in a volume, we need to know the radial variation of the flux surface shapes. It should be noted that this property is not due to QS but rather tied to the existence of flux surfaces as noted in earlier works (Boozer Reference Boozer2002; Weitzner Reference Weitzner2016). Progress in untangling the radial derivatives from the angular derivatives can be made if one expands in the distance from a given flux surface. A similar separation between radial and angular derivatives is achieved by expanding in the distance from the axis (Landreman & Sengupta Reference Landreman and Sengupta2019; Jorge et al. Reference Jorge, Sengupta and Landreman2020b). In this work, we develop and explore a near-surface expansion methodology to impose QS on a given flux surface. The inputs to the lowest-order system consist of a flux-surface shape, the functional form of the magnetic field strength on the surface and the helicity of the QS. The lowest-order system retains the full nonlinearity but is two-dimensional.
By expanding in the distance from a flux surface, we obtain vacuum magnetic fields with exact QS on one surface. The existence of a surface sufficiently close to QS has been shown to improve energetic particle confinement and increase the volume of surfaces with QS (Henneberg, Drevlak & Helander Reference Henneberg, Drevlak and Helander2019) and may provide an effective transport barrier (Boozer Reference Boozer2020). Obtaining such configurations has previously been quite computationally demanding, requiring numerical optimization of a MHD equilibrium (Spong et al. Reference Spong, Hirshman, Berry, Lyon, Fowler, Strickler, Cole, Nelson, Williamson and Ware2001; Drevlak et al. Reference Drevlak, Beidler, Geiger, Helander and Turkin2018) to reduce the harmonics of the field strength in Boozer coordinates that break the desired symmetry (Sanchez et al. Reference Sanchez, Hirshman, Ware, Berry and Spong2000). Our approach uses a ‘direct construction’, like the near-axis or near-axisymmetric expansion techniques, in that numerical optimization of an equilibrium is not required. By directly obtaining solutions with exact QS, we additionally gain insight into the nature of the class of solutions.
As we expand in the distance from a single flux surface, our approach uses a formalism similar to local equilibrium models (Hegna Reference Hegna2000; Boozer Reference Boozer2002; Skovoroda Reference Skovoroda2009; Candy & Belli Reference Candy and Belli2015). As noted previously, the local equilibrium equations have a free function of the two angles, which can be used to specify the straight field line angles on a surface (Hegna Reference Hegna2000), the distance to a neighbouring magnetic surface (Boozer Reference Boozer2002) or the field strength on a surface (Skovoroda Reference Skovoroda2009). In this work, we use this freedom to enforce exact QS on a single flux surface by defining a variable
$\eta$ (to be defined below), such that the field strength satisfies
$B = B(\eta )$. In this way, Boozer coordinates are not required for the calculation, in contrast with recent work on stellarator vacuum fields near a surface (Boozer Reference Boozer2019).
Without QS, there are three equations for three unknown functions that describe a vacuum field with surfaces, namely the field-line label, scalar potential and the flux coordinate Jacobian. As QS requires an additional constraint, the full global vacuum system with QS is overdetermined. However, the near-surface expansion yields enough freedom to enforce QS on one surface. It is to be noted that since the expansion is carried out in the distance from the surface, QS is exact only on the given surface and is first-order accurate in the vicinity of the given surface. As the out-of-surface derivative of the potential does not appear in the lowest-order system, the corresponding constraint equation can be replaced by the QS constraint in the surface expansion formalism.
The near-surface theory presented in this work builds on the formalism developed by Sengupta and Weitzner (Weitzner Reference Weitzner2016; Jaquiery & Sengupta Reference Jaquiery and Sengupta2019; Sengupta & Weitzner Reference Sengupta and Weitzner2019), which was used to study the existence of low-shear magnetic fields with surfaces and construct a global vacuum solution with closed field lines in slab geometry (Weitzner & Sengupta Reference Weitzner and Sengupta2020). Although we discuss expansions about axisymmetric surfaces in this work, the methodology works for non-symmetric surfaces as well. A limitation of the lowest-order calculation is that we cannot determine whether the local solution exists within a global equilibrium. We expect that for a limited choice of the initial surface one can obtain global solutions. By going to higher order, it may be impossible to obtain a constraint on the initial surface to be part of a global solution.
The outline of the paper is as follows. In § 2, we introduce the equations for vacuum magnetic fields with surfaces, and in § 3 we introduce the QS constraint. In § 4, we expand the relevant equations in the distance from a flux surface, which is used to obtain a single parabolic partial differential equation (PDE) in § 5. Solutions of this equation in slab, cylindrical and toroidal geometry are presented in § 6. In § 7, we demonstrate that numerical solutions of the nonlinear equations can be obtained near a general toroidal axisymmetric surface. These solutions are compared with the analytic models from § 6, and general features are discussed. Finally, in § 8 we make some concluding remarks.
2. Vacuum fields with nested surfaces
We consider a generic toroidal coordinate system
$(\psi ,\theta ,\phi )$ where
$\psi$ is the toroidal flux and
$\theta$ and
$\phi$ are the poloidal and toroidal angles that are 2
${\rm \pi}$ periodic. Denoting the magnetic scalar potential and the field line label by
$\varPhi$ and
$\alpha$, respectively, we represent the vacuum magnetic field with surfaces as
The three components of the above equation yield
where
$\sqrt {g} = (\boldsymbol {\nabla } \psi \times \boldsymbol {\nabla } \theta \cdot \boldsymbol {\nabla } \phi )^{-1}$ is the Jacobian and
$g_{ij} = \boldsymbol {r}_{,x_i} \cdot \boldsymbol {r}_{,x_j}$ is the metric tensor. The first two equations are the ‘in-surface’ derivatives of
$\varPhi$, whereas the third equation gives the ‘out-of-surface’ derivative of
$\varPhi$. The magnetic differential operator is given by
where
$\{\,f,g\}_{(\theta ,\phi )}$ denotes a Poisson bracket of
$f$ and
$g$ with respect to
$(\theta ,\phi )$. The field strength is computed from
3. The QS constraint on vacuum fields
In the literature various definitions of QS can be found. (A clear comparison is provided in Landreman (Reference Landreman2019b).) Here we discuss the following form of QS when the rotational transform is irrational, namely
This form of QS has been extensively discussed previously in the literature (Helander & Simakov Reference Helander and Simakov2008; Helander Reference Helander2014). This version of QS has been recently termed ‘weak QS’ (Burby et al. Reference Burby, Kallinikos and MacKay2020; Rodriguez, Helander & Bhattacharjee Reference Rodriguez, Helander and Bhattacharjee2020; Constantin et al. Reference Constantin, Drivas and Ginsberg2021). However, we note that under the assumption of MHD equilibrium, the strong and weak forms of QS coincide. As we will make the assumption of a vacuum magnetic field, a subset of MHD equilibrium models, our QS definition can be considered ‘strong QS’. We note that
$\boldsymbol {B}\boldsymbol {\cdot }\boldsymbol {\nabla } B$ vanishes whenever
$\boldsymbol {B} \times \boldsymbol {\nabla } \psi \cdot \boldsymbol {\nabla } B$ does (Landreman & Catto Reference Landreman and Catto2012), and their ratio remains finite. In the above expression,
$F(\psi )$ is a non-vanishing, smooth function of flux. Under the vacuum field constraint, an explicit expression for
$F(\psi )$ is provided in (3.7).
In
$(\varPhi ,\psi ,\alpha )$ coordinates with
$B^2=\boldsymbol {\nabla }\varPhi \cdot \boldsymbol {\nabla } \psi \times \boldsymbol {\nabla }\alpha$,
We assume that
$B^2 \ne 0$ in the neighborhood of the surface. Since
$B^2\neq 0$, QS implies
We define
such that
$B=B(\eta ,\psi )$. Note that a similar function can be constructed even if the rotational transform is rational by replacing
$\psi$ by
$\oint \textrm {d} l/B$, where the integral is carried out along a closed field line (Elbarmi, Sengupta & Weitzner Reference Elbarmi, Sengupta and Weitzner2020). The streamlines of
$\eta$ must close on a constant
$\psi$ surface. This implies that
where
$M$ and
$N$ are integers that specify the helicity of the QS. We note that
$\varPhi$ and
$\alpha$ also generally have secular terms:
where tilde denotes periodic functions. This implies that
$\bar {I} + F(\psi ) \propto M$ and
$-\bar {G} + F(\psi )\iota \propto N$:
While
$\bar {I}$ vanishes in a global vacuum field, the surface about which we expand may enclose currents that are not in the neighbourhood of the surface. As we are performing a local expansion, this does not preclude the existence of currents asymptotically away from the surface. Thus we retain both secular terms in the scalar potential. In terms of the variable
$\eta$ one can write
$B^2$ using (2.4) and (3.4) as
The ‘in-surface’ derivatives of
$\varPhi$,
$\alpha$ and
$\eta$ can then be related to each other using (2.2a) and (3.4) as
which yields
\begin{equation} \sqrt{g}F\begin{pmatrix} \eta_{,\theta} \\ \eta_{,\phi} \end{pmatrix}=\begin{pmatrix} g_{\theta\theta} & g_{\theta\phi} + F \sqrt{g}\\ g_{\theta\phi} - F\sqrt{g} & g_{\phi\phi} \end{pmatrix} \begin{pmatrix} -F\alpha_{,\phi} \\ +F\alpha_{,\theta} \end{pmatrix}.\end{equation}
This matrix equation can be inverted in order to obtain an equation for
$\eta$:
\begin{equation} \frac{\sqrt{g}F}{\mathcal{J}^2 + F^2 \sqrt{g}^2}\begin{pmatrix} g_{\phi\phi} & -g_{\theta\phi} - F \sqrt{g}\\ -g_{\theta\phi} + F\sqrt{g} & g_{\theta\theta} \end{pmatrix} \begin{pmatrix} \eta_{,\theta} \\ \eta_{,\phi} \end{pmatrix} = \begin{pmatrix} -F\alpha_{,\phi} \\ +F\alpha_{,\theta} \end{pmatrix}, \end{equation}
where we have defined the surface Jacobian to be
$\mathcal {J} = \sqrt {g_{\theta \theta } g_{\phi \phi } - g_{\theta \phi }^2}$.
4. Near-surface expansions
Let us now expand about a surface
$\psi = \psi _0$ such that
where
$\delta \psi = \psi - \psi _0$. Note that we are using a standard Taylor expansion in linear power of
$\psi$, as opposed to the expansion in
$\sqrt {\psi }$ employed in the near-axis expansions. As we are expanding about a non-degenerate surface away from the magnetic axis (i.e. the two-dimensional surface is assumed to not degenerate to a one-dimensional curve), the coordinate singularity is avoided and a regular Taylor series suffices. We also assume enough smoothness in the various quantities appearing in (4.1) such that the expansions are valid.
At
$\mathcal {O}((\delta \psi )^0)$ the vacuum equations (2.2) yield
\begin{gather} \sqrt{g}^{(1)} \begin{pmatrix} \varPhi^{(0)}_{,\theta}\\ \varPhi^{(0)}_{,\phi} \end{pmatrix}= \begin{pmatrix} g^{(0)}_{\theta\theta} & g^{(0)}_{\theta\phi}\\ g^{(0)}_{\theta\phi} & g^{(0)}_{\phi\phi} \end{pmatrix} \begin{pmatrix} -\alpha^{(0)}_{,\phi} \\ \alpha^{(0)}_{,\theta} \end{pmatrix}, \end{gather}where
for
$x_i, x_j \in \{\theta ,\phi \}$.
We can define the angles in the neighbourhood of the surface such that the metric tensor simplifies (Boozer Reference Boozer2002; Imbert-Gerard, Paul & Wright Reference Imbert-Gerard, Paul and Wright2019):
Defining
$\rho ^{(1)} = |\boldsymbol {r}^{(1)}|$ and
$\mathcal {J}^{(0)} = \sqrt {g}^{(1)}/\rho ^{(1)}$, we find that with such a choice of coordinates
This eliminates the ‘out-of-surface’ equation for
$\varPhi _{,\psi }$ (2.2b) locally but not globally. So our vacuum equations simplify to
\begin{equation} \rho^{(1)}\mathcal{J}^{(0)}\begin{pmatrix} \varPhi^{(0)}_{,\theta}\\ \varPhi^{(0)}_{,\phi} \end{pmatrix} = \begin{pmatrix} g^{(0)}_{\theta\theta} & g^{(0)}_{\theta\phi}\\ g^{(0)}_{\theta\phi} & g^{(0)}_{\phi\phi} \end{pmatrix} \begin{pmatrix} -\alpha^{(0)}_{,\phi} \\ \alpha^{(0)}_{,\theta} \end{pmatrix}. \end{equation}
As shown in Appendix A, a global toroidal coordinate system
$(\psi ,\theta ,\phi )$ can also be utilized to bring the ‘in-surface’ vacuum equations to the same form. In order to carry out a fully global calculation, one must retain the equation for
$\varPhi _{,\psi }$ (2.2b). In a local expansion, this equation only gives higher-order corrections to
$\varPhi$ and will not be considered in this work. To enforce QS, we need to rewrite the vacuum equations in terms of the variable
$\eta$. Using
to eliminate
$\varPhi$, we obtain the following set of equations:
\begin{align} \begin{pmatrix} -F^{(0)}\alpha_{,\phi}^{(0)} \\ +F^{(0)}\alpha_{,\theta}^{(0)} \end{pmatrix} &= \frac{\rho^{(1)}F^{(0)}}{\mathcal{J}^{(0)} \left(1 + \left(F^{(0)}\rho^{(1)}\right)^2 \right)} \nonumber\\ &\quad\times\begin{pmatrix} g_{\phi\phi}^{(0)} & -g_{\theta\phi}^{(0)} - F^{(0)} \rho^{(1)} \mathcal{J}^{(0)}\\ -g_{\theta\phi}^{(0)} + F^{(0)}\rho^{(1)} \mathcal{J}^{(0)} & g_{\theta\theta}^{(0)} \end{pmatrix} \begin{pmatrix} \eta_{,\theta}^{(0)} \\ \eta_{,\phi}^{(0)} \end{pmatrix}, \end{align}
using (3.11). For the remainder of the text, the superscripts will be dropped for brevity. If the surface is axisymmetric, we can further choose the toroidal angle
$\phi$ to coincide with the geometric toroidal angle. Therefore,
We now make a coordinate transformation to an angle
$\varTheta$ such that
To see that
$\varTheta$ is indeed an angle, we first note that the integrand
$\sqrt {g_{\theta \theta }/g_{\phi \phi }}$ is a periodic function of only
$\theta$ due to axisymmetry. We can therefore Fourier expand the integrand in harmonics of
$\theta$ and integrate over
$\theta$ to obtain
$\varTheta$. The function
$\varTheta (\theta )$ is clearly of the form
$\varTheta =l_0\theta + \tilde {\varTheta }(\theta )$, where
$l_0$ is the average of
$\sqrt {g_{\theta \theta }/g_{\phi \phi }}$ and
$\tilde {\varTheta }$ is periodic in
$\theta$. Whereas physical quantities are required to have
$2{\rm \pi}$ periodicity in the angle
$\theta$, periodicity in
$\varTheta$ is not necessarily
$2{\rm \pi}$ and depends on the lowest-order surface. For numerical analysis we will use to
$\theta$ and demand
$2{\rm \pi}$ periodicity.
We rewrite the vacuum equations (4.6) and the QS condition (4.7b):
The first two equations have the structure of the generalized Cauchy–Riemann condition and reduce to standard Cauchy–Riemann if
$\rho =1$. The reduction to the above Cauchy–Riemann condition is the main advantage of using
$\varTheta$ over
$\theta$ as a coordinate. For the QS problem,
$\rho$ must be self-consistently determined along with
$\varPhi$ and
$\alpha$. We note that
$\varPhi$ and
$\alpha$ are therefore pseudo-analytic functions (Bers Reference Bers1953).
We similarly write the equations in terms of
$\eta$ and
$\alpha$ (4.8) with this change of variables as
where we have defined
$G(\varTheta ) = g_{\phi \phi }$.
The system (4.12) is a coupled PDE for the three unknowns (
$\eta ,\alpha ,\rho$). The inputs are the functional form of the magnetic field strength,
$B(\eta )$, and the geometric factor,
$G(\varTheta )$, which encodes the surface shape. The helicity of the QS can also be chosen, which fixes the helicity of the streamlines of
$\eta$. The outputs from (4.12) determine the field lines (through
$\alpha (\varTheta ,\phi )$), the field strength (through
$\eta (\varTheta ,\phi )$) and the Jacobian factor (
$\rho (\varTheta ,\phi )$).
5. A parabolic PDE to enforce exact QS on a surface
We now simplify (4.12) to get a single PDE for
$\eta$. Solving for
$\rho F$ in terms of
$\eta$ and
$B(\eta )$ we obtain
Eliminating
$\alpha$ by equating mixed partial derivatives, we now get a single nonlinear PDE for
$\eta$:
which we refer to as the parabolic QS equation. Here,
\begin{equation} \tan\varOmega =\rho F= \frac{\sqrt{\eta_{,\varTheta}^2+\eta_{,\phi}^2-G(\varTheta) B(\eta)^2}}{G(\varTheta)B(\eta)^2}. \end{equation}The above equation when further simplified takes the form
\begin{align} & (\rho F \eta_{,\varTheta}+\eta_{,\phi})^2\partial^2_\phi \eta+ 2(\rho F \eta_{,\varTheta}+\eta_{,\phi})(\eta_{,\varTheta}-\rho F \eta_{,\phi})\partial_\varTheta\partial_\phi \eta + (\eta_{,\varTheta}-\rho F \eta_{,\phi})^2\partial^2_\varTheta \eta \nonumber\\ &\quad =(1+(\rho F)^2)B^3\left( B'(\eta)(1-(\rho F)^2) + \frac{G'(\varTheta)}{2G(\varTheta)}\left(\eta_{,\varTheta}(1-(\rho F)^2)-2\rho F \eta_{,\phi}\right)\right). \end{align}
The right-hand side of the
$\eta$ equation shows that the ‘source’ terms are the gradients of the magnetic field strength
$B(\eta )$ and the geometry factor
$G(\varTheta )$. We shall assume that these two given source terms are well defined and smooth enough for the solution
$\eta (\varTheta ,\phi )$ to be meaningful. Given these two source terms,
$B(\eta )$ and
$G(\varTheta )$, we can in principle solve the nonlinear
$\eta$ equation with the requirement that
where
$\tilde {\eta }$ is doubly periodic. We once again note that
$\tilde {\eta }$ is periodic with respect to
$\varTheta$, but with a periodicity that is generally not
$2{\rm \pi}$. The transformed coordinate,
$\varTheta$, could alternatively be rescaled to be
$2{\rm \pi}$-periodic without impacting our results. The change of coordinates from
$\theta$ to
$\varTheta$ has no effect on the decomposition of
$\eta$ into a secular and a periodic part in (5.5).
We note that the PDE that
$\eta$ satisfies is of parabolic type in general geometry (see Appendix B) in contrast to the generalized Grad–Shafranov equation (Burby et al. Reference Burby, Kallinikos and MacKay2020) which is elliptic. As has been noted by Burby et al. (Reference Burby, Kallinikos and MacKay2020), the Grad–Shafranov equation is only part of the complete set of QS constraints: there are several additional non-trivial constraints ((94)–(97) in Burby et al. (Reference Burby, Kallinikos and MacKay2020)) that need to be satisfied besides the elliptic Grad–Shafranov equations. Addressing the compatibility of the local parabolic QS equation approach and the Grad–Shafranov approach with the additional constraints is left as a future work.
The repeated characteristic of the parabolic equation is given by
The last expression follows from using the vacuum equations.
Therefore, constant
$\alpha$ lines are the repeated characteristics for the
$\eta$ equation.
We shall now make a few changes of variables that considerably simplify the nonlinear parabolic equation. Firstly, to bring the parabolic equation to the standard form we shall transform to
$(\varTheta ,F\alpha )$ coordinates. To further simplify the equations, in particular the source terms, we change variables from (
$\eta ,\varTheta$) to (
$\mathcal {U},\vartheta$), where
Since
$G$ is a physical function periodic in the angle
$\theta$ and
$\varTheta = l_0 \theta + \tilde {\varTheta }(\theta )$, Fourier expanding and integrating in
$\theta$, we conclude that
$\vartheta$ is indeed an angle of the form
$\vartheta = l_1 \theta +\tilde {\vartheta }(\theta )$, where
$l_1$ is a constant and
$\tilde {\vartheta }$ is a periodic function of
$\theta$. For arbitary
$l_1$,
$\vartheta$ does not have a
$2{\rm \pi}$ period. The parabolic QS equation (5.4) in these variables reads
The quantity
$\rho$ is given by
\begin{equation} \rho F ={\pm}\frac{\sqrt{\mathcal{U}_{,\vartheta}^2-1}}{1-B \mathcal{U}_{,F\alpha}}. \end{equation}
The positive and negative signs of
$\rho$ represent outward and inward surface expansions corresponding to the assumption that the flux increases or decreases away from the axis. Equations (5.8) and (5.9) constitute the principal result of this work. The solution of (5.8) yields
$\eta (\theta ,\phi )$ and thus the quasisymmetric field strength through
$B(\eta )$. The necessary deformation of the axisymmetric geometry to support quasisymmetric fields is then provided by (5.9). Owing to
$\vartheta$ having a period different from
$2{\rm \pi}$, the domain of
$\vartheta$ is
$[0,l_1(2{\rm \pi} ))$, where
$l_1$ depends on the surface about which we are expanding.
We now make a few observations from the structure of (5.8) and (5.9). Firstly, for
$\rho$ to be real, we must have
The case
$\mathcal {U}_{,\vartheta }=1$ is not allowed since
$\rho =0$ implies that the flux surfaces overlap. Physically,
$\rho =0$ would correspond to the formation of islands. Secondly, if the gradients of
$G$ and
$B$ are zero,
$\eta =B \mathcal {U}$ and the general solution of
$\mathcal {U}$ is linear in the angle
$\vartheta$:
Since
$\eta$ must satisfy the boundary condition (5.5),
$u_1(F\alpha )$ must be a constant and
$u_2(F\alpha )$ must be a periodic function of
$F\alpha$. Furthermore,
$u_1\neq 1$ to avoid
$\rho =1$. We note that the case
$B'=0$ corresponds to local isodynamic fields (Palumbo Reference Palumbo1968).
In the next section, we shall look for exact and approximate analytical solutions of the QS equation in slab, cylindrical and toroidal geometries. We show that there are critical differences in the nature of the QS solutions for slab and cylinder geometry for which
$G$ is a constant and a real axisymmetric torus for which
$G=G(\vartheta )$.
6. Solutions of the QS equation in different geometries
6.1. Slab and cylindrical geometries
In slab and cylindrical geometries the geometry factor
$G$ is unity (Appendix A). Hence, the only source term in the QS equation is the gradient of
$B$. Exact travelling wave solutions to the
$\eta$ equation (5.4) can be constructed such that
$\eta =\eta (\varTheta -c \phi )$ for constant
$c$. The resulting ordinary differential equation (ODE) in the variable
$(\varTheta -c \phi )$ is
\begin{equation} \eta'' -\frac{B'(\eta)}{B(\eta)}\eta'^2\left( 2-(1+c^2) \left(\frac{\eta'}{B}\right)^2\right)=0, \end{equation}which has an exact solution given by
where
$k$ is the integration constant. Since
$B(\eta )$ is a periodic function of
$\eta$, the integral on the left-hand side defines a function which has periodic terms in
$\eta$ and at most a linear secular term in
$\eta$ arising from the average of the integrand. This can be readily seen by Fourier expanding the integrand in
$\eta$. Therefore, when the function of
$\eta$ is inverted, we get a solution which satisfies the boundary condition (5.5).
Similarly, there exist exact solutions of the form
$\mathcal {U}=\mathcal {U}(\vartheta -c F\alpha )$ to the QS equation (5.8) which reduces to the following ODE in the variable
$(\vartheta -c F\alpha )$:
The ODE has the exact solution
\begin{equation} -\int \textrm{d}\mathcal{U} \frac{ \pm\sqrt{k(1-(c B(\mathcal{U}))^2)+1}+(c B(\mathcal{U}))^2}{c B(\mathcal{U}) \left({\pm}\sqrt{k (1-(c B(\mathcal{U}))^2)+1}+1\right)}= \vartheta-c F\alpha, \end{equation}
with
$k$ as an integration constant. We observe that there are two possible travelling wave solutions in each of the above cases due to the quadratic nature of the equations. This can be interpreted as solutions for which the toroidal flux increases in the direction towards or away from the axis. The existence of two linearly independent solutions is also obtained in the system of equations that arises in an asymptotic expansion near axisymmetry (Plunk & Helander Reference Plunk and Helander2018; Plunk Reference Plunk2020).
6.2. Toroidal geometry with arbitrary aspect ratio and arbitrary shaping
If
$G'(\vartheta )\neq 0$, exact travelling wave solutions do not exist since
$G(\vartheta )$ breaks the travelling wave symmetry. We shall treat the QS equations in this case numerically in § 7. However, analytical progress can still be made in several interesting cases. In the following we give the analytical details of these cases to provide physical insight into the nature of the QS solutions and also to serve as benchmarks for the numerical solution.
6.2.1. Complete axisymmetry
The complete axisymmetric case for arbitrary aspect ratio and shaping can be tackled analytically. In this limit we have
$G=G(\vartheta )$,
$\mathcal {U}= \mathcal {U}( \vartheta )$,
$B=B( \mathcal {U})$ and
$\rho =\rho (\vartheta )$. The QS equation reduces to
The above equation can be integrated once and we obtain
where
$c_0$ is the integration constant. We can rewrite the above equation in the form of an energy equation with a potential
$V(\mathcal {U},\vartheta )$:
From (5.9) it follows that
6.2.2. Isodynamic fields (
$B=B_0,B'=0$)
The QS equation reduces to the following ODE in the variable
$\vartheta$ when
$B=B_0$ is constant on the flux surface:
which has an exact solution
\begin{equation} \mathcal{U} ={\pm} \int \textrm{d}\vartheta \sqrt{\frac{G(\vartheta) B^2_0}{G(\vartheta) B^2_0-c_0}} + \varGamma F\alpha+ \bar{\mathcal{U}}(F\alpha). \end{equation}
The function
$\bar {\mathcal {U}}(F\alpha )$ is an arbitrary periodic function of
$F\alpha$ and
$\varGamma$ is a constant. The corresponding value of
$\rho F$ is
Palumbo's original isodynamic solution (Palumbo Reference Palumbo1968) was axisymmetric, but locally we can always find non-axisymmetric isodynamic fields provided
$\varGamma \neq 0$ and
$\bar {\mathcal {U}}(F\alpha )$ is not a constant.
6.2.3. Localization near
$B'=0$
We shall now look at the behaviour of a non-trivial non-axisymmetric solution in the neighbourhood of
$B'=0$ which we assume happens along
$\mathcal {U}=\mathcal {U}_m$. We shall restrict ourselves to the region
$|\delta \mathcal {U}|=|\mathcal {U}-\mathcal {U}_m|\ll 1$. Even though
$\delta U\ll 1$, we do not expect
$\delta U'$ to be small. Therefore, we can have sharp variations in the solution near
$B'=0$.
In the region near
$B'=0$, we expect the solution to be close to the isodynamic case given by (6.10). We therefore make the ansatz that
$\mathcal {U}$ is of the form
where
$\varGamma$ is a constant. Taylor expanding
$B(\mathcal {U})$ in powers of
$\delta \mathcal {U}$ and keeping only up to the quadratic power in
$\delta \mathcal {U}$ such that
$B=B_0 + B_2 (\delta \mathcal {U})^2+\cdots$, and keeping all nonlinearities in
$\delta \mathcal {U}'$, we get
where prime indicates differentiation with respect to
$\vartheta$. The above equation can be integrated once such that
We can cast the above expression in a energy equation as follows:
\begin{align} \frac{1}{2} \delta \mathcal{U}'^2+V( \delta\mathcal{U}, \vartheta)=0, \quad V( \delta\mathcal{U}, \vartheta)= \frac{1}{2}\left(\frac{c_0}{B_0^2 G}\exp\left({-\left(\frac{2B_2}{B_0} \frac{ \delta \mathcal{U}^2}{1-B_0 \varGamma}\right)}\right)-1\right)^{{-}1}. \end{align}We shall show later that the solution has sharp peaks near the minimum of the magnetic field strength, and we compare with the numerically obtained solution in § 7.
6.2.4. Near-isodynamic limit
We now briefly discuss a bifurcation that can happen when the background geometry
$G(\vartheta )$ and magnetic field strength
$B_0(\vartheta )$ are axisymmetric. If we now look for a small deformation such that magnetic field is quasisymmetric, i.e.
$B=B(\eta )$, we can have the following situations:
(i) Both the field strength and
$\rho$ are axisymmetric.(ii) Both the field strength and
$\rho$ are non-symmetric.
Case (i) implies that
$\eta =\eta (\vartheta )$ and
$\rho =\rho (\vartheta )$. We have analysed this case completely in § 6.2.1. Case (ii) implies that
$\eta$ must have dependence on both
$\vartheta$ and
$F\alpha$, so that
$\rho F$, given by (5.9), is non-symmetric. We now look for solutions of the QS equation (5.8) in the form
where
$B_0$ is a constant background field. The expansion parameter
$\epsilon$ is similar to the large aspect ratio parameter; however, we do not expand the geometry factor. We further require that to lowest order,
$\mathcal {U}$ depends on
$F\alpha$ only through a secular term
$\varGamma F\alpha$:
For quasi-axisymmetry we must have
$\varGamma =0$.
The lowest-order calculations are analogous to the case described in § 6.2.3, since
$B=B_0$ is constant to this order. Denoting
$\vartheta$ derivatives by primes, (5.8) to lowest order implies
which leads to the energy equation
where the integration constant
$c_0$ is a periodic function of
$F\alpha$. It is convenient to separate
$c_0$ into a constant part
$C_0$ and a periodic part
$\tilde {c}_0$. The quantity
$\rho _0 F$ is given by
To
$O(\epsilon )$, we obtain the following linear equation for
$\mathcal {U}_1$:
\begin{equation} \left( \mathcal{U}'_1\sqrt{\frac{(G B^2_0-c_0)^3}{G B^2_0}}\right)'= \frac{c_0}{1-B_0\varGamma}\frac{B'_1(\mathcal{U}_0)}{B_0}\sqrt{\frac{GB_0^2}{GB^2_0-c_0}}. \end{equation}
We note that since
$\mathcal {U}'_1$ is periodic and
$(B_0,\varGamma ,c_0)$ are all independent of
$\vartheta$, the right-hand side of (6.21) must satisfy the condition
\begin{equation} \oint \textrm{d}\vartheta \frac{B'_1(\mathcal{U}_0)}{B_0}\sqrt{\frac{GB_0^2}{GB^2_0-c_0}}=0. \end{equation}
The above constraint is satisfied if both
$B_1$ and
$G$ are stellarator symmetric, for example. Solving for
$\mathcal {U}_1$ we get
\begin{equation} \mathcal{U}_1=c_1(F\alpha)\sqrt{\frac{G B^2_0}{(G B^2_0-c_0)^3}}+ \frac{c_0}{1-B_0\varGamma}\int \textrm{d}\vartheta \frac{B'_1(\mathcal{U}_0)}{B_0}\sqrt{\frac{GB_0^2}{GB^2_0-c_0}}, \end{equation}
where
$c_1$ is a function of
$F\alpha$ to be determined by going to the next order.
The second-order equation is once again of the form (6.21) and the periodicity requirement on
$\mathcal {U}_2$ leads to a Riccati equation for
$c_1$. The calculation is straightforward and we shall skip the details. The Riccati equation for
$c_1$ is of the form
where
$a_1$,
$a_2$ and
$a_3$ are complicated functions of
$c_0(F\alpha )$. The function
$c_1$ has to be a periodic function of
$F\alpha$. Therefore, we must have
Assuming that
$c_0= C_0 + \tilde {c}_0$, we can determine
$C_0$ using (6.25) for a given periodic function
$\tilde {c}_0$. We note that if
$\tilde {c}_0 =0$, i.e.
$c_0$ is a constant, the Riccati equation (6.24) has constant coefficients and can be solved exactly as
Thus, we see that unless
$\varDelta _0=0$,
$c_1$ is not periodic when
$c_0$ is a constant. When
$\varDelta _0=0$, we obtain an axisymmetric solution.
6.2.5. A model for QS fields near an axisymmetric surface
The previous analysis suggests a strong correlation between
$\rho F$ and the product of the geometry factor,
$G$, and the magnetic field strength,
$B^2$. We construct a simple model of QS that captures most of the interesting properties for a large class of travelling-wave-like solutions for arbitrary geometry and field strength factors:
\begin{gather} \mathcal{U} \approx{\pm} \int \textrm{d}\vartheta \sqrt{\frac{G B^2}{G B^2-c_0}} + \varGamma F\alpha, \end{gather}This model is motivated by the solutions obtained in the near-isodynamic limit (6.17)–(6.20). In § 7, we verify this model numerically.
7. Numerical solutions of the QS equations
Although full toroidal geometry can be treated analytically in a few limiting cases, we obtain numerical solutions for the general case. To do so, we construct a spectral solution for
$\alpha$,
$\eta$ and
$\rho$:
\begin{gather} \alpha = \theta - \iota \phi + \sum_{i=1}^{N_{\text{modes}}} \alpha_{m_i,n_i} \sin(m_i \theta- n_i \phi), \end{gather}
\begin{gather}\eta = \theta - N/M \phi + \sum_{i=1}^{N_{\text{modes}}} \eta_{m_i,n_i} \sin(m_i \theta - n_i \phi), \end{gather}
\begin{gather}\rho = \sum_{i=1}^{N_{\text{modes}}+1}\rho_{m_i,n_i}\cos(m_i\theta - n_i\phi), \end{gather}
where we have assumed stellarator symmetry and chosen a normalization such that the secular term in
$\eta$ is unity. We note that
$N/M$ must be a rational number, which determines the helicity of the QS. A nonlinear set of equations is obtained by inserting (7.1) into (4.8) and integrating against a set of
$N_{\text {modes}}+1$ basis functions:
The set of
$3N_{\text {modes}}+3$ unknowns is taken to be
$\{\iota ,\alpha _{m,n},F,\eta _{m,n},\rho _{m,n}\}$ while the helicity
$N/M$ is prescribed in addition to the functional form of
$B(\eta )$. The resulting nonlinear set of equations is solved with a trust region method with a prescribed analytic Jacobian matrix. In the following sections, we verify the numerical solutions in several limits.
Once the solution is obtained, the Boozer angles can be computed as
such that only secular terms remain in the potentials:
Note that we have not assumed
$\bar {I} = 0$ as is the case for a global vacuum field. Thus we allow for the existence of currents asymptotically away from the surface.
7.1. Complete axisymmetry
In the case of pure axisymmetry, we can confirm that solutions of (4.8) agree with numerical solutions of the Grad–Shafranov equation on a surface. To do so, we compute an axisymmetric equilibrium with the VMEC code (Hirshman & Whitson Reference Hirshman and Whitson1983). We consider a boundary given by
and impose toroidal current and pressure profiles which are peaked near the axis,
to provide a non-zero rotational transform. The magnetic field on the surface at
$\psi /\psi _0 = 0.995$ is used to construct
$\rho$,
$\varPhi$,
$\alpha$ and
$\eta$ using (3.7) with
$N = 0$ and
$M = 1$. A Fourier transform is then performed to obtain the functional form of
$B(\eta )$. This solution is provided as an initial guess to the numerical solver of the discretized equations (4.8), including modes with
$m \le 20$, which converges in three iterations to a function tolerance of
$10^{-8}$. Given the numerical solution, we compute the integration constant
$c_0$ from (6.6). The relative variation of
$c_0$ with respect to
$\theta$ is
$3.5\times 10^{-9}$, and its average over
$\theta$ is used to evaluate (6.8). The value of
$\rho F$ computed in this way is displayed as the ‘analytic’ result in figure 1. This is compared with the value computed from the VMEC equilibrium and that obtained from the nonlinear solution. As can be seen, the three solutions are in good agreement. The averaged relative error,
\begin{equation} \text{error} = \frac{\displaystyle\int \textrm{d} \theta | (\rho F)^2 - ((\rho F)^{\text{model}})^2 | }{\displaystyle\int \textrm{d} \theta \, (\rho F)^2}, \end{equation}
between the VMEC and nonlinear solution is
$2.49\times 10^{-5}$, and the averaged residual between the analytic and nonlinear solution is
$1.27\times 10^{-8}$.
Benchmark of pure axisymmetric solution (6.8).

7.2. Bifurcated solutions
We now consider solutions near an axisymmetric solution for which the field strength and
$\rho$ are non-axisymmetric. In order to obtain such numerical solutions, we provide an initial guess, which is a travelling wave solution,
$\eta (c\varTheta -N/M \phi )$. Here the constants
$F$ and
$c$ defining the initial condition are chosen such that the secular terms in
$\theta$ are unity as in (7.1) and
$N/M$ is taken to match the desired helicity.
With this method, we are able to obtain a class of helically symmetric solutions near an axisymmetric surface. We prescribe the field strength to be of the form
and consider the boundary given by (7.5). We present a solution with
$\epsilon = 0.3$ in figures 2 and 3. The nearby surfaces are plotted with a finite value of
$\varDelta \psi = 0.05$:
We note that the surface perturbations are localized on the inboard size of the torus, with a deformation that results in convexity and concavity in the neighbouring surfaces. We discuss the nature of this trend using the models in § 6.2 shortly. Although the background geometry is axisymmetric, we obtain a helical pattern of field strength. As expected, both the field lines and the contours of the field strength become straight when plotted in the Boozer coordinates
$(\vartheta _B,\varphi _B)$. In contrast,
$\rho$ does not exhibit a clear symmetry direction when plotted in the Boozer coordinates. However, the contours appear to be straightened due to the dependence of
$\rho$ on the quantity
$G B^2$, which will be discussed below.
Numerical solution for (a)
$\rho (\theta ,\phi )$, (b)
$B^2(\theta ,\phi )$, (c)
$\rho (\vartheta _B,\varphi _B)$ and (d)
$B^2(\vartheta _B,\varphi _B)$ computed imposing the functional form of the field strength given by (7.8) with
$\epsilon = 0.3$ near the axisymmetric surface given by (7.5). The red lines in (c,d) indicate field lines.

We now compare the models in § 6.2 with this numerical solution. To compare with the model near
$B'(\eta ) = 0$ in § 6.2.3, we expand near the minimum of
$B(\eta )$ at
$\eta = \eta _0 = {\rm \pi}$ and a chosen value of
$\alpha = \alpha _0$. The constant
$\varGamma$ is obtained using the value of
$\mathcal {U}_{,F \alpha }$ at
$(\alpha _0,\eta _0)$. We then note that
so that the exponential in (6.14) can be expressed in terms of
$B_0$ and
$B^2$ rather than
$B_2$. The constant
$c_0$ is then evaluated using (6.14) with the solution for
$\mathcal {U}_{,\vartheta }$ and
$B^2$ at
$(\alpha _0,\eta _0)$. The same expression is then used to model
$\mathcal {U}_{,\vartheta }$ in the neighbourhood of
$(\alpha _0,\eta _0)$, which is denoted by a black star in figure 4. This local model as well as the numerical solution are shown. For the range of
$\alpha$ and
$\eta$ displayed (
$\alpha \in [\alpha _0-{\rm \pi} /2,\alpha _0+{\rm \pi} /2]$ and
$\eta \in [\eta _0 - {\rm \pi} /20,\eta _0+{\rm \pi} /20]$), the averaged relative error,
\begin{equation} \text{error} = \frac{\displaystyle\int \textrm{d} \alpha \int \textrm{d} \eta \left| \mathcal{U}_{,\vartheta}^2 - \left(\mathcal{U}_{,\vartheta}^{\text{model}}\right)^2 \right| }{\displaystyle\int \textrm{d} \alpha \int \textrm{d} \eta \, \mathcal{U}_{,\vartheta}^2}, \end{equation}
is
$1.8\times 10^{-3}$.
We also compare with the near-isodynamic limit (6.27). We expand about the same point
$(\alpha _0,\eta _0)$ and again fix
$\varGamma$ to be the value of
$\mathcal {U}_{,F\alpha }$ at this point. The constant
$c_0$ is then fixed using the value of
$\mathcal {U}_{,\vartheta }$ at this point, and (6.27) is used to model
$\mathcal {U}_{,\vartheta }$ in the neighbourhood of
$(\alpha _0,\eta _0)$. The result is shown in figure 4. The averaged error between the numerical solution and the model is
$2.0\times 10^{-3}$.
While the near-minimum and near-isodynamic models are only valid in the neighbourhood of the minimum of the field strength, the models allow us to glean insight into the global nature of the solution. In particular, we note that the spatial dependence of
$\mathcal {U}_{,\vartheta }$ and
$\rho$ is largely through the combination
$G B^2$. In figure 5 we present the solution for
$\rho (\theta ,\phi )$ for several values of
$\epsilon$. We note that as
$\epsilon$ is increased, the perturbation of the nearby surfaces becomes highly localized, introducing sharp helical structures in
$\rho$. For smaller values of
$\epsilon$, the maximum of
$\rho$ becomes localized on the inboard side where
$G$ is minimized. In the limit that
$\epsilon \rightarrow 0$,
$\rho (\theta ,\phi )$ becomes axisymmetric. The black contours overlaid on the colour-scale plots in figure 5 are contours of
$G B^2$, with the minimum of
$GB^2$ coinciding with the maximum of
$\rho$. While the contours of
$GB^2$ do not exactly coincide with the contours of
$\rho$ for
$\epsilon >0$, we note that much of the structure of the numerical solution is captured. The results we present here are consistent with features of near-axisymmetric quasi-axisymmetric solutions (Plunk & Helander Reference Plunk and Helander2018; Plunk Reference Plunk2020), for which the non-axisymmetric perturbations to the field were localized to the inboard side. In figure 5(f), the major radius of the boundary given by (7.5) is increased to
$R_0 = 100$. In this case,
$G(\vartheta )$ approaches a constant such that the perturbation to the surfaces is no longer localized to the inboard side. The large aspect ratio toroidal solution then approaches the travelling wave (helical) solutions of the slab and cylindrical geometries.
We present numerical solutions using the functional form of the field strength given by (7.8) with the displayed value of
$\epsilon$ near the axisymmetric surface given by (7.5): (a)
$\epsilon = 0$; (b)
$\epsilon = 0.1$; (c)
$\epsilon = 0.2$; (d)
$\epsilon = 0.3$; (e)
$\epsilon = 0.4$; (f)
$\epsilon = 0.3$,
$R_0 = 100$. The colour scale indicates the magnitude of
$\rho (\theta ,\phi )$, with the overlaid black lines indicating the contours of
$GB^2$. In (f), the boundary given by (7.5) is modified such that the major radius is
$R_0 = 100$.

8. Discussion
In this work, we have introduced the formalism for obtaining vacuum magnetic fields with exact QS on a flux surface. The QS is enforced by introducing an unknown,
$\eta$, such that
$B(\eta )$. In solving the relevant equations at the lowest order, the free functions are the shape of the flux surface, the functional form of
$B(\eta )$ and the desired helicity of the QS. This is somewhat analogous to the free functions that arise in the axis expansion equations, for which the axis shape is specified in addition to certain harmonics of the field strength. While the shape of the axis determines the helicity of the QS in the axis expansion, the helicity can be specified in the surface-expansion problem.
As an initial step, we have made several simplifying assumptions in this work. We have focused on the vacuum equations, but the formalism can be easily extended to model force-free or MHD equilibrium fields following Weitzner (Reference Weitzner2016). We have also focused on solutions near an axisymmetric surface. While the surface itself is axisymmetric, non-axisymmetry is introduced in the nearby surfaces and is determined self-consistently as part of the solution. While the introduction of non-axisymmetry in the background geometry complicates the metric tensor (§ A.2), the formalism is not limited to axisymmetry.
Interestingly, we have shown that the resulting equation for
$\eta$ is generally parabolic (Appendix B). This is in contrast to the generalized Grad–Shafranov equation for the flux function in QS (Burby et al. Reference Burby, Kallinikos and MacKay2020), which is elliptic in nature. We leave further analysis of the properties of this nonlinear parabolic PDE to future work. Whether the PDE for
$\eta$ is of parabolic type for force-free or MHD equilibria remains to be shown.
The solutions presented in this work have been obtained under the travelling wave ansatz such that the field strength is helical. For this reason, we were able to converge to quasihelical solutions in general toroidal geometry by initializing with a travelling wave solution. In future work, we aim to explore quasi-axisymmetric and other possible classes of solutions within this formalism.
Although here we have taken a local equilibrium approach, which does not guarantee existence within a global equilibrium, we can extend the formalism to look for global travelling wave solutions in cylindrical and slab geometries. This is a special class of solutions which, if it exists, should satisfy the overdetermined system of equations and will be reported in subsequent work.
Acknowledgements
The authors would like to thank J. McFadden, E. Kim, G. Plunck, G. Roberg-Clark, M. Landreman, R. Jorge and A. Cerfon for helpful suggestions. This research was partly funded by US DOE grant no. DEFG02-86ER53223.
Editor Per Helander thanks the referees for their advice in evaluating this article.
Declaration of interests
The authors report no conflict of interest.
Appendix A. Various geometries
We now give the details of the various geometries that naturally arise in stellarator theory. The simplest geometry is the slab geometry (§ A.1) with doubly periodic boundary conditions. In § A.2 we discuss toroidal geometry, which is equivalent to a periodic cylinder in the infinite aspect ratio limit.
A.1. Slab geometry
We consider a Cartesian coordinate system
$(x,y,z)$. Given surfaces labelled by the toroidal flux
$\psi$, we perform a transformation to the coordinate system
$(\psi ,y,z)$, where
$y$ and
$z$ are
$2{\rm \pi}$ periodic. Given the derivatives of the position vector,
we obtain the following metric coefficients under the assumption of axisymmetry (
$x_{,z} = 0$):
and the full flux coordinate Jacobian is given by
Given these geometric quantities, the vacuum equations in axisymmetric slab geometry take the form
Note that in this coordinate system,
$\varPhi _{,\psi }$ does not vanish as it did for the local coordinate system described by (4.4). Thus (A 4c) can be used to determine the first-order correction to the scalar potential, but this constraint will not be included in the lowest-order system. Defining new variables
the in-surface equations can be cast in the following form:
Thus we recover the system obtained in the main text (4.11) with
$g_{\phi \phi } = 1$.
A.2. Cylindrical and toroidal geometries
We consider the coordinate system
$(\psi ,\theta ,\phi )$, where
$\theta$ and
$\phi$ are 2
${\rm \pi}$ periodic. We map from flux coordinate space to real space using the radius function
$r(\theta ,\phi )$ from a fixed coordinate axis
$\{R_0(\phi ),Z_0(\phi )\}$, where
The derivatives of the position vector are given by
under the assumption of axisymmetry (
$R_0'(\phi ) = Z_0'(\phi ) = r_{,\phi } = 0$).
The metric elements are then given by
and the Jacobian is
Under the cylindrical approximation, we take
$z = R_0 \phi$ to be the axial direction and note that
$\boldsymbol {r}_{,z} = -\hat {\boldsymbol {z}}$ under the assumption that
$r/R_0 \ll 1$. Thus
$g_{zz} = 1$.
Appendix B. Parabolic nature of
$\eta$ equation
In this appendix, we show that the PDE for
$\eta$ remains parabolic for a general metric. We begin with the vacuum equations and QS constraint in general geometry:
\begin{gather} \frac{\rho F}{\mathcal{J}\left(1 + F^2 \rho^2 \right)}\begin{pmatrix} g_{\phi\phi} & -g_{\theta\phi} - F \rho \mathcal{J}\\ -g_{\theta\phi} + F\rho \mathcal{J} & g_{\theta\theta} \end{pmatrix} \begin{pmatrix} \eta_{,\theta} \\ \eta_{,\phi} \end{pmatrix} = \begin{pmatrix} -F\alpha_{,\phi} \\ +F\alpha_{,\theta} \end{pmatrix}, \end{gather}
Combining these two, we obtain an equation for
$\rho F$:
Now equating mixed partial derivatives of
$F\alpha$, we obtain
\begin{align} & \frac{\partial }{\partial \theta} \left[\frac{\rho F}{\mathcal{J}\left(1 + F^2 \rho^2 \right)} \left(g_{\phi\phi}\eta_{,\theta} - \eta_{,\phi} \left(g_{\theta\phi} + F \rho \mathcal{J} \right) \right) \right] \nonumber\\ &\quad + \frac{\partial }{\partial \phi} \left[\frac{\rho F}{\mathcal{J}\left(1 + F^2 \rho^2 \right)} \left(\eta_{,\theta}\left({-}g_{\theta\phi} + F \rho \mathcal{J}\right) + \eta_{,\phi} g_{\theta\theta} \right) \right] =0. \end{align}
After using the expression for
$\rho F$ (B 2), we obtain a single PDE for
$\eta$ which takes the form
with coefficients given by
We see that this form is consistent with (5.4) in the limit that
$g_{\theta \phi } \rightarrow 0$. Therefore, the PDE for
$\eta$ remains parabolic in general geometry. From the coefficients (B 5) and (B 1a), one can see that the repeated characteristics are given by constant
$F\alpha$ curves.























