1. Introduction
1.1. Basics
In this paper choosing constraint equations is central to our approach to developing new fluid models. The concept of a constraint equation occurs in both the variational approach to classical mechanics (see e.g. Goldstein Reference Goldstein1980) and optimization theory (see e.g. Nocedal & Wright Reference Nocedal and Wright2006). While both traditionally treat finite-dimensional systems, the language and techniques of these fields can also help in understanding the infinite-dimensional dynamics of non-dissipative continuous media. In the following we shall distinguish between a hard constraint, i.e. one that is enforced exactly, a soft constraint, one that is enforced only approximately, and a weak version of a hard constraint, one that is enforced as the limiting case of a sequence of soft constraints (formulating such a method being the goal of this work, which it is hoped will lead to a physical regularizationFootnote 1 of magnetohydrodynamics (MHD) that allows reconnection).
We also distinguish between microscopic, i.e. acting within each fluid element or infinitesimal parcel of fluid, and macroscopic constraints, i.e. global within a spatial domain $\varOmega$
of the fluid (or subdomain if the system is partitioned into multiple regions).
The mathematical model we seek to regularize is ideal MHD (IMHD), a special case in the general field of MHD. In the general, resistive case Ohm's law is $\boldsymbol {E}'=\eta \boldsymbol {j}$
, where
is the electric field observed in the local frame of each fluid element, $\boldsymbol {E}$
being the electric field in the lab frame. These elements are advected in the fluid velocity field $\boldsymbol {u}(\boldsymbol {x},t)$
(i.e. $\dot {\boldsymbol {x}}=\boldsymbol {u}$
at each spatial point $\boldsymbol {x}$
and time $t$
). Also $\boldsymbol {B}(\boldsymbol {x},t)$
is the magnetic field, $\eta$
is the resistivity and $\boldsymbol {j(\boldsymbol {x},t)}$
is the electric current density (note that $\boldsymbol {j}=\boldsymbol {\nabla }{\times }\boldsymbol {B}/\mu _0$
in standard non-relativistic MHD, where $\mu _0$
is the vacuum permeability constant used in SI electromagnetic units). We have exhibited $\boldsymbol {u}$
as an explicit argument for use later in the paper, while leaving dependencies on $\boldsymbol {x},t,\boldsymbol {E,}$
and $\boldsymbol {B}$
implicit.
To get IMHD, set $\eta =0$
so that $\boldsymbol {E}'=0$
, giving what is often called the ideal Ohm's law (IOL),
While $\boldsymbol {E}$
is not usually explicit in the IMHD equations, this is only because it is eliminated between (1.2), after taking the curl of both sides, and the Maxwell–Faraday induction equation
to give the IMHD magnetic-field propagation equation
With the ‘pre-Maxwell’ Ampére's law $\boldsymbol {j}=\boldsymbol {\nabla }{\times }\boldsymbol {B}/\mu _0$
and $\boldsymbol {\nabla }\boldsymbol {\cdot }\boldsymbol {B}=0$
, the Maxwell– Faraday equation (1.3) plays the important role of preserving Galilean invariance (Hosking & Dewar Reference Hosking and Dewar2015, § 5.4; Webb & Anco Reference Webb and Anco2019), independent of whether or not the IOL equation is enforced. Thus we shall retain it in the following development of a dynamical relaxation theory.
Equation (1.3) can be viewed as a holonomic constraint on $\boldsymbol {E}$
, and likewise $\boldsymbol {\nabla }\boldsymbol {\cdot }\boldsymbol {B}=0$
is a holonomic constraint on $\boldsymbol {B}$
, i.e. we can remove these constraints from consideration by expressing the constrained variables in terms of fewer unconstrained variables. Here these are the vector and scalar potentials $\boldsymbol {A}$
and $\varPhi$
, respectively, in terms of which
These imply $\boldsymbol {\nabla }\boldsymbol {\cdot }\boldsymbol {B}=0$
and also (1.3), as is easily seen by calculating $\boldsymbol {\nabla }{\times }\boldsymbol {E}$
.
We restrict the choice of gauge to be such that $\varPhi$
is a spatially single-valued potential and such that $\partial _{t}\boldsymbol {A}=0$
in equilibrium cases in a frame (the laboratory frame) where $\partial _{t}\cdot =0$
, so $\boldsymbol {A}$
has no effect on $\boldsymbol {E}$
in that static case. Of course the vector potential still does play an explicit role in describing plasma equilibria because the magnetic flux threading a loop is $\oint \boldsymbol {A}\boldsymbol {\cdot }\, \mathrm {d}\boldsymbol {l}$
. Dynamically, only $\partial _{t}\boldsymbol {A}$
contributes to inductive electromagnetic forces $\oint \boldsymbol {E}\boldsymbol {\cdot }\, \mathrm {d}\boldsymbol {l}$
around closed loops. In our case, we assume electromagnetic forces are zero around any loop on the boundary $\partial \varOmega$
– the trapped-flux boundary condition of relaxed magnetohydrodynamics (RxMHD) (see Appendix B of Dewar et al. Reference Dewar, Yoshida, Bhattacharjee and Hudson2015). Aside from this restriction, there is still considerable gauge freedom in $\boldsymbol {A}$
. If we choose Coulomb gauge, $\boldsymbol {\nabla }\boldsymbol {\cdot }\boldsymbol {A}=0$
, the potential representation is an example of the Helmholtz decomposition of an arbitrary vector field into the sum of curl-free and divergence-free vector fields, but we shall not make this gauge choice except in §§ 5.5 and 6 – we shall treat the magnetic helicity term carefully in our general derivation of the conservation form momentum equation in order to make it gauge invariant.
1.2. Methodology: variational principles and Euler–Lagrange equations
In mechanics and optimization theory there are objective functions whose extrema – maxima, minima and saddle points – are given by Euler–Lagrange (EL) equations, which are found by setting first derivatives of these functions to zero. In mechanics such functions are Hamiltonians whose extrema give stable or unstable equilibria, or actions, time integrals of Lagrangians, whose extrema give physical time evolution equations (Hamilton's principle).
The main aim of this paper is to use an infinite-dimensional generalization of Hamilton's principle in which partial derivatives are replaced by functional derivatives (see e.g. Morrison Reference Morrison1998) of action integrals incorporating the IOL constraint, and also global entropy, magnetic helicity and cross-helicity constraints. These functional derivatives are with respect to the basic physical fields, e.g. $\varPhi$
, $\boldsymbol {A}$
, $\boldsymbol {u}$
, etc., describing the state of the system and are set to zero to find a set of EL equations which together are sufficient to describe the dynamics of the system. For brevity we shall refer, for example, to the equation found by setting the functional derivative with respect to $\varPhi$
as the ‘$\delta \varPhi$
-EL equation’.
1.3. Relaxation
See Appendix A for a brief history of the variational approach to finding relaxed plasma equilibrium states by minimizing the IMHD energy functional using one or more IMHD invariants as global constraints. This construction implies immediately that such relaxed magnetostatic states are a special subset of all possible IMHD equilibria, most of which, being of higher energy, are likely to be more unstable than relaxed states.
In this paper we instead seek to find a time-dependent variational formulation for relaxed plasma systems going through a dynamical phase as they transition from one equilibrium state to another (e.g. due to boundary deformations). Thus, instead of minimizing energy, we use Hamilton's variational principle, widely regarded as the most fundamental principal in all mathematical physics, from general relativity through classical mechanics to quantum field theories (for instance connecting symmetries and conservation laws by Noether's theorem). As we are attempting to establish a new classical field theory related to, but different from, IMHD, it is appropriate to seek new magnetofluid models by modifying the IMHD Hamilton's principle.
Following this precept, Dewar et al. (Reference Dewar, Burby, Qu, Sato and Hole2020) derived a new dynamical magnetofluid model, RxMHD, from Hamilton's action principle using a phase-space version of the magnetofluid Lagrangian with a non-canonical momentum field $\boldsymbol {u},$
physically identified as the laboratory frame mass flow velocity, and a kinematically constrained velocity field $\boldsymbol {v}$
(the fluid velocity relative to a magnetic-field-aligned flow). The resulting EL equations generalize from statics to dynamics the usual relaxation-by-energy-minimization concept developed by Taylor (Reference Taylor1986) for flowless plasma equilibria, and its generalization to equilibria with steady flow by various authors (Finn & Antonsen Reference Finn and Antonsen1983; Hameiri Reference Hameiri1998; Vladimirov, Moffatt & Ilin Reference Vladimirov, Moffatt and Ilin1999; Hameiri Reference Hameiri2014; Dennis et al. Reference Dennis, Hudson, Dewar and Hole2014b). These generalized Taylor equilibria were shown by Dewar et al. (Reference Dewar, Burby, Qu, Sato and Hole2020) to be consistent with RxMHD when time derivatives are set to zero. However, specific cases of equilibria with flows not aligned with the magnetic field have been limited to axisymmetric equilibria; whereas in this paper we aim to treat more general, non-axisymmetric (three-dimensional (3-D)) equilibria with flow, as well as time-dependent problems such as the calculation of the spectrum of normal modes of oscillation of 3-D relaxed equilibria.
The advection equation for $\boldsymbol {B}$
, (1.4), implies the ‘frozen-in flux constraint’, which, as discussed by Newcomb (Reference Newcomb1958), preserves the topology of magnetic field lines. This prevents field-line breaking and reconnection from forming new structures, such as magnetic islands, and this frustration of topological changes leads to singularities developing as time tends towards infinity (Grad Reference Grad1967).
Though in this paper we proceed in a formal way by simply inserting constancy constraints of selected IMHD invariants as postulates, historically the heuristic assumption motivating relaxation theory is that, if it would be energetically favourable to do so, and on a long enough time scale, ‘nature will find a way’ for reconnection to occur, either due to the magnifying effect of large gradients on small but finite resistivity at singularities, or through ‘anomalous’ phenomena such as turbulence. Thus in the RxMHD of Dewar et al. (Reference Dewar, Burby, Qu, Sato and Hole2020) the continuum of local frozen-in flux constraints is replaced by only two constraints involving $\boldsymbol {B}$
, the two global IMHD invariants magnetic helicity and cross-helicity.
However, as will be argued in § 3.2, there is reason to believe that, for general 3-D equilibria with non-integrable magnetic field dynamics, imposing (1.2) as a hard constraint would lead to an ill-posed variational principle with no smooth extremum. In this case we regularize the problem by approaching an IOL-constrained state through a sequence of softly constrained states where the IOL constraint is not exactly satisfied.
For a dynamical RxMHD theory to be fully satisfactory we require it to be well-posed mathematically and desire it to agree with IMHD in two cases: (i) on the boundary $\partial \varOmega (t)$
, because multiregion RxMHD (MRxMHD) interfaces are regarded as arbitrarily thin sheets of IMHD fluid; and (ii) in an equilibrium state with steady flow, when one imagines any transient non-ideal behaviour to have died away, justifying the principle of IMHD-equilibrium consistency (Dewar et al. Reference Dewar, Burby, Qu, Sato and Hole2020).
This consistency principle was satisfied by the one flowing equilibrium test case Dewar et al. (Reference Dewar, Burby, Qu, Sato and Hole2020) looked at using their RxMHD formulation: the rigidly rotating axisymmetric steady-flow equilibrium. However, RxMHD does not enforce the IOL constraint (1.2), so there is no reason to believe that ideal consistency would necessarily apply to more general relaxed equilibria. (Indeed, Dewar et al. (Reference Dewar, Burby, Qu, Sato and Hole2020) showed that small dynamical perturbations about an equilibrium exhibited no tendency to preserve the IOL constraint.)
Specifically, we are interested in non-axisymmetric relaxed steady-flow toroidal equilibria such as may occur in stellarators. The elliptic nature of RxMHD (when flows are small) makes it reasonable to assume that smooth solutions of the RxMHD equations exist for such equilibria. We argue in § 3.2 that, generically, magnetic field and fluid flow lines on these smooth RxMHD solutions will be chaotic so their ergodic properties will exhibit complexity on all scales.
While RxMHD offers no impediment to the formation of such fractal structure (one of the principal motivations for the development of the stepped pressure equilibrium code (SPEC) code (Hudson et al. Reference Hudson, Dewar, Dennis, Hole, McGann, von Nessi and Lazerson2012)) the same is not true for IMHD where the topological constraints arising from its frozen-in-flux properties (see above) force the formation of singularities. The ability of SPEC to study difficult physical problems (Qu et al. Reference Qu, Dewar, Ebrahimi, Anderson, Hudson and Hole2020), and subtle fundamental problems involving chaos (Qu et al. Reference Qu, Hudson, Dewar, Loizu and Hole2021), motivates our current endeavour to extend the RxMHD formalism on which it is based to make it closer to IMHD but to retain sufficient topological relaxation to allow magnetic island formation and chaos, thus allowing further extension of SPEC to hande time-dependent problems in 3-D geometries.
1.4. Background flow
We define a fully relaxed RxMHD equilibrium as one where the electrostatic potential $\varPhi$
has relaxed to a constant value throughout a volume $\varOmega$
, so $\boldsymbol {E}=0$
. As Finn & Antonsen (Reference Finn and Antonsen1983) recognized, this would occur in the extreme case where magnetic field lines fill $\varOmega$
ergodically, because dotting both sides of (1.2) with $\boldsymbol {B}$
gives the derivative along $\boldsymbol {B}$
as $\boldsymbol {B}\boldsymbol {\cdot }\boldsymbol {\nabla }\varPhi =0$
. As we shall see, constant $\varPhi$
implies purely parallel flow, $\boldsymbol {u}=\boldsymbol {u}_{\parallel }$
, whose magnitude is constrained by the steady-flow continuity equation $\boldsymbol {\nabla }\boldsymbol {\cdot }[(\rho /B)\boldsymbol {B}u_{\parallel }]=\boldsymbol {B}\boldsymbol {\cdot }\boldsymbol {\nabla }(\rho u_{\parallel }/B)=0$
, where $\rho$
is mass density. For consistency again with the (unachievable) fully ergodic limit, we define fully relaxed parallel flow as such that $\rho u_{\parallel }/B={\mathrm {const}.}$
We denote this special parallel flow velocity as
where $\nu _\varOmega$
is a constant throughout $\varOmega$
– its significance in the RxMHD formalism is explained below.
In the variational $\boldsymbol {u}, \boldsymbol {v}$
dynamical relaxation formalism of Dewar et al. (Reference Dewar, Burby, Qu, Sato and Hole2020), EL equations for $\boldsymbol {u}$
, $\boldsymbol {v}$
, $\boldsymbol {B}$
and pressure $p$
are derived variationally from Hamilton's principle, while the mass continuity equation is built-in as a holonomic constraint. The fully relaxed flow $\boldsymbol {u}^{\rm Rx}$
occurs in these EL equations, with $\nu _\varOmega$
arising as the Lagrange multiplier for the magnetic helicity constraint in the phase-space Lagrangian (PSL). Specifically, the EL equation arising from free variations of $\boldsymbol {u}$
is
so $\boldsymbol {v}$
is the relative flow, the fluid velocity relative to the fully relaxed flow velocity $\boldsymbol {u}^{\rm Rx}$
.
Noting from (1.7) that $\boldsymbol {\nabla }\boldsymbol {\cdot }(\rho \boldsymbol {u}^{\rm Rx})=0$
, we see that $\boldsymbol {\nabla }\boldsymbol {\cdot }(\rho \boldsymbol {u})=\boldsymbol {\nabla }\boldsymbol {\cdot }(\rho \boldsymbol {v})$
. Thus the continuity equation holds for both $\boldsymbol {u}$
and $\boldsymbol {v}$
, i.e. both flows are microscopically mass conserving. Also, $\boldsymbol {u}{\times }\boldsymbol {B}=\boldsymbol {v}{\times }\boldsymbol {B}$
, so $\boldsymbol {E}'[\boldsymbol {u}]=\boldsymbol {E}'[\boldsymbol {v}]$
. In order to preserve (1.8) in the variational formulation (see later), the version of the IOL constraint we shall be using in the body of this paper is $\boldsymbol {E}'[\boldsymbol {v}]=0$
, which becomes equivalent to $\boldsymbol {E}'[\boldsymbol {u}]=0$
only after the EL equations are derived.
1.5. Domains and boundaries
For most purposes in this paper it is sufficient to restrict attention to plasma within a single domain $\varOmega (t)$
that is closed, of genus at least 1, and whose boundary $\partial \varOmega (t)$
is smooth, gapless, perfectly conducting and time dependent. However, we note this is part of a larger project, the development of MRxMHD (Dewar et al. Reference Dewar, Yoshida, Bhattacharjee and Hudson2015), in which $\varOmega$
is but a subregion of a larger plasma region, partitioned into multiple relaxation domains physically separated by moving interfaces. As $\partial \varOmega (t)$
is the union of the inward-facing sides of the interfaces $\varOmega (t)$
shares with its neighbours, it transmits external forcing to the restricted subsystem within $\varOmega (t)$
and imparts equal and opposite reaction forces on the neighbouring subdomains.
We take the interfaces to be perfectly flexible and impervious to mass and heat transport. We also take them to be impervious to magnetic flux like a superconductor, implying the tangentiality condition
where $\boldsymbol {B}\stackrel {\text {def}}{=}\boldsymbol {\nabla }{\times }\boldsymbol {A}$
is the magnetic field and $\boldsymbol {n}$
is a unit normal at each point on $\partial \varOmega$
(here and henceforth leaving the argument $t$
implicit in $\varOmega$
, $\boldsymbol {n}$
, etc.). Also, to conserve magnetic fluxes trapped within $\varOmega$
, loop integrals of the vector potential $\boldsymbol {A}$
within the interfaces must be conserved (see e.g. Dewar et al. Reference Dewar, Yoshida, Bhattacharjee and Hudson2015).
1.6. Layout of this paper
The PSL variational approach to deriving IMHD equations is briefly reviewed in § 2, then some general implications of the IOL when it is a hard constraint are discussed in § 3 including speculations in § 3.2 on the implications of chaos and ergodic theory on flows in 3-D systems, and in § 3.1 the $\boldsymbol {{E}}{\times }\boldsymbol {B}$
drift is derived.
In § 4 the adaptation of the augmented Lagrangian penalty function method from optimization theory to the physical purpose of approximating the IOL constraint is discussed as a softly constrained optimization problem in § 4.1.1, and the specific Lagrangian density constraint term for this method is given in § 4.1. The entropy, magnetic helicity and cross-helicity conservation constraints used in RxMHD theory are discussed in § 4.2, and the complete PSL to be used in this paper is constructed in § 4.3.
In § 5 the EL equations, including an equation of motion in momentum conservation form, are derived formally in § 5.1, and in specific forms in §§ 5.2–5.7 where the IOL constraint term provides new contributions that vanish only when the constraint is satisfied. In addition to the momentum equation form, an equation of motion in Bernoulli form is derived. A physical interpretation of the Lagrange multiplier for the IOL constraint in terms of a polarization field is also mentioned.
Section 6 illustrates the implementation of the augmented Lagrangian method for linear waves propagating on an IOL-compliant equilibrium in the Wentzel–Kramers–Brillouin (WKB) approximation. A continuous family of dispersion relations for wave residuals $\tilde {\boldsymbol {C}}$
ranging from zero in the IMHD case to its value in the RxMHD case, where it is the perturbed Lagrange multiplier $\tilde {\boldsymbol {\lambda }}$
that is set to zero.
The conclusion, § 7, briefly summarizes what has been achieved in this paper and what more needs to be done. More detail on derivations of equations is available as online supplementary material which are available at https://doi.org/10.1017/S0022377821001355 in an unabridged version of this paper.
A brief historical overview of MHD relaxation theory is given in Appendix A and some useful vector and dyadic calculus identities are derived in Appendix B; in particular the little-known identity (B7), which is crucial for getting the general form of the momentum equation (5.8) into a general conservation form, (5.12).
2. Ideal MHD in phase space
The mathematical foundation on which our dynamical relaxation formalism is built is a non-canonical form (which we call the $\boldsymbol {u}$
, $\boldsymbol {{v}}$
picture) of the canonical MHD Hamiltonian, and a PSL. Here we review how Hamilton's action principle leads to IMHD when microscopic constraints on entropy and magnetic flux are applied. Later we show how RxMHD arises when these are replaced by global constraints using the same PSL formalism.
Both IMHD and RxMHD start from the canonical MHD Hamiltonian

where $\boldsymbol {\pi }(\boldsymbol {x},t)$
is the canonical momentum density, the analogue of $p$
in finite-dimensional classical dynamics.
The analogue of $q$
is not $\boldsymbol {x}$
the Eulerian independent variable but $\boldsymbol {r}$
, the Lagrangian position with respect to a given reference frame. We do not make this explicit as we shall always work in the Eulerian picture, but the Lagrangian picture in the background does manifest in interpreting variations. (This is discussed in more detail by Dewar et al. (Reference Dewar, Burby, Qu, Sato and Hole2020).) For instance, the analogue of the variation $\delta q$
at fixed $t$
is $\Delta \boldsymbol {x}=\boldsymbol {\xi }(\boldsymbol {x},t)$
, the Lagrangian fluid displacement in Eulerian representation, and the analogue of the variation $\dot {q} \delta t$
is $\boldsymbol {v}(\boldsymbol {x},t) \delta t$
, which we shall refer to as the Lagrangian velocity field (not always the same as the Eulerian velocity $\boldsymbol {u}$
). Both IMHD and RxMHD also use the constrained kinematic variation Newcomb (Reference Newcomb1962),
They also use the mass density variation
which is an expression of the microscopic conservation of mass and can be found by integrating the perturbed continuity equation
along varied Lagrangian trajectories $\boldsymbol {r}(t|\boldsymbol {x}_{0})$
(Frieman & Rotenberg Reference Frieman and Rotenberg1960) and expressing this Lagrangian variation in the Eulerian picture (Newcomb Reference Newcomb1962).
Instead of seeking a Poisson bracket to get phase-space dynamics from $H$
(see e.g. Morrison Reference Morrison1998), we instead work directly with the canonical PSL density $\mathcal {L^{\textrm {MHD}}}$
,

and the corresponding canonical phase-space action
as the primary tools, deriving EL equations from Hamilton's principle of stationary action
varying phase-space paths under appropriate constraints.
We have used the subscript notation $\cdot _{\textrm {ph}}$
on the Lagrangian $L_{\textrm {ph}}$
and the action $\mathscr {S}_{\textrm {ph}}$
to make it clear the PSL defined in (2.5) is fundamentally different from the more usual configuration space Lagrangian and action. This is because, in (2.6), $\boldsymbol {\pi }$
is now regarded as freely variable, so the dimensionality of the space of allowed variations is doubled in the phase-space action principle.
For instance, varying $\boldsymbol {\pi }$
in (2.5) gives the $\delta \boldsymbol {\pi }$
-EL equation $\delta \mathscr {S}_{\textrm {ph}}/\delta \boldsymbol {\pi }=\boldsymbol {v}-\boldsymbol {\pi }/\rho =0$
, i.e. multiplying by $\rho$
, the analogue of $p=m\dot {q}$
is seen to be $\boldsymbol {\pi }=\rho \boldsymbol {v}$
, as expected. Likewise, using the microscopic holonomic constraints of entropy and flux, $\delta p=-\gamma p\boldsymbol {\nabla }\boldsymbol {\cdot }\boldsymbol {\xi }-\boldsymbol {\xi }\boldsymbol {\cdot }\boldsymbol {\nabla } p$
and $\delta \boldsymbol {B}=\boldsymbol {\nabla }{\times }(\boldsymbol {\xi }{\times }\boldsymbol {B})$
, respectively, one can verify that the EL equation arising from Lagrange-varying $\boldsymbol {x}$
(i.e. varying $\boldsymbol {\xi }$
) is just the IMHD equation of motion.
However, as it is not customary in fluid mechanics to work with canonical momenta, we follow Burby (Reference Burby2017) in exploiting the freedom afforded by the PSL to work with a velocity-like phase-space variable $\boldsymbol {u}$
, obtained by the non-canonical change of variable $\boldsymbol {\pi }=\rho \boldsymbol {u}$
. Then the canonical Hamiltonian density (2.1) becomes the non-canonical Hamiltonian density
and the PSL density in non-canonical form becomes, from (2.5),

As neither $p$
nor $\boldsymbol {B}$
depends on $\boldsymbol {u}$
, the $\delta \boldsymbol {u}$
-EL equation is $\delta \mathscr {S}_{\textrm {ph}}^{\textrm {MHD}}/\delta \boldsymbol {u}=\rho \boldsymbol {v}-\rho \boldsymbol {u}=0$
, i.e. in IMHD we have $\boldsymbol {v}=\boldsymbol {u}$
. The IMHD equation of motion, which can be written in conservation form as
where
follows as it does for the $\boldsymbol {\xi }$
-EL equation in the canonical form.
It will be shown below that an isothermal version of IMHD can be derived by replacing the holonomic variational constraint $\delta p=-\gamma p\boldsymbol {\nabla }\boldsymbol {\cdot }\boldsymbol {\xi }-\boldsymbol {\xi }\boldsymbol {\cdot }\boldsymbol {\nabla } p$
with a global entropy conservation constraint, giving thermal relaxation, a more realistic model for hot plasmas than the microscopic entropy constraints implied by $\delta p=-\gamma p\boldsymbol {\nabla }\boldsymbol {\cdot }\boldsymbol {\xi }-\boldsymbol {\xi }\boldsymbol {\cdot }\boldsymbol {\nabla } p$
.
3. Implications of the IOL constraint
In this section we examine consequences of applying the IOL constraint (1.2) in the form (see § 1.4) $\boldsymbol {E}'[\boldsymbol {v}]=0$
, which can be written $-\boldsymbol {E}=\boldsymbol {v}{\times }\boldsymbol {B}$
or $\partial _{t}\boldsymbol {A}+\boldsymbol {\nabla }\varPhi =\boldsymbol {v}{\times }\boldsymbol {B}$
.
3.1. $\boldsymbol {E}{\times }\boldsymbol {B}$
drift
As $\boldsymbol {E}'=\boldsymbol {E}+\boldsymbol {v}{\times }\boldsymbol {B}$
we have the two identities
Equation (3.1) leads to a decomposition of the relative fluid flow into a component $v_{\parallel }$
tangential to $\boldsymbol {B}$
at $\boldsymbol {x}$
, and a component $\boldsymbol {v}_{\perp }$
, its projection onto the plane transverse to $\boldsymbol {B}$
, the ‘$\boldsymbol {E}{\times }\boldsymbol {B}$
drift’,
It is usually safe to assume $B^{2}\neq 0$
anywhere in toroidally confined plasmas, so the representation (3.3) generally applies everywhere, and to both equilibrium and dynamic MHD cases.Footnote 2
3.2. The equilibrium ergodicity problem
Resolving the IOL onto the vectors $\boldsymbol {B}$
and $\boldsymbol {v}$
(or $\boldsymbol {{u}}$
) eliminates the $\boldsymbol {v}{\times }\boldsymbol {B}$
term, so in equilibrium, when $\partial _{t}\boldsymbol {A}=0$
, these components of the IOL imply
This means $\varPhi ={\mathrm {const}.}$
on stream lines as well as magnetic field lines. As a consequence, level sets of $\varPhi$
are invariant under magnetic and fluid flow. For instance, if $\varPhi$
has smoothly nested level surfaces in a region then both $\boldsymbol {u}$
and $\boldsymbol {B}$
lie in the local tangent plane at each point on each isopotential surface – the magnetic and fluid flows are both locally integrable.
In the opposite extreme, Finn & Antonsen (Reference Finn and Antonsen1983) (after (29)) conclude from the constancy of $\varPhi$
along a field line that ‘if the turbulent relaxation has ergodic field lines throughout the plasma volume’, then $\boldsymbol {\nabla }\varPhi =0$
, which implies that $\boldsymbol {u}{\times }\boldsymbol {B}=0$
– the fluid flows along magnetic field lines. As already mentioned, we call such field-aligned steady flows fully relaxed equilibria (though the converse does not apply – field-aligned flows can be integrable).
However, field-aligned flow equilibria exclude many applications of physical interest – in particular tokamaks with strong toroidal flow. For such axisymmetric equilibria, Dewar et al. (Reference Dewar, Burby, Qu, Sato and Hole2020) show RxMHD can give the same axisymmetric relaxed solutions with cross-field flow as found by Finn & Antonsen (Reference Finn and Antonsen1983) and Hameiri (Reference Hameiri1983), but without needing the angular momentum constraint used by these authors.
Unlike Finn & Antonsen (Reference Finn and Antonsen1983) we are not appealing to turbulence to justify relaxation, but, in fully 3-D plasmas, we may be able to appeal to the existence of chaotic magnetic field and stream lines. However, ‘chaotic’ is not the same as ‘ergodic’ – while chaotic flows do involve ergodicity, this is in an infinitely complicated way, visualized in figure 1 in terms of the fractal ergodic partition of Mezić & Wiggins (Reference Mezić and Wiggins1999) and Levnajić & Mezić (Reference Levnajić and Mezić2010). (This figure is generated for an iterated area-preserving map, but magnetic field-line flows being flux preserving, the magnetic field-line return map of a Poincaré section onto itself in a magnetic containment device is similar.)
Ergodic partitions of iterates of the standard map as depicted in figure 11 of Levnajić & Mezić (Reference Levnajić and Mezić2010). (Reprinted with permission from Chaos.)

A similar problem involving chaos and ergodicity arises in magnetohydrostatics (Hudson et al. Reference Hudson, Dewar, Dennis, Hole, McGann, von Nessi and Lazerson2012), where the equilibrium condition $\boldsymbol {\nabla } p=\boldsymbol {j}{\times }\boldsymbol {B}$
implies $\boldsymbol {B}\boldsymbol {\cdot }\boldsymbol {\nabla } p=0$
, analogously to (3.4) for $\varPhi$
, so the fractal ergodic partition for field-line flow is as relevant to the pressure $p$
as it is for the potential $\varPhi$
. In their MRxMHD equilibrium code, Hudson et al. (Reference Hudson, Dewar, Dennis, Hole, McGann, von Nessi and Lazerson2012) solved the puzzle posed by Grad (Reference Grad1967) (i.e. how to formulate the 3-D IMHD equilibrium problem so as to avoid a ‘pathological’ pressure profile) by using a much simpler ergodic partition obtained by aggregating contiguous elements of the fractal ergodic partition into a finite number of constant-pressure ‘relaxation regions’ $\varOmega _{i}$
, with pressure changing (discontinuously) only across the interfaces between the $\varOmega _{i}$
s. The code was thus named the stepped pressure equilibrium code (SPEC).
3.2.1. Continuity of electrostatic potential
One might think that an analogous ‘stepped potential equilibrium’ could provide a solution to the problem of finding a non-trivial but tractable solution of $\boldsymbol {\nabla }_{\parallel }\varPhi \stackrel {\textrm {def}}{=}(\boldsymbol {B}/B)\boldsymbol {\cdot }\boldsymbol {\nabla }\varPhi =0$
in a chaotic magnetic-field-line flow. Unfortunately, however, we must restrict $\boldsymbol {\nabla }_{\perp }\varPhi \stackrel {\textrm {def}}{=}({\boldsymbol{\mathsf{I}}}-\boldsymbol {B}\boldsymbol {B}/B^{2})\boldsymbol {\cdot }\boldsymbol {\nabla }\varPhi$
to square-integrable functions in order to keep the $\boldsymbol {E}{\times }\boldsymbol {B}$
drift (3.3) from acquiring a $\delta$
-function component.
This rules out having steps in $\varPhi$
because $\delta$
-functions are not square integrable, so stepped potentials would make the kinetic energy integral infinite. However, this does not necessarily imply $\varPhi$
is constant in weakly chaotic regions with a finite measure of Kolmogorov–Arnold–Moser (KAM) surfaces – perhaps weak KAM theory (see e.g. Fathi Reference Fathi2009) would allow fractal potential profiles having finite kinetic energy associated with them.
As a way to handle non-constant $\varPhi$
computationally we propose using a penalty or augmented Lagrangian method (see e.g. Nocedal & Wright Reference Nocedal and Wright2006). That is, we treat Hamilton's principle as a constrained saddle-point optimization problem and add a penalty functional to the Hamiltonian, which regularizes the variational problem by approaching the (perhaps fractal) IMHD ‘feasible region’ of configuration space from outside, in the less-constrained space on which RxMHD is defined (which is smoother, see figure 1 of Dewar et al. (Reference Dewar, Burby, Qu, Sato and Hole2020)).
Another approach might be a time-evolution code with added dissipation such that the long-time solution is attracted to one having chaotic regions of constant pressure interspersed with integrable regions with changing pressure. This can be viewed as a steepest-descents solution of the same optimization problem.
4. Constraints and constrained optimization
In this section we first discuss the new aspect of variational relaxation theory introduced in this paper, namely the imposition of IOL as a constraint.
We then review use the Lagrange multiplier method in § 4.3 for imposing the conservation of entropy, magnetic helicity and cross-helicity as hard constraints, causing the EL equations, and hence the conserved quantities, to be parameterized by the triplet of multipliers $\tau _{\varOmega }$
, $\mu _\varOmega$
and $\nu _\varOmega$
(the subscripts $\varOmega$
indicating they are constant throughout $\varOmega$
, but may jump across $\partial \varOmega$
if there are adjacent relaxation regions as in MRxMHD).
4.1. Augmented Lagrangian constraint method
In implementing the IOL constraint we propose to adapt the augmented Lagrangian method from finite-dimensional optimization theory, as described by Nocedal & Wright (Reference Nocedal and Wright2006, § 17.3), or for Banach spaces (see e.g. Kanzow, Steck & Wachsmuth (Reference Kanzow, Steck and Wachsmuth2018) and references therein). This is a hybrid numerical method that combines two constraint approaches: the Lagrange multiplier method and the penalty function method. We shall use the Lagrange multiplier method in § 4.3 for imposing the conservation of entropy, magnetic helicity and cross-helicity as hard constraints, causing the EL equations, and hence the conserved quantities, to be parameterized by the triplet of multipliers $\tau _{\varOmega }$
, $\mu _\varOmega$
and $\nu _\varOmega$
(the subscripts $\varOmega$
indicating they are constant throughout $\varOmega$
, but may jump across $\partial \varOmega$
if there are adjacent relaxation regions as in MRxMHD).
To impose the IOL as a hard constraint using the Lagrange multiplier method we would ‘simply’ add $\boldsymbol {\lambda }\boldsymbol {\cdot }(\boldsymbol {E}+\boldsymbol {v}{\times }\boldsymbol {B})$
to the Lagrangian density, solve the resultant EL equations to give $\boldsymbol {E}+\boldsymbol {v}{\times }\boldsymbol {B}$
as a function of the Lagrange multiplier $\boldsymbol {\lambda }$
, and then solve for $\boldsymbol {\lambda }$
such that $\boldsymbol {E}+\boldsymbol {v}{\times }\boldsymbol {B}=0$
.
Apart from the unavoidable complication that $\boldsymbol {\lambda }$
is not just a 3-vector but also is a function of $\boldsymbol {x}$
and $t$
, so infinite-dimensional, there is the more fundamental problem, flagged in § (3.2), that the limit $\boldsymbol {E}+\boldsymbol {v}{\times }\boldsymbol {B}\to 0$
is likely singular in 3-D equilibria because $\boldsymbol {E}$
, $\boldsymbol {v}$
and $\boldsymbol {B}$
presumably tend towards being fractal functions. Thus there is good reason to believe the hard IOL constraint problem is ill-posed in 3-D systems such as stellarators, which leads us to seek a soft IOL constraint approach in order to regularize the Hamilton's principle optimization problem.
We build in the Maxwell–Faraday induction constraint (1.3) as a hard constraint by using the potential representations (1.6), $\boldsymbol {E}=-\boldsymbol {\nabla }\varPhi -\partial _{t}\boldsymbol {A}$
and (1.5), $\boldsymbol {B}=\boldsymbol {\nabla }{\times }\boldsymbol {A}$
. Thus the set of primary variables subject to variation during an optimization is
where $\boldsymbol {{r}}$
is the Lagrangian fluid-element position field discussed in § 2. (Note we have not included $\rho$
and $\boldsymbol {v}$
as independent variables because they are functionals of $\boldsymbol {r}$
, with variations given by (2.3) and (2.2).)
The simplest soft IOL constraint approach is to add ${\frac {1}{2}}\mu ^{P}_{\varOmega }(\boldsymbol {E}+\boldsymbol {v}{\times }\boldsymbol {B})^{2}$
to the Hamiltonian density (thus subtracting it from our Lagrangian density), where $\mu ^{P}_{\varOmega }\to +\infty$
is a penalty multiplier. In this limit the penalty term is supposed to dominate all other terms in the Hamiltonian or Lagrangian and enforce IOL feasibility through a sequence of infeasible solutions. However, this method is clearly ill-conditioned numerically, leading us to resort to the ‘best of both worlds’ augmented Lagrangian method described below.
4.1.1. The IOL as a softly constrained optimization problem
In implementing the parallel IOL constraint we propose to adapt the augmented Lagrangian method from finite-dimensional optimization theory, as described by Nocedal & Wright (Reference Nocedal and Wright2006, § 17.3), or for Banach spaces (see e.g. Kanzow et al. (Reference Kanzow, Steck and Wachsmuth2018) and references therein). This is a hybrid numerical method that combines two constraint approaches: the Lagrange multiplier method and the penalty function method sketched above.
As well as adapting notation and methods from optimization theory we have borrowed the term ‘feasible region’, meaning the range in which the vector $X$
of variables to be solved for is such that a set of equality constraints $c_{i}[X]=0$
are satisfied (also inequality constraints $c_{i}[X]>0$
, but we do not consider this case). The infeasible region, is its complement, where one or more constraints are violated. By hard constraint we mean one where $X$
must be in the feasible region, and by soft constraint we mean one where $X$
need only be in some neighbourhood of the feasible region, which is useful both practically and for regularizing when, as in MHD, defining the boundary between feasible and infeasible is complicated by the possibility of singular behaviour like current sheets and reconnection points.
We now formulate two related physical tasks, the simpler one being (task 1) the equilibrium problem. In toroidal plasma confinement theory the most physically desirable states are stable, time-independent equilibria, i.e. minima of a Hamiltonian functional $\mathscr {H}[X]$
, kinetic plus potential energy within a static boundary $\partial \varOmega$
. We seek a numerical algorithm that starts from an initial guess for the physical fields $X$
and iterates to extremize (minimize if seeking a stable equilibrium) a Hamiltonian, under the IOL equality constraint, (1.2). Finding a stable equilibrium can be stated concisely as the optimization problem.

where
is the generalization of the finite set of equality constraint functions $\{ c_{i}\}$
of Nocedal & Wright (Reference Nocedal and Wright2006) (as a 3-vector it is finite-dimensional but as a function of $\boldsymbol {x}$
it is infinite-dimensional).
For the purposes of the present paper $\mathscr {H}$
is the non-canonical version, $H_{\textrm {nc}}^{\textrm {MHD}}$
, of the Hamiltonian, $H^{\textrm {MHD}}$
defined in (2.1) plus the global constraint terms described in the next subsection, § 4.2. The ideal boundary conditions are $\boldsymbol {E}+\boldsymbol {v}{\times }\boldsymbol {B}=0$
, $\boldsymbol {{n}}\boldsymbol {\cdot }\boldsymbol {v}=0$
, $\boldsymbol {{n}}\boldsymbol {\cdot }\boldsymbol {B}=0$
on $\partial \varOmega$
and $\varPhi ={\mathrm {const}.}$
on each disjoint component of $\partial \varOmega$
(think plates of a capacitor or electrodes of a vacuum tube).
To treat the implementation of the IOL in Hamilton's principle, a constrained saddle point optimization problem, we shall use the set of values of the components of $\boldsymbol {E}'(\boldsymbol {{x}}\in \varOmega )$
; note the identities
We seek a soft form of the equilibrium constraint, i.e. a formulation such that $\boldsymbol {C}\to 0, \forall \,\boldsymbol {x}\in \varOmega$
, where $\to$
denotes a limiting process whereby $X$
moves from the infeasible class of states where $\boldsymbol {C}\neq 0$
towards the feasible class defined pointwise as $\boldsymbol {C}=0,\,\forall \,\boldsymbol {x}\in \varOmega (t)$
, or, in a weak form, as $||\boldsymbol {C}||=0$
. Such a soft constraint procedure is provided by the augmented Lagrangian (or, rather, Hamiltonian in the equilibrium problem) as prescribed by Nocedal & Wright (Reference Nocedal and Wright2006, § 17.3),
where $\boldsymbol {\lambda }$
is a Lagrange multiplier and the spatial constant $\mu ^{P}_{\varOmega }\geq 0$
is a penalty multiplier of the non-negative quadratic penalty ${\frac {1}{2}}\int _{\varOmega }\boldsymbol {C}^{2}\,\mathrm {d} V$
.
Nocedal & Wright (Reference Nocedal and Wright2006, § 17.3) give an iterative algorithmic framework that combines the advantages of both the Lagrange multiplier and penalty function methods. In their algorithm the user provides an increasing sequence $\{ \mu ^{P}_{\varOmega }|^{n},:n=0,1,2,\ldots \}$
of penalty multipliers and adjusts $\boldsymbol {\lambda }$
to solve for the minima of Hamiltonians with the Lagrange multiplier and penalty terms. The iteration update rule for the sequence of Lagrange multipliers and corresponding constraint residuals $\{ \boldsymbol {\lambda }^{n},\boldsymbol {C}^{n}:n=0,1,2,\ldots \}$
is
In the following sections we shall take the iteration index $n$
as implicit unless needed for clarity, with the updated $\boldsymbol {\lambda }$
as given by the right-hand side of (4.6) denoted by
which is a ‘best estimate’ of the optimum Lagrange multiplier given the current estimate and penalty multiplier.
The more difficult second physical task (task 2) is the time evolution problem. This is similar to task 1 except we seek an evolution, a dynamical path in space-time $\varOmega _{t}\times [t_{1},t_{2}]$
given a time-dependent boundary $\partial \varOmega _{t}$
, the objective function for extremization now being an action integral. The stable minima of the Hamiltonian now becoming saddle points of the corresponding action functional $\mathscr {S}[X]$
, kinetic minus potential energy. This task can be summarized as the pseudo optimization problem.
under the same boundary conditions as for equilibrium at each time $t$
.
Although sometimes called the ‘principle of least action’, Hamilton's principle is often not an optimization problem but rather a saddle point problem, where the stationary point of $\mathscr {S}[X]$
cannot be found by a descent algorithm. (This is well known in nonlinear Hamiltonian dynamics (Meiss Reference Meiss1992) where periodic orbits are classified as (action) minimizing orbits, which are hyperbolic (unstable), or as minimax orbits, which are elliptic (stable).) Although ‘extremum’ or ‘extremization’ is not quite correct either, as extremum strictly means ‘maximum or minimum’, it is convenient to use the abbreviation ‘extr’ as an abbreviation for these words and add the rider ‘depending on direction of traversal’ (implying also the existence of neutral directions between max and min), so as to include saddle points.
To find saddle points requires some form of Newton method, needing at least estimates of the second variation (Hessian matrix) rather than a descent method. The augmented Lagrangian method still works if we solve (4.8) at each iteration, so here again we adopt it to solve for a stationary point of the augmented phase-space action functional (2.9),
where the augmented penalty constraint density $\mathcal {L}_\varOmega ^{C}$
is defined by
where $\boldsymbol {\lambda }$
and $\mu ^{P}_{\varOmega }$
are taken as external parameters in the application of Hamilton's principle at each iteration, giving a sequence of regularized magnetofluid models. When $\mu ^{P}_{\varOmega }=0$
, the pure Lagrange multiplier method, feasible critical points of $\mathscr {H}_{{A}}$
might be saddle points with descending directions in the infeasible sector even if they are physically stable ideal equilibria where the IMHD Hamiltonian is minimized. When $\boldsymbol {\lambda }=0$
, the pure penalty function method, feasible stable equilibria could be approximated arbitrarily well in the limit as $\mu ^{P}_{\varOmega }$
tends to infinity, but this becomes an increasingly ill-posed optimization problem. (It does, however, have the attractive feature of providing a continuous family of RxMHD models running from the RxMHD of Dewar et al. (Reference Dewar, Burby, Qu, Sato and Hole2020) when $\mu ^{P}_{\varOmega }=0$
to a subset of weak IMHD when $\mu ^{P}_{\varOmega }\to +\infty$
.)
Remarks:
(i) task 1 can be treated as a subclass of task 2 in which time derivatives are set to zero and $t$
is taken to be an irrelevant constant, but the Hamiltonian is more appropriate than the Lagrangian for treating it as an optimization problem;
(ii) the iteration method for implementing constraints is implicit, meaning that the state variables in the $n$
th iteration need to be found by solving EL equations, taking it for granted the EL equations can be solved and any subiterations required have converged.
We shall not discuss detailed implementation issues here, except to remark that time evolution over a large time interval can be implemented numerically in an outer time stepping loop in which a large time interval is split into multiple short time intervals (time steps) $[t_{i},t_{i+1}]$
, within each of which constraint iterations are repeated until converged to the required accuracy. Thus the evolutions required in implementing the constraint iterations are over short time intervals, with each initial guess being the converged evolution from the previous time step and the evolution representable to sufficient accuracy on a low-dimensional interpolation basis (e.g. dimension two for piecewise-linear representation of the full evolution) – the increase in difficulty in going from task 1 to task 2 may not be as great as at first it appears to be.
4.2. Global constraints for isothermal RxMHD and IMHD
We shall always retain the microscopic holonomic constraints (§ 2) on $\rho$
and $\boldsymbol {v}$
, but we relax the infinite number of microscopic dynamical constraints on $p$
and $\boldsymbol {B}$
imposed in IMHD by replacing these constraints with only three macroscopic hard constraints. These three constraints, described below, are chosen to be quantities that are exact invariants under IMHD dynamics in order to ensure that relaxed equilibria are subsets of all ideal equilibria. Further, as we seek plasma relaxation formalisms applicable in arbitrary 3-D toroidal geometries, we invoke only the MHD invariants least dependent on integrability of the fluid and magnetic field line flows, the conservation of total mass $M_{\varOmega }\stackrel {\textrm {def}}{=}\int _{\varOmega }\rho \,\mathrm {d} V$
being the most fundamental (whose conservation is built in microscopically). While these global invariants are not as well conserved as mass under small resistive, viscous and 3-D chaos effects, in the spirit of Taylor (Reference Taylor1986) we assume they are sufficiently robust that postulating their conservation produces a model that is useful in appropriate applications.
We can get IMHD by retaining all the microscopic holonomic constraints of § 2, but it seems more physically relevant to almost collisionless hot plasmas with high thermal conductivity along magnetic field lines to relax the plasma thermally by relaxing the microscopic dynamical constraint on $p$
and replacing it with the first global constraint below (entropy) to give isothermal IMHD.
As just indicated, our first global constraint is the adiabatic-ideal-gas thermodynamic invariant, total entropy
where $\kappa$
is, for our purposes, an arbitrary dimensionalizing constant, though it can be identified physically through a statistical mechanical derivation of (4.11) (see e.g. Dewar et al. Reference Dewar, Yoshida, Bhattacharjee and Hudson2015). Its functional derivatives are
We also impose conservation of the magnetic helicity $2\mu _0 K_{\varOmega }$
, where, following Bhattacharjee & Dewar (Reference Bhattacharjee and Dewar1982), we define the invariant $K_{\varOmega }$
as
giving, with help of (B2), the functional derivative
As discussed by Hameiri (Reference Hameiri2014), in single-fluid IMHD we do not have a separate fluid helicity invariant, but do have the cross-helicity $\mu _0 K_{\varOmega }^{{X}}$
, which can be derived from a relabelling symmetry in the Lagrangian representation of the fields, see e.g. chapter seven of Webb (Reference Webb2018). Analogously to our other constraint parameters containing $\boldsymbol {B}$
, we include $\mu _0^{-1}$
in the definition of the cross-helicity functional,
which, like $P_{\varOmega }$
and $S_{\varOmega }$
, has two functional derivatives
4.3. IOL-constrained PSLs and actions
As foreshadowed, our recipe for constructing a non-dissipative relaxed magnetofluid model is to start with the IMHD non-canonical Hamiltonian, (2.8), but to relax many, but not all, of the microscopic constraints to which it is subject when deriving the IMHD EL equations. Specifically, to retain the basic compressible Euler-fluid backbone of our RxMHD model (Dewar et al. Reference Dewar, Yoshida, Bhattacharjee and Hudson2015), we keep the microscopic kinematic and mass conservation constraints, (2.2) and (2.3).
However, we delete the microscopic ideal gas and flux-frozen magnetic field variational constraints, $\delta p=-\gamma p\boldsymbol {\nabla }\boldsymbol {\cdot }\boldsymbol {\xi }-\boldsymbol {\xi }\boldsymbol {\cdot }\boldsymbol {\nabla } p$
and $\delta \boldsymbol {B}=\boldsymbol {\nabla }{\times }(\boldsymbol {\xi }{\times }\boldsymbol {B})$
, replacing these infinities of constraints with only the three robust IMHD global invariants (4.11)–(4.16). These global constraints are imposed by adding the global-invariants-constraint (GIC) Lagrange multiplier term
to $\mathcal {L}_{\textrm {nc}}^{\textrm {MHD}}$
to form the RxMHD PSL density (Dewar et al. Reference Dewar, Burby, Qu, Sato and Hole2020)

In 4.18 the Lagrange multipliers $\tau _{\varOmega },\mu _\varOmega$
and $\nu _\varOmega$
are spatially constant throughout $\varOmega$
, but can change in time to enforce constancy, respectively, of total entropy, magnetic helicity and cross-helicity in $\varOmega$
. By removing the infinite numbers of microscopic constraints on $p$
and $\boldsymbol {B}$
that are imposed in IMHD, in the RxMHD formalism (Dewar et al. Reference Dewar, Burby, Qu, Sato and Hole2020) we greatly increased the variationally feasible region of the state space, thus allowing the system to access a lower energy equilibrium. In fact, as the Eulerian fields $\delta p(\boldsymbol {x},t)$
and $\delta \boldsymbol {A}(\boldsymbol {x},t)$
are now locally free variations at each point $\boldsymbol {x}$
, we have added two infinities of degrees of freedom, which turns out to be too many as the IOL constraint embedded in IMHD is entirely lost in RxMHD.
Thus we reduce the degrees of freedom of RxMHD by imposing a soft penalty-function IOL constraint using the augmented Lagrangian constraint density $\mathcal {L}_\varOmega ^{C}$
, (4.10). As the IOL constraint applies pointwise throughout $\varOmega$
, it gives an infinite number of constraints, on $\varPhi$
and $\boldsymbol {B}$
. Adding the constraint term we get the full Lagrangian density with augmented constraint
We shall also have need to define the gauge-invariant part of the Lagrangian density by subtracting the magnetic helicity term,
(For derivatives of the Lagrangian density with respect to anything other than $\boldsymbol {{A}}$
, $\boldsymbol {{B}}$
, $\boldsymbol {x}$
, or $t$
, $\mathcal {L}_\varOmega ^{A}$
and $\mathcal {L}_\varOmega ^{{A}_{-}}$
can be used interchangeably.)
The augmented phase-space action integral is
As in (2.9), the fluid velocity $\boldsymbol {u}$
is treated as a non-canonical momentum variable that is freely variable in the phase-space version of Hamilton's principle, $\delta \mathscr {S}_\varOmega ^{A}=0$
, and $\boldsymbol {v}$
is a relative flow whose variation with respect to $\boldsymbol {\xi }$
obeys the kinematical constraint (2.2). It is also the flow appearing in the mass conservation constraint equations (2.3) and (2.4).
5. EL equations
5.1. Formal view of EL equations
The utility of Hamilton's action-principle approach is that a complete set of equations for our physical variables is provided by the EL equations following from the general variation of the generic augmented action $\mathscr {S}_\varOmega ^{A}$
,

where the top equation on the right-hand side is simply an integral over the first variation of $\mathcal {L}_\varOmega ^{A}$
and the second right-hand side equation defines the functional derivatives with respect to the independent variables by matching the corresponding terms in the top right-hand side equation after the variations of the explicit variables in $\mathcal {L}_\varOmega ^{A}$
are expanded and integrations by parts where necessary – ignoring boundary terms as we can assume the support of the variations does not include the boundary (note that there are no $\delta \lambda$
or $\delta \mu ^{P}_{\varOmega }$
terms as $\lambda$
and $\mu ^{P}_{\varOmega }$
are taken as given – see discussion around (4.10)). For instance, $\delta \mathscr {S}_\varOmega ^{A}/\delta \boldsymbol {x}$
is the sum of the terms linear in $\boldsymbol {\xi }$
obtained from $\delta \rho$
and $\delta \boldsymbol {v}$
given in (2.3) and (2.2), respectively. (Note that for notational convenience $\delta \boldsymbol {x}$
is used in the denominator of the functional derivative as an alternative to the Lagrangian variation of $\boldsymbol {x}$
, denoted everywhere else as $\Delta \boldsymbol {x}$
or $\boldsymbol {\xi }$
. It does not denote the Eulerian variation of $\boldsymbol {x}$
, which is by definition zero.)
Inspecting (4.10) we see that $\mathcal {L}_{\varOmega} ^{C}$
contains $\boldsymbol {E}$
and $\boldsymbol {{B}}$
but does not contain $\boldsymbol {u}$
, $p$
or $\rho$
, and no term in $\mathcal {L}_{\varOmega}^\textrm {Rx}$
contains $\boldsymbol {{E}}$
, $\boldsymbol {\nabla }\boldsymbol {u},\boldsymbol {\nabla } p$
or $\boldsymbol {\nabla }\rho$
, so the corresponding functional derivatives of $\mathscr {S}_\varOmega ^{A}$
are are simply partial derivatives of $\mathcal {L}_\varOmega ^{A}$
, e.g. the $\delta \boldsymbol {u}$
- and $\delta p$
-EL equations are
The $\delta \boldsymbol {A}$
-EL equation is best displayed by splitting $\mathcal {L}_\varOmega ^{A}$
into the gauge-invariant part $\mathcal {L}_\varOmega ^{{A}_{-}}$
, (4.21), and the magnetic helicity constraint term $\mu _\varOmega \boldsymbol {A}\boldsymbol {\cdot }\boldsymbol {B}/2\mu _0$
in order to make manifest the explicit $\boldsymbol {A}$
-dependence; thus
The $\delta \boldsymbol { A}$
-EL equation is then found by using these results in the identity (B2) to give
i.e.
The $\delta \varPhi$
-EL equation is, using (B3),
Using (2.2), $\delta \boldsymbol {v}=\partial _{t}\boldsymbol {\xi }+\boldsymbol {v}\boldsymbol {\cdot }\boldsymbol {\nabla }\boldsymbol {\xi }-\boldsymbol {\xi }\boldsymbol {\cdot }\boldsymbol {\nabla }\boldsymbol {v}$
, the $\Delta \boldsymbol {x}$
-EL (or $\boldsymbol {\xi }$
-EL – see (5.1)) equation is

where
is a new canonical momentum density (cf. $\boldsymbol {\pi }$
in § (2.5)).
5.2. Formal conservation-form momentum equation
A general form of the equation of motion is provided by the $\boldsymbol {\xi }$
-EL equation (5.8), which agrees with (21) of Dewar et al. (Reference Dewar, Burby, Qu, Sato and Hole2020) in the special case of their $\boldsymbol {\lambda }=[\rho ]$
, $\boldsymbol {V}=[0]$
and $\boldsymbol {\varLambda }=[1]$
.
To get a more transparent version we now derive a canonical-momentum conservation form of the equation of motion, the existence of which is implied by Noether's theorem and translational invariance (within $\varOmega$
, i.e. not including $\partial \varOmega$
). To do this we transform (5.8) into the same form as (22) of Dewar et al. (Reference Dewar, Burby, Qu, Sato and Hole2020)Footnote 3 by subtracting $\boldsymbol {\nabla }\mathcal {L}_\varOmega ^{A}\,$
from both sides, giving, after a little rearrangement,

Local translational invariance implies the only $\boldsymbol {x}$
dependence of $\mathcal {L}_\varOmega ^{A}$
is through its component fields, so applying the chain rule, using (5.2), (5.3) and (5.4a,b) (here and elsewhere below see online supplement for intermediate steps) we get

where we used the identity (B7), $(\boldsymbol {\nabla }\boldsymbol {B})\boldsymbol {\cdot }\boldsymbol {f}=(\boldsymbol {\nabla }{\times }\boldsymbol {f}){\times }\boldsymbol {B}-\boldsymbol {\nabla }\boldsymbol {\cdot }[\boldsymbol {f}{\times } {\boldsymbol{\mathsf{I}}} {\times }\boldsymbol {B}]$
of Appendix B, with $\boldsymbol {f}=\partial \mathcal {L}_\varOmega ^{{A}_{-}}/\partial \boldsymbol {B}$
and the $\delta \boldsymbol { A}$
-EL equation (5.6), and also the identity (B5) $(\boldsymbol {\nabla }\boldsymbol {E})\boldsymbol {\cdot }\boldsymbol {f}=\boldsymbol {\nabla }\boldsymbol {\cdot }[\boldsymbol {f}\boldsymbol {E}]-\boldsymbol {E}\boldsymbol {\nabla }\boldsymbol {\cdot }\boldsymbol {f}- \boldsymbol {f}{\times }\partial _{t}\boldsymbol {B}$
with $\boldsymbol {f}=\partial \mathcal {L}_\varOmega ^{{A}_{-}}/\partial \boldsymbol {E}$
, and the $\delta \varPhi$
-EL equation (5.7), to reduce all but the last three terms to divergence form. Eliminating these $\boldsymbol {\nabla }\rho$
and $\boldsymbol {\nabla }\boldsymbol {v}$
terms between those in (5.10) and $\boldsymbol {\nabla }\mathcal {L}_\varOmega ^{A}$
above, and also cancelling the $\boldsymbol {A}\boldsymbol {\cdot }\boldsymbol {B}$
terms, gives a general momentum equation in gauge-independent conservation form on the left-hand side, but with the $\boldsymbol {\nabla }\boldsymbol {\lambda }$
term on the right-hand side acting as an external forcing term,

Here the tensor ${\boldsymbol{\mathsf{T}}}$
is given by

(See (B8) for a dyadic identity that is useful for interpreting the second term on the right-hand side.)
This construction illustrates that the momentum conservation form is a general property of any translation-invariant Lagrangian formulation (by Noether's theorem) and thus is preserved even with our augmented penalty function constraint (except for the forcing term from the symmetry-breaking Lagrange multiplier). It is not manifestly symmetric but we expect it to be symmetrizable from local rotational invariance (Dewar Reference Dewar1970, Reference Dewar1977).
We now examine the implications of our EL equations in more detail.
5.3. Explicit variation of Eulerian velocity
From the $\delta \boldsymbol {u}$
-EL equation (5.2),
which is equivalent to the relative flow formula (1.8) given in the introduction, thus both motivating and justifying substituting $\boldsymbol {v}$
for $\boldsymbol {u}$
(see text below (1.8)). We shall use this below in the form $\boldsymbol {v}=\boldsymbol {u}-\boldsymbol {u}^\textrm {Rx}$
for eliminating $\boldsymbol {v}$
when required. (Recall $\boldsymbol {u}^\textrm {Rx}\stackrel {\textrm {def}}{=}\nu _\varOmega \boldsymbol {B}/\mu _0\rho$
.)
Note that taking the divergence of both sides of 1.8, the EL equation (5.14), we have $\boldsymbol {\nabla }\boldsymbol {\cdot }(\rho \boldsymbol {v})=\boldsymbol {\nabla }\boldsymbol {\cdot }(\rho \boldsymbol {u})$
. Thus, as noted below (1.8), $\boldsymbol {u}$
obeys the same continuity equation as $\boldsymbol {v}$
, (2.4), that is,
5.4. Variation of pressure
From the $\delta p$
-EL equation (5.3)
which leads to the isothermal equation of state
A related result is sometimes useful: from (4.20) after a little algebra,
where the Bernoulli ‘head’ $h_{\varOmega }$
is defined by
with $\rho _{\varOmega }$
a spatially constant reference density that need not be given as it does not contribute to the $\Delta \boldsymbol {x}$
-EL, (5.8). It has the property that $\rho \boldsymbol {\nabla } h_{\varOmega }=\rho \boldsymbol {\nabla }{\frac {1}{2}} u^{2}+\boldsymbol {\nabla } p$
.
5.5. Explicit variation of scalar potential
From the $\delta \varPhi$
-EL equation (5.7) and (5.29),
where $\boldsymbol {\lambda }_{*}=\boldsymbol {\lambda }-\mu ^{P}_{\varOmega }\,\boldsymbol {C}$
is as defined in (4.7).
Comparing the update rule (4.6), ${{\boldsymbol {\lambda }|^{n+1}}}=\boldsymbol {\lambda }|^{n}-\mu ^{P}_{\varOmega }|^{n}\boldsymbol {C}|^{n}$
, with (4.7) we identify $\boldsymbol {\lambda }_{*}$
as the updated $\boldsymbol {\lambda }$
for initializing the next iteration, i.e. $\boldsymbol {\lambda }|^{n+1}=\boldsymbol {\lambda }_{*}|^{n}$
. As $\boldsymbol {\nabla }\boldsymbol {\cdot }\boldsymbol {\lambda }_{*}|^{n}=0$
we therefore have $\boldsymbol {\nabla }\boldsymbol {\cdot }\boldsymbol {\lambda }^{n+1}=0$
, and likewise for $\boldsymbol {\nabla }\boldsymbol {\cdot }\boldsymbol {\lambda }|^{n+2}$
and all subsequent Lagrange multipliers in the iteration sequence. In fact, assuming integer $n$
is a typical step in the iteration, we must also conclude that
Thus we can eliminate both $\boldsymbol {\lambda }$
and $\boldsymbol {\lambda }_{*}$
from (4.7) by taking the divergence of both sides to give
which, being a homogeneous equation, provides no driving term for $\boldsymbol {C}$
.
While, from (4.3), (5.22) implies an inhomogeneous equation for $\boldsymbol {E}$
,
this is also implied by the IOL, again showing that we cannot determine non-feasibility by taking divergences only.
However, we also have an expression for $\boldsymbol {\nabla }{\times }\boldsymbol {E}$
from the Maxwell–Faraday induction equation (1.3), which, combined with (4.3), gives the inhomogeneous equation
Thus the non-feasibility parameter $\boldsymbol {C}$
can be viewed as driven by the departure from the IMHD magnetic-field evolution equation.
This is seen better by rewriting (5.24) as an evolution equation for $\boldsymbol {B}$
:
When $\boldsymbol {C}=0$
this is the IMHD evolution equation for $\boldsymbol {B}$
, irrespective of our magnetic and cross-helicity constraints and confirms that allowing $\boldsymbol {C}\neq 0$
is sufficient to relax the flux-freezing topological constraints of IMHD.
However, to satisfy (1.3) automatically we use the potential representations (1.6), $\boldsymbol {E}=-\boldsymbol {\nabla }\varPhi -\partial _{t}\boldsymbol {A},$
and (1.5), $\boldsymbol {B}=\boldsymbol {\nabla }{\times }\boldsymbol {A}$
, so (4.3) becomes
showing $\boldsymbol {C}$
as the discrepancy between the potential representations of $-\boldsymbol {E}$
and of $\boldsymbol {v}{\times }\boldsymbol {B}$
(equivalently $\boldsymbol {u}{\times }\boldsymbol {B}$
after EL equations are derived). As (5.26) implies (5.25), the latter is now not an independent equation and is useful only for insight.
In potential representation (5.23) becomes the Poisson equation
where Coulomb gauge, $\boldsymbol {\nabla }\boldsymbol {\cdot }\boldsymbol {A}=0$
, has been adopted to eliminate the explicit unknown $\boldsymbol {A}$
, though it is still implicit through $\boldsymbol {B}$
. The solution of this elliptic differential equation, using the Dirichlet boundary conditions discussed after (4.3), is such that $\varPhi$
is a smooth function. However, as discussed in § 3.2, the electric and magnetic field lines it defines are not generically integrable and thus may represent chaotic flows in 3-D geometries.
Assuming $\boldsymbol {u}$
and $\boldsymbol {A}$
are determined using other EL equations, so (5.27) can be solved for $\varPhi$
, (5.26) gives us $\boldsymbol {C}$
and then $\boldsymbol {\lambda }_{*}$
from (4.7). This will be illustrated in § 6.2.2.
5.6. Explicit Variation of vector potential (3.3)
From (4.21), (4.19) and (4.4a–c) we have
Inserting these identities in the $\delta \boldsymbol {A}$
-EL equation (5.6) gives
displayed as an inhomogeneous hyperbolic equation for the Lagrange-multiplier field $\boldsymbol {\lambda }_{*}$
. However, it can also be displayed in its dual form of an inhomogeneous elliptic equation for $\boldsymbol {B}$
by multiplying both sides with $-\mu _0$
and rearranging to give
Apart from the terms in $\boldsymbol {\lambda }_{*}$
this is the RxMHD modified Beltrami equation found by Dewar et al. (Reference Dewar, Burby, Qu, Sato and Hole2020).
The relation between $\varPhi$
, $\boldsymbol {A}$
, $\boldsymbol {\lambda }_{*}$
and $\boldsymbol {C}$
appears somewhat difficult to untangle in general so we shall defer detailed analysis of these equations to § 6, where the WKB approximation makes the task easier. Suffice it here simply to count equations to give confidence that the problem can be solved in principle – the four independent equations for these four unknowns are, in order of occurrence, (4.7), (5.26), (5.27) and (5.31). (Unless we set ${\nu _\varOmega =0}$
, $\rho$
occurs through the $\boldsymbol {u}^\textrm {Rx}$
in $\boldsymbol {v}$
, in which case we need to add (1.7), (1.8) and (5.15) to the list.) When solved, all variables should be known in terms of $\boldsymbol {u}$
, whose evolution can then be determined from the $\boldsymbol {\xi }$
-EL equation.
A final remark – taking the divergence of both sides the $\delta \boldsymbol {A}$
EL equation (5.31) verifies that it propagates the $\delta \varPhi$
EL equation (5.20), $\boldsymbol {\nabla }\boldsymbol {\cdot }\boldsymbol {\lambda }_{*}=0$
. That is, if $\boldsymbol {\nabla }\boldsymbol {\cdot }\boldsymbol {\lambda }_{*}=0$
initially, it will remain so even if $\boldsymbol {\lambda }_{*}$
changes as the plasma evolves in time, and at each step in the iteration to converge $\boldsymbol {C}\to 0$
. So the two EL equations are consistent, though otherwise independent.
5.6.1. Electric current
We can also identify the electric current, $\boldsymbol {j}\stackrel {\textrm {def}}{=}\boldsymbol {\nabla }{\times }\boldsymbol {B}/\mu _0$
, so (5.31) can be written as
where $\boldsymbol {\omega }\stackrel {\textrm {def}}{=}\boldsymbol {\nabla }{\times }\boldsymbol {u}$
is the fluid vorticity. The first term on the right-hand side of (5.31) is the usual parallel electric current term of the linear-force-free (Beltrami) magnetic field model; the second term is a vorticity-driven current Yokoi (Reference Yokoi2013) term; while the last two terms form a new IOL constraint current which (taking into account the EL equation $\boldsymbol {\nabla }\boldsymbol {\cdot }\boldsymbol {\lambda }_{*}=0$
) maintains the divergence-free nature of $\boldsymbol {j}$
as required to maintain quasineutrality.
5.6.2. Physical interpretation of estimated Lagrange multiplier
In the special case $\mu _\varOmega =\nu _\varOmega =0$
, $\boldsymbol {v}=\boldsymbol {u}$
, if we make the identification $\boldsymbol {\lambda }_{*} = \boldsymbol {P}$
(5.32) becomes identical with the representation of $\boldsymbol {j}$
in terms of the electrostatic dipole moment per unit volume or polarization vector $\boldsymbol {P}$
(see e.g. §§ 1–10 of Panofsky & Phillips Reference Panofsky and Phillips1962). This representation is as given in (12) of Calkin (Reference Calkin1963) and (1.2) of Webb & Anco (Reference Webb and Anco2017), specialized to the MHD case of a quasineutral moving medium, where $\boldsymbol {\nabla }\boldsymbol {\cdot }\boldsymbol {P}=0$
(consistently with (5.20)).
Calkin (Reference Calkin1963) goes on to derive an IMHD action principle in terms of Clebsch potentials, but these are not globally defined in a 3-D plasma with non-integrable magnetic fields. Our derivation shows the Clebsch representation is not needed to apply this polarization representation for $\boldsymbol {j}$
in an action principle if we apply the Lagrangian variational approach of Newcomb (Reference Newcomb1962). (See also Webb & Anco (Reference Webb and Anco2019) for a discussion of the equivalence of Lagrangian and Eulerian variational approaches.)
5.7. Explicit Lagrangian variation of fluid element position
This final EL equation will in principle provide sufficient equations to solve for the unknowns.
5.7.1. Equations of motion
From (4.4a–c) $\partial _{\boldsymbol {v}}\boldsymbol {C}= {\boldsymbol{\mathsf{I}}} {\times }\boldsymbol {B}$
, thus
The EL equation obtained from setting $\delta \mathscr {S}_\varOmega ^{A}/\delta \boldsymbol {x}=0$
in (5.8) thus becomes

by (5.18). Cancelling the $\rho (\boldsymbol {\nabla }\boldsymbol {v})\boldsymbol {\cdot }\boldsymbol {u}$
occurring on both sides and rearranging, we have
where we used (2.4), $\partial _{t}\rho +\boldsymbol {\nabla }\boldsymbol {\cdot }(\rho \boldsymbol {v})=0$
, to cancel all derivatives of $\rho$
. Thus, dividing both sides by $\rho$
we have the compact Bernoulli-like form
the residual acceleration term containing $\boldsymbol {\lambda }_{*}$
being

where
again using $\partial _{t}\rho +\boldsymbol {\nabla }\boldsymbol {\cdot }(\rho \boldsymbol {v})=0$
.
In the special case $\mu _\varOmega =\nu _\varOmega =0$
, $\boldsymbol {v}=\boldsymbol {u}$
we can use the identification in § 5.6.2 of $\boldsymbol {\lambda }_{*}$
as the polarization field $\boldsymbol {P}$
to write $\boldsymbol {w} = \boldsymbol {B}{\times }\boldsymbol {P}/{\rho }$
. We can then recognize (5.36) as the Eulerian equation of motion, (23) of Calkin (Reference Calkin1963), thus providing a physical interpretation of our equations of motion in terms of a Lagrange multiplier field.
5.7.2. Conservation form
Now consider the conservation form (5.12) where, from (4.4a–c), (5.9) and (4.10)
Starting with the coefficient of ${\boldsymbol{\mathsf{I}}}$
in the tensor $ {\boldsymbol{\mathsf{T}}} $
, (5.13), and referring to (4.19), (4.20) and (4.21) we find
The penultimate term in $ {\boldsymbol{\mathsf{T}}} $
is
which consists of a symmetric $\boldsymbol {E}'\boldsymbol {E}'$
term and a non-symmetric $\boldsymbol {E}'\boldsymbol {u}{\times }\boldsymbol {B}$
term.
The preceding term of ${\boldsymbol{\mathsf{T}}}$
is, using (5.28) and (B8),
and the remaining first term is
Thus, combining all terms, (5.12) becomes
where ${\boldsymbol{\mathsf{T}}}_{\textrm {MHD}}$
is the momentum transport plus stress tensor for both IMHD and RxMHD (Dewar et al. Reference Dewar, Burby, Qu, Sato and Hole2020),
the terms in $\nu _\varOmega$
that might have contributed to ${\boldsymbol{\mathsf{T}}}_{\textrm {MHD}}$
in the RxMHD case having cancelled.
The new term ${\boldsymbol{\mathsf{T}}}_{\textrm {Res}}$
is the ‘internal’ residual stress contribution arising when action-extremizing solutions are infeasible, i.e. when the IOL constraint is not satisfied exactly,

(Interestingly, the $\nu _\varOmega$
cancellation also occurred in deriving ${\boldsymbol{\mathsf{T}}}_{\textrm {Res}}$
when $\boldsymbol {v}$
was replaced by $\boldsymbol {u}-\nu _\varOmega \boldsymbol {B}/\mu _0\rho$
.)
The ‘external’ residual force on the right-hand side of (5.44) obviously vanishes for feasible solutions. It is not obvious that ${\boldsymbol{\mathsf{T}}}_{\textrm {Res}}$
vanishes when $\boldsymbol {C}=0$
as it involves the unknown converged Lagrange multiplier $\boldsymbol {\lambda }|^{\infty }$
($=\boldsymbol {\lambda }_{*}|^{\infty }$
as $\boldsymbol {C}|^{\infty }=0$
). However, it is easy to verify that both the diagonal and off-diagonal terms of ${\boldsymbol{\mathsf{T}}}_{\textrm {Res}}$
not involving $\boldsymbol {C}$
explicitly do vanish if $\boldsymbol {\lambda }_{*}$
is proportional to $\boldsymbol {B}$
pointwise, implying at least in this case ${\boldsymbol{\mathsf{T}}}_{\textrm {Res}}=0$
if and only if $\boldsymbol {C}=0$
(assuming $\mu ^{P}_{\varOmega }\neq 0$
).
5.7.3. Momentum and angular momentum conservation
When a trial solution is IOL-infeasible, i.e. $\boldsymbol {C}\neq 0$
, ${\boldsymbol{\mathsf{T}}}_{\textrm {Res}}$
is not a symmetric tensor, indicating it imparts both an isotropic pressure force and a torque on the plasma, presumably tending to change $\boldsymbol {u}$
in such a way as to ‘bend’ the flow towards conformity with the IOL. There is a cyclic symmetry in ${\boldsymbol{\mathsf{T}}}_{\textrm {Res}}$
in the sum of the three terms in $\boldsymbol {\lambda }_{*},\boldsymbol {u},\boldsymbol {B}$
that indicates that the magnetic field is coupled to $\boldsymbol {E}'$
in a similar fashion to $\boldsymbol {u}$
, and indeed we see from (5.32) that that there is a ‘dynamo’ term depending on $\boldsymbol {E}'$
in $\boldsymbol {j}$
that modifies $\boldsymbol {B}$
, by Ampére's law.
6. Linearized dynamics in the WKB approximation
As indicated in the introduction, the present paper is a step towards an MRxMHD dynamics code in which the primary role of the relaxed fluid dynamics within an annular toroidal domain $\varOmega$
is twofold: (i) to regularize IMHD by relaxing the topological constraint forbidding magnetic reconnection, so magnetic islands can form at resonances rather than singularities; and (ii) to transmit pressure disturbances across the thin layer of plasma between the two disjoint interfaces forming the boundary $\partial \varOmega$
, thereby coupling the interfaces and endowing them with the plasma's inertia. This section derives, in the WKB approximation, dispersion relations for the waves that transmit these disturbances.
6.1. Linearization
Thus, as a simple first step towards understanding the dynamical implications of the RxMHD equations we linearize around a steady, ($\partial _{t}\mapsto 0$
), IOL-compliant $(C^{(0)}=0,\,\boldsymbol {\lambda }_{*}^{(0)}=\boldsymbol {\lambda }^{(0)})$
solution of the EL equations in a domain $\varOmega$
with either fixed boundaries or with only low-amplitude, short-wavelength perturbations on $\partial \varOmega$
. Thus, we insert in these equations the ansatz $\boldsymbol {u}=\boldsymbol {u}^{(0)}+\alpha \boldsymbol {u}^{(1)}+O(\alpha ^{2})$
, where $\alpha$
is the amplitude expansion parameter, and similarly for other perturbations except we use their potential representations for $\boldsymbol {B}^{(1)}$
and $\boldsymbol {E}^{(1)}$
as this is important for enforcing 1.3. The entropy, helicity and cross-helicity integrals are conserved at $O(\alpha )$
, with therefore no perturbation in the Lagrange multipliers. Thus here we take $\tau _{\varOmega }$
, $\mu _{\varOmega }$
and $\nu _\varOmega$
as time-independent constants. Also, from here onward we take the superscript (0) to be implicit, e.g. $\rho$
means $\rho ^{(0)}$
, $\boldsymbol {u}$
means $\boldsymbol {u}^{(0)}$
, $\boldsymbol {\lambda }$
means $\boldsymbol {\lambda }^{(0)}$
, etc. While we assume the background equilibrium obeys the IOL, we do not assume the augmented-Lagrangian iteration for our perturbations is fully converged, so $\boldsymbol {C}^{(1)}\neq 0$
and our two successive Euler-Lagrange iterates are not equal, $\boldsymbol {\lambda }_{*}^{(1)}\neq \boldsymbol {\lambda }^{(1)}$
.
6.1.1. Linearization of Lagrange multiplier determination
Focusing first on the novel part of the calculation we list the linearizations of immediate relevance to the augmented Lagrangian determination of the updated Lagrange multiplier field $\boldsymbol {\lambda }_{*}$
.
From (1.5) and (1.6), $\boldsymbol {B}^{(1)}=\boldsymbol {\nabla }{\times }\boldsymbol {A}^{(1)}$
and $\boldsymbol {E}^{(1)}=-\boldsymbol {\nabla }\varPhi ^{(1)}-\partial _{t}\boldsymbol {A}^{(1)}$
, so (4.3) becomes
with $\varPhi ^{(1)}$
to be determined from (5.27), which used the EL equation from the $\varPhi$
variation in its derivation. This becomes
When $\boldsymbol {C}^{(1)}$
is found, the updated Lagrange multiplier is determined from the linearization of (4.7), $\boldsymbol {\lambda }_{*}^{(1)}=\boldsymbol {\lambda }^{(1)}-\mu ^{P}_{\varOmega }\boldsymbol {C}^{(1)}$
.
While one occurrence of $\boldsymbol {A}^{(1)}$
in (6.2) has been eliminated by assuming Coulomb gauge, $\boldsymbol {\nabla }\boldsymbol {\cdot }\boldsymbol {A}^{(1)}=0$
, it still arises in the $\boldsymbol {\nabla }{\times }\boldsymbol {A}^{(1)}$
term arising from $\boldsymbol {B}^{(1)}$
. Thus we also need the linearization of the $\delta \boldsymbol {A}$
EL equation to give us $\boldsymbol {A}^{(1)}$
. We use the modified Beltrami form (5.31)

where

with $\rho ^{(1)}$
to be determined from
and $\boldsymbol {u}^{(1)}$
to be treated as the one unknown in terms of which all other physical perturbations are to be expressed.
6.2. Wave perturbations in WKB approximation
6.2.1. Eikonal ansatz and natural basis vectors
For short-wavelength high-frequency velocity perturbations we use the eikonal ansatz
with similar notations for linear perturbations of other quantities, $\varepsilon$
being the WKB (local plane wave) expansion parameter. The instantaneous local values of wavevector and frequency as seen in the laboratory frame are then defined as $\boldsymbol {k}\stackrel {\textrm {def}}{=}\boldsymbol {\nabla }\varphi$
and $\omega (\boldsymbol {x},t)\stackrel {\textrm {def}}{=}-\partial _{t}\varphi$
.
In the following development we shall also encounter two ‘shifted’ frequencies:
the Doppler-shifted frequency of the wave as seen in the local rest frame of a fluid element, velocity $\boldsymbol {u}(\boldsymbol {x},t)$
, and
the same as frequency (1) except with $\boldsymbol {u}$
replaced by the relative velocity $\boldsymbol {v}=\boldsymbol {u}-\boldsymbol {u}^\textrm {Rx}\equiv \boldsymbol {u}-\nu _\varOmega \boldsymbol {B/}\mu _0\rho$
.
Taking $\varphi$
and equilibrium quantities to vary $O(1)$
spatial and temporal scales, $\omega$
, $\boldsymbol {k}$
, $\partial _{t}\boldsymbol {u}$
, $\boldsymbol {\nabla }\boldsymbol {u}$
, $\mu _{\varOmega }$
, $\nu _\varOmega$
, etc. are $O(1)$
, but $\partial _{t}\boldsymbol {u}^{(1)}$
, $\boldsymbol {\nabla }\boldsymbol {u}^{(1)}$
, etc. are large, $O(\alpha \varepsilon ^{-1})$
, relative to $\boldsymbol {u}^{(1)}=O(\alpha )\varepsilon ^{0}$
, and similarly for spatio-temporal derivatives of $\rho ^{(1)}$
and $\boldsymbol {B}^{(1)}$
.
In order for $\boldsymbol {B}^{(1)}$
to be the same order as $\boldsymbol {u}^{(1)}$
, the potentials $\varPhi ^{(1)}$
and$\boldsymbol {A}^{(1)}$
must be $O(\alpha \varepsilon )$
, so we write
(1.5) and (1.6) giving then $\tilde {\boldsymbol {B}}=\boldsymbol {k}{\times }\tilde {\boldsymbol {A}}$
and $\tilde {\boldsymbol {E}}=-\boldsymbol {k} \tilde {\varPhi }+\omega \tilde {\boldsymbol {A}}$
.
As in Dewar et al. (Reference Dewar, Burby, Qu, Sato and Hole2020) our strategy is to express all perturbations in terms of $\tilde {\boldsymbol {u}}$
, in order to find a $3\times 3$
matrix eigenvalue equation whose roots give the dispersion relations for the three propagating wave branches. We shall also include a forcing term of the form similar to (6.6) in the equation of motion for $\boldsymbol {u}^{(1)}$
so that this $3\times 3$
matrix appears also as a response function, with the dispersion relations giving the location of its poles.
We shall find it useful to expand vectors and dyadics in the orthonormal MHD-wave basis,
where $\boldsymbol {k}_{\perp }\stackrel {\textrm {def}}{=} {\boldsymbol{\mathsf{P}}} _{\perp }\boldsymbol {\cdot }\boldsymbol {k}$
, so $\boldsymbol {{k}}=k_{\perp }\boldsymbol {e}_{1}+k_{\parallel }\boldsymbol {e}_{2}$
(where $k_{\perp }\stackrel {\textrm {def}}{=}|\boldsymbol {k}_{\perp }|$
, $k_{\parallel }\stackrel {\textrm {def}}{=}\boldsymbol {k}\boldsymbol {\cdot }\boldsymbol {e}_{\boldsymbol {B}}$
), $\boldsymbol {u}^\textrm {Rx}=u^{\textrm {Rx}}\boldsymbol {e}_{2}$
(where $u^{\textrm {Rx}}\stackrel {\textrm {def}}{=}|\boldsymbol {u}^\textrm {Rx}|$
), $\boldsymbol {k}{\times }\boldsymbol {B}_{{A}}=k_{\perp }c_{{A}}\boldsymbol {e}_{3}$
, $ {\boldsymbol{\mathsf{P}}} _{\perp }=\boldsymbol {e}_{1}\boldsymbol {e}_{1}+\boldsymbol {e}_{3}\boldsymbol {e}_{3}$
and $ {\boldsymbol{\mathsf{I}}} =\boldsymbol {e}_{1}\boldsymbol {e}_{1}+\boldsymbol {e}_{2}\boldsymbol {e}_{2}+\boldsymbol {e}_{3}\boldsymbol {e}_{3}$
. (There is of course a problem if $\boldsymbol {k}_{\perp }=0$
, but we are interested in low-frequency MHD waves around $k_{\parallel }=0$
where $|k_{\perp }|$
is maximal.)
6.2.2. IOL constraint in WKB approximation
We now use (6.6) and (6.9a,b) in the linearizations in § 6.1.1, working to leading order in $\varepsilon$
(for instance $\mu _{\varOmega }\boldsymbol {B}^{(1)}$
will be dropped as higher order in $\varepsilon$
than other terms in (6.3)). Then (6.1) becomes
Also (6.2) becomes
assuming Coulomb gauge, $\boldsymbol {k}\boldsymbol {\cdot }\tilde {\boldsymbol {A}}=0$
. Inserting (6.12) in (6.11) gives
Next, (6.3) becomes
where we used $\boldsymbol {v}=\boldsymbol {u}-\boldsymbol {u}^\textrm {Rx}\equiv \boldsymbol {u}-\nu _\varOmega \boldsymbol {B/}\mu _0\rho$
.
Finally, (6.5) and (6.4) become
hence
Substituting (6.17) in (6.14) gives
which in (6.13) then gives
Treating $\tilde {\boldsymbol {C}}$
for the moment as a known and solving for $\tilde {\boldsymbol {\lambda }_{*}}$
we have
Normally we do not need to know the residual IOL error term $\tilde {\boldsymbol {C}}$
exactly, but to convince ourselves it can be made arbitrarily small by iteration, replace $\tilde {\boldsymbol {\lambda }_{*}}$
with its explicit form from the linearization of (4.7), $\tilde {\boldsymbol {\lambda }}-\mu ^{P}_{\varOmega }\tilde {\boldsymbol {C}}$
, and collect both $\tilde {\boldsymbol {C}}$
terms on the left,

which confirms the implication in subsection (3.3) that we have enough equations to determine $\tilde {\boldsymbol {C}}$
, and hence $\tilde {\varPhi }$
, $\tilde {\boldsymbol {A}}$
and $\tilde {\boldsymbol {\lambda }_{*}}$
, in terms of $\tilde {\boldsymbol {u}}$
.
Dividing both sides of (6.21) by the large penalty multiplier $\mu ^{P}_{\varOmega }$
we see that $\tilde {\boldsymbol {C}}$
is smaller than the other terms and the previous iterate of $\tilde {\boldsymbol {C}}$
by an $O(1/\mu ^{P}_{\varOmega })$
factor. Thus the sequence $\{ \ldots,\tilde {\boldsymbol {C}}^{n},\tilde {\boldsymbol {C}}^{n+1},\tilde {\boldsymbol {C}}^{n+2},\ldots \}$
will converge exponentially towards $0$
, or superexponentially if $\mu ^{P}_{\varOmega }$
is increased appropriately at each step. Also $\tilde {\boldsymbol {\lambda }_{*}}$
will converge to $\tilde {\boldsymbol {\lambda }}|^{\infty }$
.
However, this linearized calculation is sufficiently simple that we do not actually need to carry out the iteration as we can find $\tilde {\boldsymbol {\lambda }}|^{\infty }$
analytically from 6.21 by setting its left-hand side to zero and solving for $\tilde {\boldsymbol {\lambda }}=\tilde {\boldsymbol {\lambda }}|^{\infty }$
. Or, if we want to investigate the hypothesis that terminating the iteration at finite $n$
, so that $\tilde {\boldsymbol {C}}\neq 0,$
will regularize MHD, we can prescribe $\tilde {\boldsymbol {C}}$
and use (6.20) to give $\tilde {\boldsymbol {\lambda }_{*}}$
. To provide a continuous sequence of dynamical fluid models running between the unconstrained RxMHD perturbation dynamics of Dewar et al. (Reference Dewar, Burby, Qu, Sato and Hole2020) to the converged, $\tilde {\boldsymbol {C}}=0$
, present model we choose
with the ‘relaxedness’ parameter ${\varepsilon }_{\mathrm {Rx}}$
running from 0 (IMHD, IOL-compliant) to 1 (RxMHD, may be IOL-infeasible). We shall later also have use of the complementary ‘ideality’ parameter ${\varepsilon }_{{I}}\stackrel {\textrm {def}}{=}1-{\varepsilon }_{\mathrm {Rx}}$
.
Here $\tilde {\boldsymbol {C}}_{0}$
is the IOL error for unconstrained, ${\varepsilon }_{{I}}=0, {\varepsilon }_{\mathrm {Rx}}=1$
, RxMHD perturbations, which we can find by setting $\tilde {\boldsymbol {\lambda }}=0$
, $\mu ^{P}_{\varOmega }=0$
, and thus $\tilde {\boldsymbol {\lambda }_{*}}=0$
, in (6.19) to give
which is a linear tensor function of the form $\widetilde {\boldsymbol {C}_{0}}=B {\boldsymbol{\mathsf{C}}} _{0}(\boldsymbol {k},\boldsymbol {B})\boldsymbol {\cdot }\tilde {\boldsymbol {u}}$
, where the factor $B$
is taken out to make $ {\boldsymbol{\mathsf{C}}} _{0}$
dimensionless. By inspection of (6.23),
The linear tensor form of $\widetilde {\boldsymbol {C}_{0}}$
implies $\tilde {\boldsymbol {C}}$
, $\tilde {\boldsymbol {\lambda }}$
and $\tilde {\boldsymbol {\lambda }_{*}}$
are of similar form,
where from $\boldsymbol {\varLambda }=\boldsymbol {\varLambda }_{*}+\mu ^{P}_{\varOmega } B {\boldsymbol{\mathsf{C}}} $
, and from (6.20) and (6.25a–c),
using $ {\boldsymbol{\mathsf{C}}} ={\varepsilon }_{\mathrm {Rx}} {\boldsymbol{\mathsf{C}}} _{0}$
, 6.22.
6.2.3. Short-wavelength dynamical RxMHD equations
We now consider the linearized equation of motion with the forcing term mentioned in § 6.2.1, a specific force (i.e. force/mass density) we denote as $\boldsymbol {f}^{(1)}$
. Thus the linearized (5.36) with forcing term becomes
where, from (5.19),
from (5.37),

and, from (5.38),
Using the WKB representations in (6.9a,b) and in (6.6), and analogous representations for $\rho ^{(1)}$
, $\boldsymbol {B}^{(1)}$
, $\boldsymbol {w}^{(1)}$
, $\boldsymbol {a}_{\boldsymbol {\lambda }}^{(1)}$
and $\boldsymbol {f}^{(1)}$
in the linearizations above, and working to leading order in $\varepsilon$
as before we have
which we shall show can be written as
where, noting cancelling of $\boldsymbol {k}\boldsymbol {u}\boldsymbol {\cdot }\tilde {\boldsymbol {u}}$
terms,
From (6.29),
and, from (6.30), (6.15) and (6.18),

where $\boldsymbol {\varLambda }_{*}$
was given in (6.26).
6.2.4. WKB RxMHD response matrix
To simplify the calculation of the response we expand around a relaxed equilibrium with $\boldsymbol {\lambda }=0$
, such as the axisymmetric tokamak equilibrium in Dewar et al. (Reference Dewar, Burby, Qu, Sato and Hole2020), which has a steady flow field $\boldsymbol {u}$
that is the vector sum of an arbitrary rigid toroidal rotation carried by $\boldsymbol {v}$
and an axisymmetric magnetic-field-aligned flow $\boldsymbol {u}^\textrm {Rx}$
proportional to $\nu _\varOmega$
, which equilibrium was shown to satisfy the IOL without needing a Lagrange multiplier.
In such a case $\boldsymbol {w}=0$
, and (6.35) becomes $\tilde {\boldsymbol {w}}=\boldsymbol {B}{\times }\boldsymbol {\varLambda }_{*}\boldsymbol {\cdot }\tilde {\boldsymbol {u}}/\rho$
. Then (6.34) becomes
In (6.32) the $\boldsymbol {u}^\textrm {Rx}$
terms not involving ${\varepsilon }_{\mathrm {Rx}}$
cancel, giving

where $\boldsymbol {u}^\textrm {Rx}=\nu _\varOmega \boldsymbol {B}/\mu _0\rho$
is defined in (1.7), $\boldsymbol {c}_{{A}}\stackrel {\textrm {def}}{=}\boldsymbol {B}/(\mu _0\rho )^{1/2}$
is the Alfvén velocity, $c_{{s}}={{\tau _{\varOmega }^{1/2}}}$
is the isothermal sound speed, and we have used (B8) to write $\boldsymbol {c}_{{A}}{\times } {\boldsymbol{\mathsf{I}}} {\times }\boldsymbol {c}_{{A}}=\boldsymbol {c}_{{A}}\boldsymbol {c}_{{A}}-c_{{A}}^{2} {\boldsymbol{\mathsf{I}}} \equiv -c_{{A}}^{2} {\boldsymbol{\mathsf{P}}} _{\perp }$
.
To represent $ {\boldsymbol{\mathsf{D}}} $
as a matrix we project onto the orthonormal basis (6.10a–c), which can be written as $\boldsymbol {e}_{1}=\boldsymbol {k}_{\perp }/k_{\perp },\boldsymbol {e}_{2}=\boldsymbol {c}_{{A}}/c_{{A}}\textrm { and }\boldsymbol {e}_{3}=\boldsymbol {k}_{\perp }{\times }\boldsymbol {c}_{{A}}/(k_{\perp }c_{{A}}).$
We thus have

which can be represented as the block-diagonal matrix
with the $1\times 1$
Alfvén block on the lower right and the $2\times 2$
magnetosonic (MS) block,
upper left.
6.2.5. Limiting cases
Consider first the ideal, fully converged case $\boldsymbol {C}=0$
(${\varepsilon }_{{I}}=1, {\varepsilon }_{\mathrm {Rx}}=0$
) and use (B8) to write $k^{2} {\boldsymbol{\mathsf{I}}} -\boldsymbol {k}\boldsymbol {k}=-\boldsymbol {k}{\times } {\boldsymbol{\mathsf{I}}} {\times }\boldsymbol {k}$
so

which, apart from the definitions of $ {\boldsymbol{\mathsf{D}}} $
differing by a factor of $\rho \omega _{\boldsymbol {k}}^{\prime \boldsymbol {u}}$
, agrees with the IMHD form, (75), of Dewar et al. (Reference Dewar, Burby, Qu, Sato and Hole2020).
In the pure RxMHD case ${\varepsilon }_{{I}}=0, {\varepsilon }_{\mathrm {Rx}}=1$
,
Apart from the definitions of $ {\boldsymbol{\mathsf{D}}} $
again differing by a factor of $\rho \omega _{\boldsymbol {k}}^{\prime \boldsymbol {u}}$
, this agrees with the RxMHD form, (88), of Dewar et al. (Reference Dewar, Burby, Qu, Sato and Hole2020).
Thus ${\varepsilon }_{\mathrm {Rx}}$
parameterizes a continuous interpolation between RxMHD and IMHD.
6.2.6. Dispersion relations – Alfvén branches
Multiplying the first factor of the determinant
by $\omega _{\boldsymbol {k}}^{\prime \boldsymbol {u}}$
gives the dispersion relation for the Alfvén-wave branch(es) as the quadratic equation
The general solution of the quadratic equation is
Qualitative analysis is more informative: as ${\varepsilon }_{\mathrm {Rx}}\to 0$
the dispersion relations for the two branches approach the Doppler-shifted Alfvén-wave dispersion relations $\omega -\boldsymbol {k}\boldsymbol {\cdot }\boldsymbol {u}=\pm k_{\parallel }c_{{A}}$
. Also, inspection shows that $\omega -\boldsymbol {k}\boldsymbol {\cdot }\boldsymbol {u}\to 0$
as $k_{\parallel }\to 0$
quite generally, and when $|{\varepsilon }_{\mathrm {Rx}}|\ll 1$
the modification of the dispersion departure from the standard Alfvén-wave dispersion relation is essentially determined by the product ${\varepsilon }_{\mathrm {Rx}} u^{\textrm {Rx}}$
. Thus, when $|{\varepsilon }_{\mathrm {Rx}}|\ll 1$
and the parallel flow parameter is at most Alfvénic, $u^{\textrm {Rx}}/c_{{A}}\leq O(1)$
, ${\varepsilon }_{\mathrm {Rx}}$
and $u^{\textrm {Rx}}$
will have little effect on the Alfvén-wave branches.
The plots in figure 2 give a visualization of the dependence of the dispersion relation on ${\varepsilon }_{\mathrm {Rx}}$
. The figure is for a case where $\boldsymbol {u}^\textrm {Rx}=0$
, when (6.45) simplifies to $\omega _{\boldsymbol {k}}^{\prime \boldsymbol {u}}=\pm \sqrt {{\varepsilon }_{{I}}}\,k_{\parallel }c_{{A}}$
. (We call the $+$
solution the principal branch.) The square root term $\sqrt {{\varepsilon }_{{I}}}=\sqrt {1-{\varepsilon }_{\mathrm {Rx}}}$
gives rise to a singular dependence on ${\varepsilon }_{\mathrm {Rx}}$
at ${\varepsilon }_{\mathrm {Rx}}=1$
but the vicinity of IMHD is regular.
This figure shows the transition of the Alfvén-branch dispersion relation: $\omega$
versus $k_{\parallel }$
; IMHD (${\varepsilon }_{\mathrm {Rx}}=0$
) to RxMHD (${\varepsilon }_{\mathrm {Rx}}=1$
; we have used ${\varepsilon }_{\mathrm {Rx}}=0.99$
for clarity as the ${\varepsilon }_{\mathrm {Rx}}=1$
line coincides with the $k_{\parallel }$
axis). Fixed parameters (in arbitrary units) are $k=1$
, $\boldsymbol {u}=0$
, $\boldsymbol {u}^\textrm {Rx}=0$
, $c_{{s}}=1$
and $c_{{A}}=5$
. (Colour online – the vertical ordering of the lines in the $k_{\parallel }>0$
half-plane coincides with that of ${\varepsilon }_{\mathrm {Rx}}$
in the legend.)

6.2.7. Dispersion relations – magnetosonic branches
The magnetosonic dispersion relations are obtained by setting $\det {\boldsymbol{\mathsf{D}}} _{\textrm {MS}}=0$
, where
The solution of the quartic equation $\omega ^{2}\det {\boldsymbol{\mathsf{D}}} _{\textrm {MS}}=0$
is extremely complicated but figures 3 and 4 give an overview of the ${\varepsilon }_{\mathrm {Rx}}$
dependence. Again, the limit ${\varepsilon }_{\mathrm {Rx}}\to 1$
is clearly singular in the slow magnetosonic case but not ${\varepsilon }_{\mathrm {Rx}}\to 0$
. This regularity around IMHD means our dispersion relation analysis is too crude to reveal the potential regularizing effect of softening the IOL constraint.
This figure shows the transition of the slow-magnetosonic-branch dispersion relation: $\omega$
versus $k_{\parallel }$
; from IMHD (${\varepsilon }_{\mathrm {Rx}}=0$
) to RxMHD (${\varepsilon }_{\mathrm {Rx}}=1$
). Fixed parameters (in arbitrary units) are $k=1$
, $\boldsymbol {u}=0$
, $\boldsymbol {u}^\textrm {Rx}=0$
, $c_{{s}}=1$
and $c_{{A}}=5$
. (Colour online – the vertical ordering of the lines in the $k_{\parallel }>0$
half-plane coincides with that of ${\varepsilon }_{\mathrm {Rx}}$
in the legend.)

This figure shows the transition of the fast-magnetosonic-branch dispersion relation: $\omega$
versus $k_{\parallel }$
; from IMHD (${\varepsilon }_{\mathrm {Rx}}=0$
) to RxMHD (${\varepsilon }_{\mathrm {Rx}}=1$
). Fixed parameters (in arbitrary units) are $k=1$
, $\boldsymbol {u}=0$
, $\boldsymbol {u}^\textrm {Rx}=0$
, $c_{{s}}=1$
and $c_{{A}}=5$
. (Colour online – the vertical ordering of the lines in the $k_{\parallel }>0$
half-plane coincides with that of ${\varepsilon }_{\mathrm {Rx}}$
in the legend.)

7. Conclusion
Invoking the augmented Lagrangian version of the penalty function method for constrained optimization, we have sketched out what we hope is a practical computational approach for iteratively solving the RxMHD EL equations of Dewar et al. (Reference Dewar, Burby, Qu, Sato and Hole2020) with added IOL constraint terms.
This method depends crucially on the existence of a Lagrange multiplier field to be found using the augmented Lagrangian iteration algorithm borrowed from finite-dimensional optimization theory.
A formal proof of convergence may in general be difficult, but a practical approach will be to test the algorithm by perturbing away from IOL-feasible relaxed equilibria in simple geometries. A suitable such starting point is the rigidly rotating axisymmetric tokamak equilibrium discussed by Dewar et al. (Reference Dewar, Burby, Qu, Sato and Hole2020). In this paper have illustrated the construction of the Lagrange multiplier field for linearized wave perturbations in the short-wavelength WKB approximation.
To find the constrained momentum equation we have used a little-known dyadic identity to derive a general conservation form. Substituting the constrained-RxMHD Lagrangian into this general form reveals residual terms in the stress tensor and a fictitious external force that should tend to zero uniformly in $\varOmega$
if the constraint iteration converges so as to satisfy the IOL equality constraint.
However, in non-axisymmetric, 3-D plasma confinement systems such as stellarators and real tokamaks with field errors and intentionally resonant magnetic perturbations, there is good physical reason to believe uniform pointwise convergence is impossible. In such cases the best we can hope for is convergence in an $L^{2}$
-norm, which will provide a weak-form regularization to cope with the singularities to which IMHD is prone in 3-D. This regularization should break the frozen-in flux condition of IMHD on small scales and allow interesting behaviour to be simulated without raising the order of the partial differential equations as adding resistivity does. Potential applications include reconnection events and the conjectured formation of equilibrium fractal magnetic and fluid flow patterns in 3-D systems. Other potential physical phenomena to investigate in 3-D systems include the linear normal mode spectrum, nonlinear saturation, bifurcations to oscillatory modes and the effect of quasisymmetry (Nührenberg & Zille Reference Nührenberg and Zille1988; Burby, Kallinikos & MacKay Reference Burby, Kallinikos and MacKay2020; Rodriguez, Helander & Bhattacharjee Reference Rodriguez, Helander and Bhattacharjee2020; Constantin, Drivas & Ginsberg Reference Constantin, Drivas and Ginsberg2021) on 3-D equilibria with flow (Vanneste & Wirosoetisno Reference Vanneste and Wirosoetisno2008).
Also, to improve the physical applicability of RxMHD it will be important to extend the handling of thermal relaxation beyond isotropic pressure. Relaxation parallel to the magnetic field is very reasonable physically but perpendicular relaxation has forced the use of discontinuous pressure profiles in the MRxMHD-based SPEC code described by Hudson et al. (Reference Hudson, Dewar, Dennis, Hole, McGann, von Nessi and Lazerson2012). Thus it will be important to build on the work of Dennis et al. (Reference Dennis, Hudson, Dewar and Hole2014a) to include an anisotropic pressure tensor in a weakly IOL-feasible model.
Note that an unabridged version of this paper with more detail on derivations of equations is available online as supplementary material at https://doi.org/10.1017/S0022377821001355.
Appendix A. A very brief history of RxMHD
The term relaxation in the physical sciences generally connotes a process by which a system tends towards an equilibrium state: thermodynamic, chemical, electrodynamic, mechanical or a combination of these. For example, in a closed, constant energy system initially out of thermodynamic equilibrium, relaxation occurs as the entropy increases towards a maximum. In an open system at a temperature above that of a surrounding heat bath, relaxation occurs as heat carries energy out of the system, so its thermal energy tends towards a minimum.
In an open system with unbalanced mechanical forces, potential energy is converted into kinetic energy, which in turn is dissipated by friction into heat that is lost to the outside world, thus minimizing total energy, thermal and potential. This is the paradigm implicit in our use of the term ‘relaxation’, the assumption that a relaxed state is defined by the minimum of a Hamiltonian.
In plasma physics the first use of the term may have been in the paper by Chandrasekhar & Woltjer (Reference Chandrasekhar and Woltjer1958), which proposes two variational principles other than maximizing entropy or minimizing energy: maximum energy for given mean-square current density and minimum dissipation for a given magnetic energy. The common element in these, and the minimum energy at constant magnetic helicity principle used by Woltjer (Reference Woltjer1958a) and Taylor (Reference Taylor1974), is the derivation of a ‘linear-force-free’ magnetic field obeying the Beltrami equation $\boldsymbol {\nabla }{\times }\boldsymbol {B}=\mu \boldsymbol {B}$
, with $\mu$
constant, as the outcome. The Chandrasekhar and Woltjer work was in the context of plasma astrophysics, justifying the force-free assumption (where the force density in question is $\boldsymbol {j}{\times }\boldsymbol {B}$
) basically on the assumption the plasma has low $\beta \stackrel {\textrm {def}}{=} p/(B^{2}/2\mu _0)$
and no confining forces that are strong compared with gradients of magnetic pressure. In contrast Taylor considered a toroidal terrestrial plasma confined in a metal shell and driven by a strong induced current, creating a turbulent state from which the plasma relaxes. Taylor regards the relaxation mechanism as the breaking of the microscopic IMHD topological invariants leaving only the global magnetic helicity as conserved.
Taylor (Reference Taylor1974) is uncommitted as to the exact details of this breaking of microscopic invariants and is content to use successful comparison with experiment of the predictions flowing from his derivation of the Beltrami equation as sufficient validation of his elegantly simple model, a general philosophy we also adopt. However, in his later review, Taylor (Reference Taylor1986) gives some more detail on the decay mechanism, citing some turbulence simulations and invokes turbulence scale length arguments to explain why it is energy that is minimized rather than magnetic helicity. Moffatt (Reference Moffatt2015) has recently critically reviewed the arguments of Taylor (Reference Taylor1986) from a more modern perspective.
Woltjer (Reference Woltjer1958b) pointed out there were other global IMHD invariants beyond magnetic helicity, in particular his (2), the cross-helicity involving both flow and magnetic field. Bhattacharjee & Dewar (Reference Bhattacharjee and Dewar1982) pointed that in an axisymmetric system an infinity of additional global invariants could be generated by taking moments of $\boldsymbol {A}\boldsymbol {\cdot }\boldsymbol {B}$
with powers of a flux function, and used lower moments to generate more physical pressure and current profiles for tokamak equilibria than the very restricted profiles given by Taylor's relaxation principle. Hudson et al. (Reference Hudson, Dewar, Dennis, Hole, McGann, von Nessi and Lazerson2012) developed MRxMHD, a generalization of single-region Taylor relaxation by inserting thin IMHD barrier interface tori to frustrate global Taylor relaxation. This generalization is appropriate to non-axisymmetric equilibria in stellarators and in tokamaks with symmetry-breaking perturbations, where magnetic field-line flow can be chaotic even without turbulence. This MRxMHD formulation is implemented in the now well-established code SPEC.
A relaxation approach for finding equilibria with flow by adding a constraint additional to conservation of magnetic helicity, conservation of cross-helicity, was used by Finn & Antonsen (Reference Finn and Antonsen1983) using an entropy-maximization relaxation principle (see also the contemporaneous paper by Hameiri (Reference Hameiri1983)). However, they show this leads to the same equations as energy minimization. Thus we take, as in IMHD, the entropy in $\varOmega$
to be conserved and follow Taylor in defining relaxed states as energy minima.
Pseudodynamical energy-descent relaxation processes that conserve topological invariants have been developed (Vallis, Carnevale & Young Reference Vallis, Carnevale and Young1989; Vladimirov et al. Reference Vladimirov, Moffatt and Ilin1999), but we stay within the framework of conservative classical mechanics by developing a dynamical formalism, RxMHD, that includes relaxed equilibria as stationary points of a relaxation Hamiltonian, with Lagrange multipliers to constrain chosen macroscopic invariants, but which also allows non-equilibrium motions, most easily done using Hamilton's action principle. Stability can also be examined by taking the second variation of the Hamiltonian (Vladimirov et al. Reference Vladimirov, Moffatt and Ilin1999), but in this paper, as in Dewar et al. (Reference Dewar, Yoshida, Bhattacharjee and Hudson2015) and Dewar et al. (Reference Dewar, Burby, Qu, Sato and Hole2020), we deal only with first variations.
However, the code SPEC of Hudson et al. (Reference Hudson, Dewar, Dennis, Hole, McGann, von Nessi and Lazerson2012) implements a Newton method for finding energy minima and saddle points by calculating a Hessian matrix, which is the second variation of the MRxMHD energy; combined with a model kinetic energy obtained by loading all mass onto the interfaces between the relaxation regions. This has recently been used successfully by Kumar et al. (Reference Kumar, Qu, Doak, Dewar, Hezaveh, Nührenberg, Aleynikova, Hole, Hudson, Loizu and Baillod2021a,Reference Kumar, Qu, Hole, Wright, Loizu, Hudson, Baillod, Dewar and Ferrarob) for calculating the spectrum of some linear eigenmodes in a tokamak, but comparison between the model kinetic energy and our new dynamical relaxation theory is desirable for determining the domain of applicability of the mass loading model.
Appendix B. Some vector and dyadic identities
In the body of this paper we have used the usual coordinate-free vector (and dyadic) calculus notations, but in this appendix we derive some identities that are more easily proved using elementary tensor notation. Detailed derivations have been deleted but are available in the online supplement.
Assuming an arbitrary fixed orthonormal basis $\{\boldsymbol {e}_{i}\}$
, $i=1,2,3\mod 3$
, a vector, $\boldsymbol {a}$
say, is represented as $\boldsymbol {a}=a_{i}\boldsymbol {e}_{i}$
, the summation convention for contraction over repeated dummy indices being assumed throughout.
Thus dot and cross products are represented as $\boldsymbol {a}\boldsymbol {\cdot }\boldsymbol {b}=a_{i}b_{i}$
and $\boldsymbol {a}{\times }\boldsymbol {b}=\boldsymbol {e}_{i}\varepsilon _{i,j,k}a_{j}b_{k}$
, respectively, where the alternating Levi-Civita tensor $\varepsilon _{ijk}$
is $1$
or $-1$
according as $\{i,j,k\}$
is an even or odd permutation of $\{1,2,3\}$
, or $0$
if it is neither (e.g. if there are repeated integers). Also the operations of grad and curl acting on scalar and vector functions $f$
and $\boldsymbol {f}$
, respectively, are represented as $\boldsymbol {\nabla } f=\partial f/\partial \boldsymbol {x}\stackrel {\textrm {def}}{=}\boldsymbol {e}_{i}\partial _{i}f$
and $\boldsymbol {\nabla }{\times }\boldsymbol {a}\stackrel {\textrm {def}}{=}\boldsymbol {e}_{i}\varepsilon _{ijk}\partial _{j}a_{k}$
, where $\partial _{i}\stackrel {\textrm {def}}{=}\partial /\partial x_{i}$
. We use parentheses to limit the scope of the rightward differentiation of such operators. Note that left–right ordering is more important in vector notation; e.g. the dyadics $\boldsymbol {a}\boldsymbol {b}$
and $\boldsymbol {b}\boldsymbol {a}$
are distinct, but $a_{i}b_{j}=b_{j}a_{i}$
.
First we derive three useful identities involving gradients with respect to $\boldsymbol {B}\equiv B_{i}\boldsymbol {e}_{i}$
, and the unit vector parallel to $\boldsymbol {{B}}$
, $\boldsymbol {e}_{\boldsymbol {B}}(\boldsymbol {x})\equiv \boldsymbol {B}(\boldsymbol {x})/B(\boldsymbol {x})$
. (By
parallel to $\boldsymbol {{B}}$
’ we mean locally tangent to the magnetic field line passing through any point $\boldsymbol {x}$
. Henceforth the dependence on $\boldsymbol {x}$
is implicit as these identities concern functions purely of $\boldsymbol {B}$
.)
Lemma B.1 The gradients of $\boldsymbol {B}$
, $B$
and $\boldsymbol {e}_{B}$
with respect to $\boldsymbol {B}$
are, in terms of the identity dyadic $ {\boldsymbol{\mathsf{I}}} \stackrel {\textrm {def}}{=}\sum _{i}\boldsymbol {e}_{i}\boldsymbol {e}_{i}$
, the unit tangent vector $\boldsymbol {e}_{\boldsymbol {B}}$
, and $ {\boldsymbol{\mathsf{P}}} _{\perp }\stackrel {\textrm {def}}{=} {\boldsymbol{\mathsf{I}}} -\boldsymbol {e}_{\boldsymbol {B}}\boldsymbol {e}_{\boldsymbol {B}}$
, the projector onto the plane perpendicular to $\boldsymbol {B}$
,
Lemma B.2 Variational derivative of functional $F[\boldsymbol {A},\varPhi ]=\iint f(\boldsymbol {A},\boldsymbol {B},\boldsymbol {E})\,\mathrm {d} V\,\mathrm {d} t$
is
where $f$
is an arbitrary scalar-valued function of $\boldsymbol {A}$
, $\boldsymbol {B}=\boldsymbol {\nabla }{\times }{\boldsymbol {A}}$
, and $\boldsymbol {E}=-\partial _{t} \boldsymbol {A}-\boldsymbol {\nabla }\varPhi$
from (1.6), $\boldsymbol {A}$
being an arbitrary vector field.
Lemma B.3 Variational derivative of functional $F$
above is
Two useful identities, closely related to integration by parts, for deriving conservation forms of EL equations for freely variable fields (members of the set denoted $\boldsymbol {\eta }$
in Dewar et al. (Reference Dewar, Burby, Qu, Sato and Hole2020)) are as follows.
Lemma B.4 For scalar fields, e.g. $\varPhi$
where $\boldsymbol {f}$
is an arbitrary vector field, e.g. $\partial \mathcal {L}/\partial \boldsymbol {\nabla }\varPhi$
.
Corollary B.1 For $\boldsymbol {E}=-\boldsymbol {\nabla }\varPhi -\partial _{t}\boldsymbol {A}$
,
Lemma B.5 For $\boldsymbol {A}$
an arbitrary vector field and $\boldsymbol {B}=\boldsymbol {\nabla }{\times }\boldsymbol {A},$
where $\boldsymbol {f}$
is an arbitrary vector field, e.g. $\partial \mathcal {L}/\partial \boldsymbol {B}$
. (Note that for a more useful form see the corollary (B7), below.)
Corollary B.2
Lemma B.6
Supplementary material
Supplementary material are available at https://doi.org/10.1017/S0022377821001355.
Acknowledgements
We gratefully acknowledge useful discussions with N. Sato on constraint options, R. MacKay for suggesting the relevance of weak KAM theory to 3-D MHD equilibrium theory, J. Burby for discussions of an earlier version of this paper, M. Hegland for a discussion of regularization, L. Roberts for references on infinite-dimensional augmented Lagrangian optimization methods and M. Hole for reading the manuscript. We also thank Z. Levnajic and I. Mezic for consenting to use of their visualizations of chaos in our figure 1. Finally we thank an anonymous referee for pointing out the interpretation of the IOL Lagrange multiplier as an electrostatic polarization field.
Editor T. Passot thanks the referees for their advice in evaluating this article.
Declaration of interest
The authors report no conflict of interest.
Funding
The work of Z.Q. was supported by the Australian Research Council under grant DP170102606 and the Simons Foundation/SFARI (560651, AB). R.L.D. and Z.Q. also acknowledge travel support from the Simons Foundation/SFARI (560651, AB).






































