betaFeedback

WorksMathematics

Structure-preserving finite element method for the 2D MHD-αα turbulence system

Abstract

We propose a structure-preserving finite element method for the two-dimensional MHD-αα turbulence model, which filters the transport velocity at a length αα while retaining the ideal invariants of the original MHD equations, with the energy replaced by an αα-dependent energy. The scheme preserves mass conservation and the magnetic Gauss law pointwise and satisfies discrete dissipation laws for the energy, the cross helicity and the mean square magnetic potential, which reduce to exact conservation in the ideal limit. The discrete systems are solved by an augmented Lagrangian preconditioner with monolithic geometric multigrid, observed to be robust with respect to the filter width αα and the Reynolds numbers, and to the mesh size for small time steps. The scheme converges at the optimal rates and agrees with a Fourier pseudo-spectral direct simulation of the original MHD equations at the large scales. In under-resolved flows, the unfiltered scheme has no numerical dissipation and accumulates energy at the grid scale. Filtering relieves this accumulation and a larger αα gives a more compact spectrum. Long-time simulations reproduce selective decay, including relaxation toward the Arnold-type bound and the inverse cascade of the mean square potential.

Introduction

The long-time dynamics of magnetohydrodynamic (MHD) turbulence is governed by its ideal invariants [9]. In three dimensions these are the total energy, the cross helicity, and the magnetic helicity. In two dimensions the magnetic helicity vanishes, and its role is taken by the mean square magnetic potential. We consider incompressible MHD in two dimensions on the periodic domain Ω=T2\Omega= \mathbb{T}^{2}, written in terms of the velocity u\mathbf{u} and the magnetic potential AA,

∂tu+(u⋅∇)u+∇p=S(B⋅∇)B+νΔu+f,(1)\partial_t\mathbf{u}+(\mathbf{u}\cdot\nabla)\mathbf{u}+\nabla p=S(\mathbf{B}\cdot\nabla)\mathbf{B}+\nu\Delta\mathbf{u}+\mathbf{f}, \tag*{(1)}
∂tA+u⋅∇A=ηΔA,(2)\partial_t A+\mathbf{u}\cdot\nabla A=\eta\Delta A, \tag*{(2)}

with ∇⋅u=0\nabla\cdot\mathbf{u}=0 and magnetic field B=curl⁡A\mathbf{B}=\operatorname{curl}A. Here ν=Re⁡−1≥0\nu=\operatorname{Re}^{-1}\ge0 and η=Re⁡m−1≥0\eta=\operatorname{Re}_{m}^{-1}\ge0 are the nondimensional viscosity and resistivity, the inverse kinetic and magnetic Reynolds numbers, S>0S>0 is the coupling coefficient and f\mathbf{f} is a prescribed forcing term. We use the two-dimensional curl operators curl⁡ϕ=(∂yϕ,−∂xϕ)T\operatorname{curl}\phi=(\partial_y\phi,-\partial_x\phi)^{T} and rot⁡v=∂xv2−∂yv1\operatorname{rot}\mathbf{v}=\partial_xv_2-\partial_yv_1, and denote by w=rot⁡uw=\operatorname{rot}\mathbf{u} the vorticity and by j=rot⁡B=−ΔAj=\operatorname{rot}\mathbf{B}=-\Delta A the current density. For a,b∈R2\mathbf{a},\mathbf{b}\in\mathbb{R}^{2} and ϕ∈R\phi\in\mathbb{R} we write a×ϕ=−ϕ×a=(a2ϕ,−a1ϕ)T\mathbf{a}\times\phi=-\phi\times\mathbf{a}=(a_2\phi,-a_1\phi)^{T} and a×b=a1b2−a2b1\mathbf{a}\times\mathbf{b}=a_1b_2-a_2b_1. On T2\mathbb{T}^{2} a divergence-free field is the curl of a periodic potential if and only if its mean vanishes, the constant vector fields being the harmonic fields of the torus. We therefore assume that u\mathbf{u}, B\mathbf{B} and f\mathbf{f} have zero mean. Since B=curl⁡A\mathbf{B}=\operatorname{curl}A determines AA only up to a constant, we fix it by ∫ΩA dx=0\int_{\Omega}A\,\mathrm{d}x=0. For ν=η=0\nu=\eta=0 and f=0\mathbf{f}=0, (1) conserves the energy, the cross helicity and the mean square potential,

E=12∫Ω∣u∣2+S∣B∣2 dx,Hc=∫Ωu⋅B dx,A=∫ΩA2 dx.(3)\mathcal{E}=\frac{1}{2}\int_{\Omega}\lvert\mathbf{u}\rvert^{2}+S\lvert\mathbf{B}\rvert^{2}\,\mathrm{d}x,\qquad\mathcal{H}_{c}=\int_{\Omega}\mathbf{u}\cdot\mathbf{B}\,\mathrm{d}x,\qquad\mathcal{A}=\int_{\Omega}A^{2}\,\mathrm{d}x. \tag*{(3)}

With small viscosity and resistivity, these three invariants have been observed to decay at different rates in decaying turbulence [38, 10, 9]; the system then relaxes toward a state of minimal energy constrained by them, as observed in simulations of two-dimensional MHD [11]. This so-called selective decay mechanism underlies the inverse cascade of magnetic helicity in three-dimensional MHD turbulence [21] and of the mean square potential in two-dimensional MHD turbulence [43, 22, 11], and the relaxation toward Taylor states [47] in fusion plasmas.

In a turbulent flow, energy cascades from the large scales toward ever smaller scales until it is removed by viscosity at the dissipation scale according to Kolmogorov’s 1941 theory [31]. A direct numerical simulation (DNS) resolves all scales down to this dissipation scale, so its cost grows rapidly with the Reynolds number and becomes prohibitive [42]. Large eddy simulation (LES) instead resolves only the large scales and models the effect of the unresolved small scales on them [46]. The fundamental requirement is to truncate the scales to those representable on a computationally feasible mesh without substantially altering the large flow structures [34].

For long-time turbulence simulations to be reliable, the numerical method should respect the invariants and their dissipation laws, which calls for structure-preserving discretizations. A structure-preserving scheme, however, introduces no numerical dissipation. While the flow is resolved, this is an asset; but in long-time turbulent computations the energy it conserves cannot be removed there and accumulates at the smallest resolved scales, thus polluting the simulation. Conventional turbulence codes address under-resolution at the level of the scheme, through numerical or eddy viscosity, which, however, changes the dissipation rates of the ideal invariants. This highlights an interesting tension between structure-preserving schemes and the need for dissipation in under-resolved turbulence simulations. To address this issue, we seek to suppress the accumulation of energy at the smallest resolved scales without introducing additional dissipation, while retaining the cross helicity and the mean square potential (2) of the original MHD system, together with a modified energy, so that long-time computations remain reliable. This can be achieved with the regularized α\alpha-model [36, 20], which we now review from the perspective of the ideal MHD invariants.

We aim to regularize the system (1) via filtering the transport velocity. The simplest way is to apply a Helmholtz filter to the velocity

uˉ:=(1−α2Δ)−1u,(4)\bar{u} := (1-\alpha^2\Delta)^{-1}u, \tag*{(4)}

which is divergence free. In the ideal case, the potential is transported by uˉ\bar{u},

∂tA+uˉ⋅∇A=0,(5)\partial_t A+\bar{u}\cdot\nabla A=0, \tag*{(5)}

and we write the momentum equation as ∂tu+N+∇p=S(B⋅∇)B\partial_t u+N+\nabla p=S(B\cdot\nabla)B with an unknown transport term NN. Our goal is to derive a transport term NN such that the three invariants (2) are preserved like the original MHD.

Mean square potential. Testing (4) with 2A2A and using ∇⋅uˉ=0\nabla\cdot\bar{u}=0,

ddtA=−∫Ωuˉ⋅∇(A2) dx=∫Ω(∇⋅uˉ)A2 dx=0,(6)\frac{d}{dt}\mathcal{A}=-\int_{\Omega}\bar{u}\cdot\nabla(A^2)\,dx=\int_{\Omega}(\nabla\cdot\bar{u})A^2\,dx=0, \tag*{(6)}

for every NN. Transporting AA by any divergence-free velocity conserves A\mathcal{A}, and its dissipation law is unchanged when ηΔA\eta\Delta A is added.

Cross helicity. It is easy to derive that

ddtHc=∫Ω∂tu⋅B+w ∂tA dx=−∫ΩB⋅(N+u‾×w) dx.(7)\frac{d}{dt}\mathcal{H}_c=\int_{\Omega}\partial_t\boldsymbol{u}\cdot\boldsymbol{B}+w\,\partial_tA\,dx=-\int_{\Omega}\boldsymbol{B}\cdot\left(N+\overline{\boldsymbol{u}}\times w\right)\,dx. \tag*{(7)}

For this to vanish for every divergence-free B\boldsymbol{B}, the bracket must be a gradient, absorbed into the pressure, plus a constant vector, which vanishes since u\boldsymbol{u} keeps zero mean. Hence

N=(u‾⋅∇)u+∑j=12uj∇u‾j=−u‾×w+∇(u‾⋅u),(8)N=(\overline{\boldsymbol{u}}\cdot\nabla)\boldsymbol{u}+\sum_{j=1}^{2}u_j\nabla\overline{u}_j=-\overline{\boldsymbol{u}}\times w+\nabla(\overline{\boldsymbol{u}}\cdot\boldsymbol{u}), \tag*{(8)}

which reduces to (u⋅∇)u(\boldsymbol{u}\cdot\nabla)\boldsymbol{u} up to a gradient when α=0\alpha=0. Thus, we obtain the transport term.

Energy. By (5) and (B⋅∇)B=j×B+∇(∣B∣2/2)(\boldsymbol{B}\cdot\nabla)\boldsymbol{B}=j\times\boldsymbol{B}+\nabla(|\boldsymbol{B}|^2/2) with u‾⋅(j×B)=ju‾⋅∇A\overline{\boldsymbol{u}}\cdot(j\times\boldsymbol{B})=j\overline{\boldsymbol{u}}\cdot\nabla A, the magnetic energy changes by the work of the Lorentz force on u‾\overline{\boldsymbol{u}},

S2ddt∫Ω∣B∣2 dx=S∫Ωj ∂tA dx=−S∫Ωu‾⋅(B⋅∇)B dx.(9)\frac{S}{2}\frac{d}{dt}\int_{\Omega}|\boldsymbol{B}|^2\,dx=S\int_{\Omega}j\,\partial_tA\,dx=-S\int_{\Omega}\overline{\boldsymbol{u}}\cdot(\boldsymbol{B}\cdot\nabla)\boldsymbol{B}\,dx. \tag*{(9)}

We therefore test the momentum equation with u‾\overline{\boldsymbol{u}}: the transport term (7) does no work since (u‾×w)⋅u‾=0(\overline{\boldsymbol{u}}\times w)\cdot\overline{\boldsymbol{u}}=0, the Lorentz terms cancel, and by the symmetry of the filter the conserved energy is

Eα=12∫Ωu‾⋅u+S∣B∣2 dx=12∫Ω∣u‾∣2+α2∣∇u‾∣2+S∣B∣2 dx.(10)\mathcal{E}^{\alpha}=\frac{1}{2}\int_{\Omega}\overline{\boldsymbol{u}}\cdot\boldsymbol{u}+S|\boldsymbol{B}|^2\,dx=\frac{1}{2}\int_{\Omega}|\overline{\boldsymbol{u}}|^2+\alpha^2|\nabla\overline{\boldsymbol{u}}|^2+S|\boldsymbol{B}|^2\,dx. \tag*{(10)}

Adding viscosity, resistivity and forcing, we obtain the MHD-α\alpha model [36]

∂tu+(u‾⋅∇)u+∑j=12uj∇u‾j+∇p=S(B⋅∇)B+νΔu+f,(11)\partial_t\boldsymbol{u}+(\overline{\boldsymbol{u}}\cdot\nabla)\boldsymbol{u}+\sum_{j=1}^{2}u_j\nabla\overline{u}_j+\nabla p=S(\boldsymbol{B}\cdot\nabla)\boldsymbol{B}+\nu\Delta\boldsymbol{u}+f, \tag*{(11)}
∂tA+u‾⋅∇A=ηΔA,(12)\partial_tA+\overline{\boldsymbol{u}}\cdot\nabla A=\eta\Delta A, \tag*{(12)}

with u‾=(1−α2Δ)−1u\overline{\boldsymbol{u}}=(1-\alpha^2\Delta)^{-1}\boldsymbol{u}, ∇⋅u=0\nabla\cdot\boldsymbol{u}=0 and B=curl⁡A\boldsymbol{B}=\operatorname{curl}A. It is the magnetohydrodynamic analog of the Navier–Stokes-α\alpha model [15, 20].

Remark (Kelvin circulation). The transport term (7) is the one produced by Kelvin’s circulation theorem when material loops are advected by u‾\overline{\boldsymbol{u}} instead

of uˉ\bar{\mathbf{u}} [20, 36]. A line element joining two such particles evolves by

ddt(dx)=uˉ(x+dx)−uˉ(x)=(dx⋅∇)uˉ,\frac{d}{dt}(d\mathbf{x})=\bar{\mathbf{u}}(\mathbf{x}+d\mathbf{x})-\bar{\mathbf{u}}(\mathbf{x})=(d\mathbf{x}\cdot\nabla)\bar{\mathbf{u}},

so for a loop γ(t)\gamma(t) moving with uˉ\bar{\mathbf{u}},

ddt∮γ(t)u⋅dx=∮γ(t)(∂tu+(uˉ⋅∇)u)⋅dx+∮γ(t)u⋅ddt(dx)=∮γ(t)(∂tu+(uˉ⋅∇)u)⋅dx+∮γ(t)u⋅(dx⋅∇)uˉ=∮γ(t)(∂tu+(uˉ⋅∇)u+∑j=12uj∇uˉj)⋅dx.(13)\begin{aligned} \frac{d}{dt}\oint_{\gamma(t)}\mathbf{u}\cdot d\mathbf{x} &=\oint_{\gamma(t)}\left(\partial_t\mathbf{u}+(\bar{\mathbf{u}}\cdot\nabla)\mathbf{u}\right)\cdot d\mathbf{x} +\oint_{\gamma(t)}\mathbf{u}\cdot\frac{d}{dt}(d\mathbf{x})\\ &=\oint_{\gamma(t)}\left(\partial_t\mathbf{u}+(\bar{\mathbf{u}}\cdot\nabla)\mathbf{u}\right)\cdot d\mathbf{x} +\oint_{\gamma(t)}\mathbf{u}\cdot(d\mathbf{x}\cdot\nabla)\bar{\mathbf{u}}\\ &=\oint_{\gamma(t)}\left(\partial_t\mathbf{u}+(\bar{\mathbf{u}}\cdot\nabla)\mathbf{u}+\sum_{j=1}^{2}u_j\nabla\bar{u}_j\right)\cdot d\mathbf{x}. \tag*{(13)} \end{aligned}

For α=0\alpha=0 the last term is ∇(∣u∣2/2)\nabla(|\mathbf{u}|^2/2), which integrates to zero around the loop, and the classical theorem is recovered.

The MHD-α\alpha model (10) thus retains the three ideal invariants of MHD, with E\mathcal{E} replaced by Eα\mathcal{E}^{\alpha}. The term α2∣∇u∣2\alpha^2|\nabla\mathbf{u}|^2 in Eα\mathcal{E}^{\alpha} penalizes motions below the length α\alpha, so small-scale velocity activity below this scale is suppressed, which may reduce the resolution required [20, 16], while no dissipation is added. The cross helicity Hc\mathcal{H}_c and the mean square potential A\mathcal{A} are unchanged and satisfy the same dissipation laws as in MHD.

To capture these dynamics, a discretization should preserve the ideal invariants and their nonideal dissipation laws at the discrete level, since numerical dissipation acting on the slowly decaying invariants alters the very hierarchy that drives selective decay. The past decades have seen significant progress in structure-preserving methods for flows and MHD. In particular, schemes based on the finite element exterior calculus (FEEC) [2] [4, 3] have been developed that precisely preserve important structure, such as the magnetic Gauss law and helicity conservation [30, 28, 29, 23, 33, 37, 7, 35]. Helicity-preserving discretizations have been used to study magnetic relaxation [27, 18], where preserving the magnetic helicity at the discrete level is essential: the ideal invariant constrains the evolution and determines the relaxed state. The same method has also been used to compute three-dimensional MHD equilibria of stellarators [12]. Energy- and helicity-conserving schemes have also been constructed with mixed finite elements for the Navier–Stokes equations [45] and the Navier–Stokes-α\alpha model [39], and for the Navier–Stokes equations with mimetic dual-field discretizations [49, 50]. Beyond finite elements, long-time simulations of ideal MHD turbulence were carried out in [40] with a structure-preserving matrix discretization, and a structure-preserving spectral scheme for ideal MHD was proposed in [24].

In this work we construct a structure-preserving finite element method for the two-dimensional MHD-α\alpha model (10), and show that both the filter and structure preservation are needed for accurate simulations on under-resolved meshes, i.e. for use as a large eddy simulation. Our contributions are:

  • The discretization. A structure-preserving finite element discretization of the MHD-α\alpha model with pointwise divergence-free fields and discrete dissipation laws for all three ideal invariants, which reduce to exact conservation in the ideal limit.

  • The solver. An augmented Lagrangian preconditioner with a monolithic multigrid solver, whose iteration counts are observed to be robust with respect to the filter width and the Reynolds numbers, and to the mesh size for small time steps.

  • Why the MHD-α\alpha model is necessary. A comparison with a direct numerical simulation shows that, once the flow is under-resolved, the unfiltered scheme accumulates energy at the grid scale, which pollutes the small scales with spurious oscillations. The filter suppresses this accumulation without introducing additional dissipation and with all three invariants preserved, so that a coarse mesh reproduces the large scales of the direct simulation free of oscillations.

  • Why structure-preservation is necessary. In the comparisons reported here, discretizations that fail to preserve the dissipation laws exhibit additional loss of the mean square potential and reach a different state at the same time, whereas the structure-preserving scheme reproduces selective decay and, in our experiments, approaches the Arnold-type bound.

The paper is organized as follows. Section 2 writes the MHD-α\alpha model in the rotational form used by the discretization and states its dissipation laws. Section 3 presents the discretization and proves its structure-preserving properties, and Section 4 describes the solver. Section 5 verifies convergence and conservation. Section 6 studies selective decay and long-time relaxation, Section 7 compares the energy spectra with a direct simulation, Section 8 considers magnetic island coalescence, and Section 9 concludes.

The MHD-α\alpha model and conserved quantities

With the pressure P=p+uˉ⋅u−S2∣B∣2P=p+\bar{\mathbf{u}}\cdot\mathbf{u}-\frac{S}{2}|\mathbf{B}|^2, the MHD-α\alpha model (10) reads, in rotational form,

∂tu−uˉ×w+νcurl⁡w+∇P−Sj×B=f,(14)\partial_t\mathbf{u}-\bar{\mathbf{u}}\times\mathbf{w}+\nu\operatorname{curl}\mathbf{w}+\nabla P-S\mathbf{j}\times\mathbf{B}=\mathbf{f}, \tag*{(14)}
∂tA+uˉ⋅∇A=−ηj,(15)\partial_t A+\bar{\mathbf{u}}\cdot\nabla A=-\eta\mathbf{j}, \tag*{(15)}
B=curl⁡A,j=rot⁡B,w=rot⁡u,(16)\mathbf{B}=\operatorname{curl} A,\qquad\mathbf{j}=\operatorname{rot}\mathbf{B},\qquad\mathbf{w}=\operatorname{rot}\mathbf{u}, \tag*{(16)}
uˉ+α2curl⁡(rot⁡uˉ)=u,∇⋅u=∇⋅uˉ=∇⋅B=0.(17)\bar{\mathbf{u}}+\alpha^2\operatorname{curl}(\operatorname{rot}\bar{\mathbf{u}})=\mathbf{u},\qquad\nabla\cdot\mathbf{u}=\nabla\cdot\bar{\mathbf{u}}=\nabla\cdot\mathbf{B}=0. \tag*{(17)}

For f=0\mathbf{f}=0, the energy Eα\mathcal{E}^{\alpha} in (9), the cross helicity Hc\mathcal{H}_c and the mean square potential A\mathcal{A} in (2) satisfy the dissipation laws

ddtEα=−ν∫Ωwwˉ dx−Sη∫Ω∣j∣2 dx,(18)\frac{d}{dt}\mathcal{E}^{\alpha}=-\nu\int_{\Omega}\mathbf{w}\bar{\mathbf{w}}\,\mathrm{d}x-S\eta\int_{\Omega}|\mathbf{j}|^2\,\mathrm{d}x, \tag*{(18)}
ddtHc=−(ν+η)∫Ωjw dx,(19)\frac{d}{dt}\mathcal{H}_c=-(\nu+\eta)\int_{\Omega}\mathbf{j}\mathbf{w}\,\mathrm{d}x, \tag*{(19)}
ddtA=−2η∫ΩAj dx,(20)\frac{d}{dt}\mathcal{A}=-2\eta\int_{\Omega}A\mathbf{j}\,\mathrm{d}x, \tag*{(20)}

where wˉ=rot⁡uˉ\bar{\mathbf{w}}=\operatorname{rot}\bar{\mathbf{u}}. For brevity we refer to the three quantities as invariants, even in the nonideal case.

Structure-preserving finite element discretization

Notations and finite element spaces

Let Ω=T2\Omega=\mathbb{T}^2 be the periodic square and let Th\mathcal{T}_h be a shape-regular, quasi-uniform triangulation of T2\mathbb{T}^2 with mesh size hh (the cell diameter). We use ∥⋅∥\|\cdot\| and (⋅,⋅)(\cdot,\cdot) for the L2(Ω)L^2(\Omega) norm and inner product, allowing L2L^2 to denote both scalar and vector-valued spaces. For k≥1k\geq1 let VhV_h, FhF_h and QhQ_h be the Lagrange space of degree kk, the Raviart–Thomas space [?] of degree kk, and the mean-zero discontinuous space of degree k−1k-1 on Th\mathcal{T}_h respectively. These spaces are periodic by construction,

Vh⊂H1(T2),Fh⊂H(div⁡,T2),Qh⊂L02(T2),(21)V_h\subset H^1(\mathbb{T}^2),\qquad F_h\subset H(\operatorname{div},\mathbb{T}^2),\qquad Q_h\subset L_0^2(\mathbb{T}^2), \tag*{(21)}

and they form the finite element de Rham complex

R↪Vh→curl⁡Fh→div⁡Qh→0,(22)\mathbb{R}\hookrightarrow V_h\xrightarrow{\operatorname{curl}}F_h\xrightarrow{\operatorname{div}}Q_h\to0, \tag*{(22)}

which is exact up to the harmonic forms of the torus:

ker⁡curl⁡∣Vh=R,ker⁡div⁡∣Fh=curl⁡Vh⊕R2,div⁡Fh=Qh(23)\ker\operatorname{curl}|_{V_h} = \mathbb{R}, \qquad\ker\operatorname{div}|_{F_h} = \operatorname{curl} V_h \oplus\mathbb{R}^2, \qquad\operatorname{div} F_h = Q_h \tag*{(23)}

where R2\mathbb{R}^2 denotes the constant vector fields. We denote the discretely divergence-free subspace by Zh:=ker⁡div⁡∣FhZ_h := \ker\operatorname{div}|_{F_h}. Since div⁡Fh⊆Qh\operatorname{div} F_h \subseteq Q_h, a divergence constraint imposed weakly against QhQ_h holds pointwise. The discrete rotation rot⁡h:Fh→Vh\operatorname{rot}_h : F_h \to V_h is the L2L^2-adjoint of curl⁡\operatorname{curl},

(rot⁡hv,ξ)=(v,curl⁡ξ)∀ξ∈Vh, v∈Fh.(24)(\operatorname{rot}_h v,\xi) = (v,\operatorname{curl}\xi) \qquad\forall\xi\in V_h,\ v \in F_h. \tag*{(24)}

Constant fields lie in the kernel of rot⁡h\operatorname{rot}_h, since (c,curl⁡ξ)=0(c,\operatorname{curl}\xi)=0 for all ξ∈Vh\xi\in V_h, and taking ξ=1\xi=1 in (17) shows that rot⁡hv\operatorname{rot}_h v has zero mean for every v∈Fhv \in F_h.

Lemma 3.1. There exist constants cp>0c_p>0, depending only on Ω\Omega, and Cinv>0C_{\mathrm{inv}}>0, independent of hh and depending only on the shape regularity of Th\mathcal{T}_h and on kk, such that

∥v∥≤cp∥rot⁡hv∥∀v∈curl⁡Vh,(25)\|v\| \le c_p\|\operatorname{rot}_h v\| \qquad\forall v \in\operatorname{curl} V_h, \tag*{(25)}
∥curl⁡ξ∥≤Cinvh−1∥ξ∥∀ξ∈Vh.(26)\|\operatorname{curl}\xi\| \le C_{\mathrm{inv}}h^{-1}\|\xi\| \qquad\forall\xi\in V_h. \tag*{(26)}

Proof. For (18), write v=curl⁡ξv=\operatorname{curl}\xi with ξ∈Vh\xi\in V_h. Since curl⁡\operatorname{curl} annihilates constants, we may subtract the mean of ξ\xi and assume that ξ\xi has zero mean, and this does not change vv. Then ∥v∥2=(ξ,rot⁡hv)≤cp∥∇ξ∥∥rot⁡hv∥=cp∥v∥∥rot⁡hv∥\|v\|^2=(\xi,\operatorname{rot}_h v)\le c_p\|\nabla\xi\|\|\operatorname{rot}_h v\|=c_p\|v\|\|\operatorname{rot}_h v\| by (17), the Poincaré inequality for mean-zero ξ\xi and ∣curl⁡ξ∣=∣∇ξ∣|\operatorname{curl}\xi|=|\nabla\xi| pointwise. By (16), curl⁡Vh\operatorname{curl} V_h consists of the mean-zero fields in ZhZ_h. The remaining two estimates are the standard inverse inequality on quasi-uniform meshes [13, Thm. 4.5.11]; for the last estimate, take ξ=rot⁡hv\xi=\operatorname{rot}_h v in (17).

Discrete filters and α\alpha-norms

The continuous filter u‾+α2curl⁡rot⁡u‾=u\overline{u}+\alpha^2\operatorname{curl}\operatorname{rot}\overline{u}=u is discretized in mixed form, with the auxiliary scalar w‾=rot⁡u‾\overline{w}=\operatorname{rot}\overline{u}. The velocity filter reads: given u∈Fhu\in F_h, find (u‾,w‾)∈Fh×Vh(\overline{u},\overline{w})\in F_h\times V_h such that

(u‾,ψ)+α2(curl⁡w‾,ψ)=(u,ψ),∀ψ∈Fh,(27)(\overline{u},\psi)+\alpha^2(\operatorname{curl}\overline{w},\psi)=(u,\psi), \qquad\forall\psi\in F_h, \tag*{(27)}
(w‾,ξ)−(u‾,curl⁡ξ)=0,∀ξ∈Vh.(28)(\overline{w},\xi)-(\overline{u},\operatorname{curl}\xi)=0, \qquad\forall\xi\in V_h. \tag*{(28)}

By (17), equation (28) states w‾=rot⁡hu‾\overline{w}=\operatorname{rot}_h\overline{u}. The analysis of the viscous term also requires the vorticity filter on VhV_h: given ω∈Vh\omega\in V_h, find ω‾∈Vh\overline{\omega}\in V_h such that

(ω‾,ς)+α2(curl⁡ω‾,curl⁡ς)=(ω,ς)∀ς∈Vh.(29)(\overline{\omega},\varsigma)+\alpha^2(\operatorname{curl}\overline{\omega},\operatorname{curl}\varsigma)=(\omega,\varsigma) \qquad\forall\varsigma\in V_h. \tag*{(29)}

We denote by Fα:Fh→Fh\mathcal{F}_{\alpha}: F_h \to F_h and Rα:Fh→Vh\mathcal{R}_{\alpha}: F_h \to V_h the solution operators of the velocity filter, u↦u‾u \mapsto\overline{u} and u↦w‾u \mapsto\overline{w}, and by Gα:Vh→Vh\mathcal{G}_{\alpha}: V_h \to V_h the solution operator of the vorticity filter, ω↦ω‾\omega\mapsto\overline{\omega}. All three are linear.

Proposition 3.1 (Discrete filters). For every α>0\alpha> 0 the following hold.

(i) Both filters are well posed, and

(u,u‾)=∥u‾∥2+α2∥w‾∥2,(ω,ω‾)=∥ω‾∥2+α2∥curl⁡ω‾∥2.(30)(u,\overline{u}) = \lVert\overline{u}\rVert^2 + \alpha^2\lVert\overline{w}\rVert^2,\qquad (\omega,\overline{\omega}) = \lVert\overline{\omega}\rVert^2 + \alpha^2\lVert\operatorname{curl}\overline{\omega}\rVert^2. \tag*{(30)}

(ii) Fα\mathcal{F}_{\alpha} and Gα\mathcal{G}_{\alpha} are symmetric and contractive:

∥Fαu∥≤∥u∥,∥Gαω∥≤∥ω∥.(31)\lVert\mathcal{F}_{\alpha}u\rVert\le\lVert u\rVert,\qquad \lVert\mathcal{G}_{\alpha}\omega\rVert\le\lVert\omega\rVert. \tag*{(31)}

(iii) The filters commute with rot⁡h\operatorname{rot}_h: Rαu=Gα(rot⁡hu)\mathcal{R}_{\alpha}u = \mathcal{G}_{\alpha}(\operatorname{rot}_h u), that is,

rot⁡hFαu=Gαrot⁡hu∀u∈Fh.(32)\operatorname{rot}_h\mathcal{F}_{\alpha}u = \mathcal{G}_{\alpha}\operatorname{rot}_h u \qquad\forall u \in F_h. \tag*{(32)}

Proof. (i) The systems are finite-dimensional, so it suffices to show uniqueness. For the velocity filter, take ψ=u‾\psi= \overline{u} in (20a) and ξ=α2w‾\xi= \alpha^2\overline{w} in (20b); adding, the cross terms cancel and (u,u‾)=∥u‾∥2+α2∥w‾∥2(u,\overline{u}) = \lVert\overline{u}\rVert^2 + \alpha^2\lVert\overline{w}\rVert^2, which vanishes when u=0u = 0. The vorticity filter is treated by taking ς=ω‾\varsigma= \overline{\omega} in (21).

(ii) For u1,u2∈Fhu_1,u_2 \in F_h, taking ψ=u‾2\psi= \overline{u}_2 in (20a) for u1u_1 and using (20b) for u2u_2 gives (u1,u‾2)=(u‾1,u‾2)+α2(w‾1,w‾2)(u_1,\overline{u}_2) = (\overline{u}_1,\overline{u}_2) + \alpha^2(\overline{w}_1,\overline{w}_2), which is symmetric; Gα\mathcal{G}_{\alpha} is symmetric because (21) is. By (22), ∥u‾∥2≤(u,u‾)≤∥u∥∥u‾∥\lVert\overline{u}\rVert^2 \le(u,\overline{u}) \le\lVert u\rVert\lVert\overline{u}\rVert, and likewise for ω‾\overline{\omega}.

(iii) For ς∈Vh\varsigma\in V_h take ψ=curl⁡ς∈Fh\psi= \operatorname{curl}\varsigma\in F_h in (20a). By (17) and w‾=rot⁡hu‾\overline{w} = \operatorname{rot}_h\overline{u},

(w‾,ς)+α2(curl⁡w‾,curl⁡ς)=(rot⁡hu,ς)(\overline{w},\varsigma) + \alpha^2(\operatorname{curl}\overline{w},\operatorname{curl}\varsigma) = (\operatorname{rot}_h u,\varsigma), which is (21) with ω=rot⁡hu\omega= \operatorname{rot}_h u. □\square

The discrete energy norm on FhF_h and dissipation norm on VhV_h are

∥v∥E,α2:=(v,Fαv)=∥v∥2+α2∥Rαv∥2,(33)\lVert v\rVert_{E,\alpha}^2 := (v,\mathcal{F}_{\alpha}v) = \lVert v\rVert^2 + \alpha^2\lVert\mathcal{R}_{\alpha}v\rVert^2, \tag*{(33)}
∥ω∥D,α2:=(ω,Gαω)=∥ω∥2+α2∥curl⁡ω∥2.(34)\lVert\omega\rVert_{D,\alpha}^2 := (\omega,\mathcal{G}_{\alpha}\omega) = \lVert\omega\rVert^2 + \alpha^2\lVert\operatorname{curl}\omega\rVert^2. \tag*{(34)}

By Proposition 3.1 these are induced by symmetric bilinear forms, and they are positive definite: ∥v∥E,α=0\lVert v\rVert_{E,\alpha}=0 forces v‾=0\overline{v}=0, Rαv=0\mathcal{R}_{\alpha}v=0, and then (20a) gives v=0v=0. The argument for ∥⋅∥D,α\lVert\cdot\rVert_{D,\alpha} is identical.

Theorem 3.2 (Norm equivalence). Let κ>0\kappa> 0 be fixed and assume α≤κh\alpha\le\kappa h. Then

cE∥v∥≤∥v∥E,α≤∥v∥∀v∈Fh,(35)c_E\lVert v\rVert\le\lVert v\rVert_{E,\alpha} \le\lVert v\rVert \qquad\forall v \in F_h, \tag*{(35)}

*where cE:=(2max⁡{1,Cinvκ})−1c_E := \left(\sqrt{2}\max\{1,C_{\mathrm{inv}}\kappa\}\right)^{-1}, and CinvC_{\mathrm{inv}} is the constant of Theorem 3.1. In particular cEc_E is independent of hh and α\alpha.

Proof. Let v∈Fh\boldsymbol{v} \in\mathbf{F}_h and write v‾=Fαv\overline{\boldsymbol{v}}=\mathcal{F}_\alpha\boldsymbol{v}, w‾=Rαv\overline{\boldsymbol{w}}=\mathcal{R}_\alpha\boldsymbol{v}. For the upper bound, the Cauchy–Schwarz inequality and (31) give

∥v∥E,α2=(v,v‾)≤∥v∥∥v‾∥≤∥v∥2.(36)\|\boldsymbol{v}\|_{E,\alpha}^{2}=(\boldsymbol{v},\overline{\boldsymbol{v}})\leq\|\boldsymbol{v}\|\|\overline{\boldsymbol{v}}\|\leq\|\boldsymbol{v}\|^{2}. \tag*{(36)}

For the lower bound, take ψ=v\boldsymbol{\psi}=\boldsymbol{v} in (27). By the Cauchy–Schwarz inequality, the inverse estimate (26) and α2h−1≤κα\alpha^{2}h^{-1}\leq\kappa\alpha,

∥v∥2=(v‾,v)+α2(curl⁡w‾,v)≤(∥v‾∥+α2Cinvh−1∥w‾∥)∥v∥≤(∥v‾∥+Cinvκα∥w‾∥)∥v∥.(37)\begin{aligned} \|\boldsymbol{v}\|^{2}&=(\overline{\boldsymbol{v}},\boldsymbol{v})+\alpha^{2}(\operatorname{curl}\overline{\boldsymbol{w}},\boldsymbol{v})\\ &\leq\left(\|\overline{\boldsymbol{v}}\|+\alpha^{2}C_{\mathrm{inv}}h^{-1}\|\overline{\boldsymbol{w}}\|\right)\|\boldsymbol{v}\|\\ &\leq\left(\|\overline{\boldsymbol{v}}\|+C_{\mathrm{inv}}\kappa\alpha\|\overline{\boldsymbol{w}}\|\right)\|\boldsymbol{v}\|. \tag*{(37)} \end{aligned}

Dividing by ∥v∥\|\boldsymbol{v}\|, factoring out max⁡{1,Cinvκ}\max\{1,C_{\mathrm{inv}}\kappa\} and using a+b≤2(a2+b2)1/2a+b\leq\sqrt{2}(a^{2}+b^{2})^{1/2},

∥v∥≤max⁡{1,Cinvκ}(∥v‾∥+α∥w‾∥)≤2max⁡{1,Cinvκ}(∥v‾∥2+α2∥w‾∥2)1/2=cE−1∥v∥E,α.(38)\begin{aligned} \|\boldsymbol{v}\|&\leq\max\{1,C_{\mathrm{inv}}\kappa\}\left(\|\overline{\boldsymbol{v}}\|+\alpha\|\overline{\boldsymbol{w}}\|\right)\\ &\leq\sqrt{2}\max\{1,C_{\mathrm{inv}}\kappa\}\left(\|\overline{\boldsymbol{v}}\|^{2}+\alpha^{2}\|\overline{\boldsymbol{w}}\|^{2}\right)^{1/2}\\ &=c_{E}^{-1}\|\boldsymbol{v}\|_{E,\alpha}. \tag*{(38)} \end{aligned}

The fully discrete scheme

The initial data are taken as uh0=∇⊥Ihϕ∈Zh\boldsymbol{u}_h^0=\nabla^\perp I_h\phi\in\mathbf{Z}_h and Ah0=−Ihψ+∣Ω∣−1∫ΩIhψ dxA_h^0=-I_h\psi+|\Omega|^{-1}\int_\Omega I_h\psi\,\mathrm{d}x so that ∫ΩAh0 dx=0\int_\Omega A_h^0\,\mathrm{d}x=0, where ∇⊥f:=(−∂yf,∂xf)=−curl⁡f\nabla^\perp f:=(-\partial_y f,\partial_x f)=-\operatorname{curl}f, IhI_h is the Lagrange interpolant into VhV_h, and ϕ,ψ\phi,\psi are the stream functions of the velocity and the magnetic field, so that uh0\boldsymbol{u}_h^0 and Bh0=curl⁡Ah0=∇⊥Ihψ\boldsymbol{B}_h^0=\operatorname{curl}A_h^0=\nabla^\perp I_h\psi are discretely divergence-free by construction. The filter width α\alpha is constant on the mesh.

We present a structure-preserving discretization in space and time for (12). We use the implicit midpoint method as the temporal scheme. For the fluid variables and the potential we use the averages

uhn+1/2:=12(uhn+1+uhn),u‾hn+1/2:=12(u‾hn+1+u‾hn),Ahn+1/2:=12(Ahn+1+Ahn).(39)\boldsymbol{u}_h^{n+1/2}:=\frac{1}{2}\left(\boldsymbol{u}_h^{n+1}+\boldsymbol{u}_h^n\right),\qquad \overline{\boldsymbol{u}}_h^{n+1/2}:=\frac{1}{2}\left(\overline{\boldsymbol{u}}_h^{n+1}+\overline{\boldsymbol{u}}_h^n\right),\qquad A_h^{n+1/2}:=\frac{1}{2}\left(A_h^{n+1}+A_h^n\right). \tag*{(39)}

The variables whn+1/2\boldsymbol{w}_h^{n+1/2}, jhn+1/2\boldsymbol{j}_h^{n+1/2} and Phn+1/2P_h^{n+1/2} are treated as independent unknowns at the intermediate time level. The filter constraints for u‾hn+1\overline{\boldsymbol{u}}_h^{n+1} and w‾hn+1\overline{\boldsymbol{w}}_h^{n+1} are imposed at the endpoint tn+1t^{n+1}, so that the energy pairing (uhn+1,u‾hn+1)(\boldsymbol{u}_h^{n+1},\overline{\boldsymbol{u}}_h^{n+1}) is evaluated at a single time level.

The formulation is chosen as follows. Conservation of the mean square potential relies on div⁡u‾h=0\operatorname{div}\overline{\boldsymbol{u}}_h=0 exactly, since exact divergence-free ensures that (u‾h⋅∇Ah,Ah)=0(\overline{\boldsymbol{u}}_h \cdot\nabla A_h,A_h)=0, so we discretize u‾h\overline{\boldsymbol{u}}_h in the H(div⁡)\boldsymbol{H}(\operatorname{div})-conforming space Fh\boldsymbol{F}_h. However, Fh\boldsymbol{F}_h is not regular enough for the filter u‾+α2curl⁡rot⁡u‾=u\overline{\boldsymbol{u}}+\alpha^2\operatorname{curl}\operatorname{rot}\overline{\boldsymbol{u}}=\boldsymbol{u}, so we write it in mixed form with the auxiliary variable w‾=rot⁡u‾\overline{\boldsymbol{w}}=\operatorname{rot}\overline{\boldsymbol{u}}. Since uh=u‾h+α2curl⁡w‾h\boldsymbol{u}_h=\overline{\boldsymbol{u}}_h+\alpha^2\operatorname{curl}\overline{\boldsymbol{w}}_h and div⁡curl⁡=0\operatorname{div}\operatorname{curl}=0, div⁡uh=div⁡u‾h\operatorname{div}\boldsymbol{u}_h=\operatorname{div}\overline{\boldsymbol{u}}_h, so uh\boldsymbol{u}_h must also be exactly divergence free, and we use the pair Fh×Qh\boldsymbol{F}_h\times Q_h for the velocity and pressure, for which div⁡Fh=Qh\operatorname{div}\boldsymbol{F}_h=Q_h makes the discretely divergence-free condition hold pointwise. The viscous term is written in mixed form with w=rot⁡uw=\operatorname{rot}\boldsymbol{u} thanks to the periodic boundary conditions. For the energy and the cross helicity we follow [29], with one modification: since the momentum equation is tested with u‾h\overline{\boldsymbol{u}}_h instead of uh\boldsymbol{u}_h, the kinetic energy is 12(uh,uh)\frac{1}{2}(\boldsymbol{u}_h,\boldsymbol{u}_h), which requires u‾hn=Fαuhn\overline{\boldsymbol{u}}_h^n=\mathcal{F}_\alpha\boldsymbol{u}_h^n at both time levels, so u‾hn+1\overline{\boldsymbol{u}}_h^{n+1} and w‾hn+1\overline{\boldsymbol{w}}_h^{n+1} are included as independent unknowns of Algorithm 1, with the filter equations imposed at tn+1t^{n+1}.

Algorithm 1 Fully discrete scheme for the 2D incompressible MHD-α\alpha model

Given (uh0,Ah0)∈Zh×Vh(\boldsymbol{u}_h^0,A_h^0)\in Z_h\times V_h, set u‾h0:=Fαuh0\overline{\boldsymbol{u}}_h^0:=\mathcal{F}_\alpha\boldsymbol{u}_h^0. For n=0,1,…,N−1n=0,1,\ldots,N-1, find

(uhn+1,u‾hn+1,Phn+1/2,whn+1/2,w‾hn+1,Ahn+1,jhn+1/2)∈[Fh]2×Qh×[Vh]4(40)(\boldsymbol{u}_h^{n+1},\overline{\boldsymbol{u}}_h^{n+1},P_h^{n+1/2},w_h^{n+1/2},\overline{w}_h^{n+1},A_h^{n+1},j_h^{n+1/2})\in[\boldsymbol{F}_h]^2\times Q_h\times[V_h]^4 \tag*{(40)}

such that for all test functions (vh,χh,qh,zh,ξh,eh,kh)(\boldsymbol{v}_h,\boldsymbol{\chi}_h,q_h,z_h,\xi_h,e_h,k_h) in the same space:

1Δt(uhn+1−uhn,vh)−(u‾hn+1/2×whn+1/2,vh)+ν(curl⁡whn+1/2,vh)−(Phn+1/2,div⁡vh)−S(jhn+1/2×Bhn+1/2,vh)=(f(tn+1/2),vh),(41)\begin{aligned} \frac{1}{\Delta t}(\boldsymbol{u}_h^{n+1}-\boldsymbol{u}_h^n,\boldsymbol{v}_h)-(\overline{\boldsymbol{u}}_h^{n+1/2}\times\boldsymbol{w}_h^{n+1/2},\boldsymbol{v}_h)+\nu(\operatorname{curl}\boldsymbol{w}_h^{n+1/2},\boldsymbol{v}_h)\\ -(P_h^{n+1/2},\operatorname{div}\boldsymbol{v}_h)-S(j_h^{n+1/2}\times\boldsymbol{B}_h^{n+1/2},\boldsymbol{v}_h)\\ =(\boldsymbol{f}(t^{n+1/2}),\boldsymbol{v}_h), \tag*{(41)} \end{aligned}
(u‾hn+1,χh)+α2(curl⁡w‾hn+1,χh)=(uhn+1,χh),(42)(\overline{\boldsymbol{u}}_h^{n+1},\boldsymbol{\chi}_h)+\alpha^2(\operatorname{curl}\overline{\boldsymbol{w}}_h^{n+1},\boldsymbol{\chi}_h)=(\boldsymbol{u}_h^{n+1},\boldsymbol{\chi}_h), \tag*{(42)}
(div⁡uhn+1,qh)=0,(43)(\operatorname{div}\boldsymbol{u}_h^{n+1},q_h)=0, \tag*{(43)}
(whn+1/2,zh)=(uhn+1/2,curl⁡zh),(44)(w_h^{n+1/2},z_h)=(\boldsymbol{u}_h^{n+1/2},\operatorname{curl}z_h), \tag*{(44)}
(w‾hn+1,ξh)=(u‾hn+1,curl⁡ξh),(45)(\overline{w}_h^{n+1},\xi_h)=(\overline{\boldsymbol{u}}_h^{n+1},\operatorname{curl}\xi_h), \tag*{(45)}
1Δt(Ahn+1−Ahn,eh)+η(jhn+1/2,eh)−(u‾hn+1/2×Bhn+1/2,eh)=0,(46)\frac{1}{\Delta t}(A_h^{n+1}-A_h^n,e_h)+\eta(j_h^{n+1/2},e_h)-(\overline{\boldsymbol{u}}_h^{n+1/2}\times\boldsymbol{B}_h^{n+1/2},e_h)=0, \tag*{(46)}
(jhn+1/2,kh)=(Bhn+1/2,curl⁡kh).(47)(j_h^{n+1/2},k_h)=(\boldsymbol{B}_h^{n+1/2},\operatorname{curl}k_h). \tag*{(47)}

Throughout, Bhn:=curl⁡AhnB_h^n := \operatorname{curl} A_h^n, so that Bhn+1/2:=curl⁡Ahn+1/2=12(Bhn+1+Bhn)B_h^{n+1/2} := \operatorname{curl} A_h^{n+1/2} = \frac{1}{2}(B_h^{n+1} + B_h^n) and div⁡Bhn=0\operatorname{div} B_h^n = 0. The second and fifth equations of Algorithm 1 are the velocity filter (20) at tn+1t^{n+1}, so u‾hn=Fαuhn\overline{u}_h^n = \mathcal{F}_\alpha u_h^n and, by linearity, u‾hn+1/2=Fαuhn+1/2\overline{u}_h^{n+1/2} = \mathcal{F}_\alpha u_h^{n+1/2}. The fourth and last equations state whn+1/2=rot⁡hu‾hn+1/2w_h^{n+1/2} = \operatorname{rot}_h \overline{u}_h^{n+1/2} and jhn+1/2=rot⁡hBhn+1/2j_h^{n+1/2} = \operatorname{rot}_h B_h^{n+1/2}.

Structure-preserving properties

For convenience, we write Dtuh:=(uhn+1−uhn)/ΔtD_tu_h := (u_h^{n+1}-u_h^n)/\Delta t, and define DtAhD_tA_h and DtBhD_tB_h analogously.

Theorem 3.3. Every solution of the discrete system (33) satisfies the following for all nn.

(a) discretely divergence-free property.

div⁡uhn=div⁡u‾hn=div⁡Bhn=0,(48)\operatorname{div} u_h^n = \operatorname{div} \overline{u}_h^n = \operatorname{div} B_h^n = 0, \tag*{(48)}

provided the initial conditions are discretely divergence-free.

(b) discrete energy dissipation law, with Ehα,n:=12(∥uhn∥E,α2+S∥Bhn∥2)\mathcal{E}_h^{\alpha,n} := \frac{1}{2}(\lVert u_h^n\rVert_{E,\alpha}^2 + S\lVert B_h^n\rVert^2),

Ehα,n+1−Ehα,n=−Δt ν∥whn+1/2∥D,α2−Δt Sη∥jhn+1/2∥2+Δt(fn+1/2,u‾hn+1/2).(49)\mathcal{E}_h^{\alpha,n+1} - \mathcal{E}_h^{\alpha,n} = -\Delta t\,\nu\lVert w_h^{n+1/2}\rVert_{D,\alpha}^2-\Delta t\,S\eta\lVert j_h^{n+1/2}\rVert^2+\Delta t(f^{n+1/2},\overline{u}_h^{n+1/2}). \tag*{(49)}

In the ideal limit ν=η=0\nu=\eta=0 with f=0f=0, Ehα,n\mathcal{E}_h^{\alpha,n} is exactly conserved. If ν>0\nu>0 and ∫Ωfn+1/2 dx=0\int_\Omega f^{n+1/2}\,\mathrm{d}x=0 for every nn, then for every N≥1N\geq1,

Ehα,N+νΔt2∑n=0N−1∥whn+1/2∥D,α2+SηΔt∑n=0N−1∥jhn+1/2∥2≤Ehα,0+cp2Δt2ν∑n=0N−1∥fn+1/2∥2,(50)\mathcal{E}_h^{\alpha,N}+\frac{\nu\Delta t}{2}\sum_{n=0}^{N-1}\lVert w_h^{n+1/2}\rVert_{D,\alpha}^2+S\eta\Delta t\sum_{n=0}^{N-1}\lVert j_h^{n+1/2}\rVert^2\leq\mathcal{E}_h^{\alpha,0}+\frac{c_p^2\Delta t}{2\nu}\sum_{n=0}^{N-1}\lVert f^{n+1/2}\rVert^2, \tag*{(50)}

so the scheme is unconditionally stable.

(c) discrete cross helicity dissipation law, with f=0f=0 and Hc,hn:=(uhn,Bhn)\mathcal{H}_{c,h}^n := (u_h^n,B_h^n),

Hc,hn+1−Hc,hn=−Δt(ν+η)(jhn+1/2,whn+1/2).(51)\mathcal{H}_{c,h}^{n+1}-\mathcal{H}_{c,h}^n=-\Delta t(\nu+\eta)(j_h^{n+1/2},w_h^{n+1/2}). \tag*{(51)}

(d) discrete mean-square potential dissipation law, with Ahn:=∥Ahn∥2\mathcal{A}_h^n := \lVert A_h^n\rVert^2,

Ahn+1−Ahn=−2Δt η∥∇Ahn+1/2∥2.(52)\mathcal{A}_h^{n+1}-\mathcal{A}_h^n=-2\Delta t\,\eta\lVert\nabla A_h^{n+1/2}\rVert^2. \tag*{(52)}

In the ideal limit, Hc,h\mathcal{H}_{c,h} is conserved for ν=η=0\nu=\eta=0 and AhA_h for η=0\eta=0.

Proof. Throughout the proof we drop the superscript n+1/2n+1/2 on midpoint quantities. By Algorithm 1 we have Bh=curl⁡Ah\mathbf{B}_h=\operatorname{curl} A_h, wh=rot⁡huhw_h=\operatorname{rot}_h u_h, jh=rot⁡hBhj_h=\operatorname{rot}_h \mathbf{B}_h and u‾h=Fαuh\overline{u}_h=\mathcal{F}_{\alpha}u_h, so that (17) gives

(DtAh,jh)=(DtBh,Bh),(DtAh,wh)=(DtBh,u‾h).(53)(D_t A_h,j_h)=(D_t\mathbf{B}_h,\mathbf{B}_h),\qquad(D_t A_h,w_h)=(D_t\mathbf{B}_h,\overline{u}_h). \tag*{(53)}

We also use the pointwise identity (a×ϕ)⋅b=−ϕ(a×b)(\mathbf{a}\times\phi)\cdot\mathbf{b}=-\phi(\mathbf{a}\times\mathbf{b}) for a,b∈R2\mathbf{a},\mathbf{b}\in\mathbb{R}^2, ϕ∈R\phi\in\mathbb{R}, which implies (a×ϕ)⋅a=0(\mathbf{a}\times\phi)\cdot\mathbf{a}=0 and

−(jh×Bh,u‾h)=(u‾h×Bh,jh),−(u‾h×wh,Bh)=(u‾h×Bh,wh).(54)-(j_h\times\mathbf{B}_h,\overline{u}_h)=(\overline{u}_h\times\mathbf{B}_h,j_h),\qquad-(\overline{u}_h\times w_h,\mathbf{B}_h)=(\overline{u}_h\times\mathbf{B}_h,w_h). \tag*{(54)}

The divergence-free properties of uhu_h and Bh\mathbf{B}_h are due to the properties of the de Rham complex. Since (20a) holds for all ψ∈Fh\psi\in F_h and all terms lie in FhF_h, u‾h=uh−α2curl⁡w‾h\overline{u}_h=u_h-\alpha^2\operatorname{curl}\overline{w}_h is a sum of two divergence-free fields.

For the energy law, we test the momentum equation with u‾h\overline{u}_h and the potential equation with eh=Sjhe_h=Sj_h. The nonlinear term drops since (u‾h×wh)⋅u‾h=0(\overline{u}_h\times w_h)\cdot\overline{u}_h=0, and since div⁡u‾h=0\operatorname{div}\overline{u}_h=0 the pressure term vanishes, so that

(Dtuh,u‾h)+ν(curl⁡wh,u‾h)−S(jh×Bh,u‾h)=(f,u‾h),(55)(D_tu_h,\overline{u}_h)+\nu(\operatorname{curl}w_h,\overline{u}_h)-S(j_h\times\mathbf{B}_h,\overline{u}_h)=(f,\overline{u}_h), \tag*{(55)}
S(DtBh,Bh)+Sη∥jh∥2−S(u‾h×Bh,jh)=0.(56)S(D_t\mathbf{B}_h,\mathbf{B}_h)+S\eta\lVert j_h\rVert^2-S(\overline{u}_h\times\mathbf{B}_h,j_h)=0. \tag*{(56)}

Adding the two equations, the coupling terms cancel by the pointwise identity, and it remains to identify the other terms. Since Fα\mathcal{F}_{\alpha} is symmetric by Proposition 3.1,

(Dtuh,u‾h)=∥uhn+1∥E,α2−∥uhn∥E,α22Δt,(57)(D_tu_h,\overline{u}_h)=\frac{\lVert u_h^{n+1}\rVert_{E,\alpha}^2-\lVert u_h^n\rVert_{E,\alpha}^2}{2\Delta t}, \tag*{(57)}

and by (17) and (24),

ν(curl⁡wh,u‾h)=ν(wh,rot⁡hFαuh)=ν(wh,Gαwh)=ν∥wh∥D,α2.(58)\nu(\operatorname{curl}w_h,\overline{u}_h)=\nu(w_h,\operatorname{rot}_h\mathcal{F}_{\alpha}u_h)=\nu(w_h,\mathcal{G}_{\alpha}w_h)=\nu\lVert w_h\rVert_{D,\alpha}^2. \tag*{(58)}

Multiplying by Δt\Delta t gives (35).

To obtain the stability bound, we estimate the forcing term. Let c\mathbf{c} be the mean of u‾h∈Zh\overline{u}_h\in Z_h, so that u‾h−c∈curl⁡Vh\overline{u}_h-\mathbf{c}\in\operatorname{curl}V_h. Since ff has zero mean and rot⁡hc=0\operatorname{rot}_h\mathbf{c}=0, Young’s inequality, (18) and rot⁡hu‾h=Gαwh\operatorname{rot}_h\overline{u}_h=\mathcal{G}_{\alpha}w_h give

∣(f,u‾h)∣=∣(f,u‾h−c)∣≤12cp2ν−1∥f∥2+12νcp−2∥u‾h−c∥2≤12cp2ν−1∥f∥2+12ν∥wh∥D,α2.(59)|(f,\overline{u}_h)|=|(f,\overline{u}_h-\mathbf{c})|\leq\frac{1}{2}c_p^2\nu^{-1}\lVert f\rVert^2+\frac{1}{2}\nu c_p^{-2}\lVert\overline{u}_h-\mathbf{c}\rVert^2\leq\frac{1}{2}c_p^2\nu^{-1}\lVert f\rVert^2+\frac{1}{2}\nu\lVert w_h\rVert_{D,\alpha}^2. \tag*{(59)}

Inserting this into (49) and summing over nn gives (50).

Next, for the cross helicity, we test the momentum equation with Bh\boldsymbol{B}_h and the potential equation with eh=whe_h = w_h. Since div⁡Bh=0\operatorname{div}\boldsymbol{B}_h = 0 the pressure term vanishes, (jˉh×Bh,Bh)=0(\bar{j}_h \times\boldsymbol{B}_h,\boldsymbol{B}_h) = 0, ν(curl⁡wh,Bh)=ν(wh,jˉh)\nu(\operatorname{curl}w_h,\boldsymbol{B}_h) = \nu(w_h,\bar{j}_h) and (DtAh,wh)=(DtBh,uh)(D_t\boldsymbol{A}_h,w_h) = (D_t\boldsymbol{B}_h,\boldsymbol{u}_h), so that

(Dtuh,Bh)−(uˉh×wh,Bh)+ν(wh,jˉh)=0,(60)(D_t\boldsymbol{u}_h,\boldsymbol{B}_h) - (\bar{\boldsymbol{u}}_h \times\boldsymbol{w}_h,\boldsymbol{B}_h) + \nu(\boldsymbol{w}_h,\bar{\boldsymbol{j}}_h) = 0, \tag*{(60)}
(DtBh,uh)+η(jˉh,wh)−(uˉh×Bh,wh)=0.(61)(D_t\boldsymbol{B}_h,\boldsymbol{u}_h) + \eta(\bar{\boldsymbol{j}}_h,\boldsymbol{w}_h) - (\bar{\boldsymbol{u}}_h \times\boldsymbol{B}_h,\boldsymbol{w}_h) = 0. \tag*{(61)}

Adding the two equations, the nonlinear terms cancel by the pointwise identity, and since (Dtuh,Bhn+1/2)+(DtBh,uhn+1/2)=Δt−1(Hc,hn+1−Hc,hn)(D_t\boldsymbol{u}_h,\boldsymbol{B}_h^{n+1/2}) + (D_t\boldsymbol{B}_h,\boldsymbol{u}_h^{n+1/2}) = \Delta t^{-1}(\mathcal{H}_{c,h}^{n+1} - \mathcal{H}_{c,h}^{n}), we obtain (51).

Finally, for the mean-square potential, we test the potential equation with eh=Ahn+1/2e_h = \boldsymbol{A}_h^{n+1/2}. Since div⁡uˉh=0\operatorname{div}\bar{\boldsymbol{u}}_h = 0 and Ω\Omega is periodic,

−(uˉh×Bh,Ah)=(uˉh⋅∇Ah,Ah)=∫Ω∇⋅(uˉhAh22) dx=0,(62)-(\bar{\boldsymbol{u}}_h \times\boldsymbol{B}_h,\boldsymbol{A}_h) = (\bar{\boldsymbol{u}}_h \cdot\nabla A_h,\boldsymbol{A}_h) = \int_{\Omega} \nabla\cdot\left(\bar{\boldsymbol{u}}_h \frac{A_h^2}{2}\right)\,\mathrm{d}x = 0, \tag*{(62)}

so the equation reduces to 12Δt(∥Ahn+1∥2−∥Ahn∥2)+η(jˉh,Ah)=0\frac{1}{2\Delta t}(\|\boldsymbol{A}_h^{n+1}\|^2 - \|\boldsymbol{A}_h^n\|^2) + \eta(\bar{j}_h,A_h) = 0. Since (jˉh,Ah)=(Bh,curl⁡Ah)=∥∇Ah∥2(\bar{j}_h,A_h) = (\boldsymbol{B}_h,\operatorname{curl}A_h) = \|\nabla A_h\|^2 by (24), this is (52).

Remark 3.1 (L2L^2 stability). Under the assumptions of Theorem 3.3(b) and Theorem 3.2, (50) and (35) give cE2∥uhN∥2+S∥BhN∥2≤∥uh0∥2+S∥Bh0∥2+Δt cP2ν−1∑n=0N−1∥fn+1/2∥2c_E^2\|\boldsymbol{u}_h^N\|^2 + S\|\boldsymbol{B}_h^N\|^2 \le\|\boldsymbol{u}_h^0\|^2 + S\|\boldsymbol{B}_h^0\|^2 + \Delta t\,c_P^2\nu^{-1}\sum_{n=0}^{N-1}\|\boldsymbol{f}^{n+1/2}\|^2, with cEc_E independent of hh, α\alpha and Δt\Delta t.

Nonlinear solver and block preconditioning

Turbulence simulations typically require fine meshes and long time computation. Therefore, we develop block preconditioners for the fully discrete scheme of Algorithm 1. At each time step the nonlinear problem of Algorithm 1 is solved by Newton’s method. We group the pressure separately from the other fields and apply an augmented Lagrangian/grad-div stabilization term [8, 41], so that the Jacobian system has the form

Jγ=[KγDTD0],Kγ=K+γDTMp−1D,(63)J_\gamma= \begin{bmatrix} \mathcal{K}_\gamma& \mathcal{D}^{\mathsf{T}} \\ \mathcal{D} & 0 \end{bmatrix}, \qquad \mathcal{K}_\gamma= \mathcal{K} + \gamma\mathcal{D}^{\mathsf{T}}M_p^{-1}\mathcal{D}, \tag*{(63)}

where K\mathcal{K} couples the six remaining fields, D\mathcal{D} is the discrete divergence and Mp\mathcal{M}_p is the pressure mass matrix. We take γ=102\gamma= 10^2 in all experiments. We apply FGMRES with the upper triangular preconditioner

PU=[K~γDT0S~γ],S~γ=−γ−1Mp,(64)P_U = \begin{bmatrix} \widetilde{\mathcal K}_\gamma& D^{\mathsf T} \\ 0 & \widetilde{S}_\gamma \end{bmatrix}, \qquad \widetilde{S}_\gamma= -\gamma^{-1}\mathcal{M}_p, \tag*{(64)}

where S~γ\widetilde{S}_\gamma approximates the Schur complement −DKγ−1DT-D\mathcal{K}_\gamma^{-1}D^{\mathsf T} and is inverted by one Jacobi step. Since the experiments using this preconditioner use piecewise-constant pressure, Mp\mathcal{M}_p is diagonal and this step is exact. For the inversion of the block K~γ\widetilde{\mathcal K}_\gamma, we apply the monolithic multigrid in [32]. The block K~γ\widetilde{\mathcal K}_\gamma is solved inexactly with a fixed amount of work: we perform exactly two FGMRES iterations, preconditioned by one multigrid F-cycle, which starts with an exact solve on the coarsest mesh and performs one V-cycle on each finer level [32].

On the coarsest level we use a sparse LU factorization with MUMPS [1]. On the finer levels the smoother is six GMRES iterations preconditioned by additive Schwarz over vertex-star patches, with the patch problems solved exactly by LU [19]. We stop the nonlinear solver at a relative residual of 10−810^{-8}, and the outer FGMRES iteration at a relative residual of 10−710^{-7} or an absolute residual of 10−1010^{-10}, measured in the Euclidean norm. The filter width α=chfine\alpha= c h_{\mathrm{fine}} is fixed on the finest mesh and transferred to the coarse levels. The performance of the solver is assessed in the numerical experiments below. The overall structure of the solver is summarized in Figure 1.

Graphical outline of the nonlinear solver and the block preconditioner

Figure 1. Graphical outline of the nonlinear solver and the block preconditioner for one time step of Algorithm 1.

Numerical experiments

In this section, we present numerical results for the structure-preserving scheme of § 3. We first verify the scheme by a convergence test with manufactured solutions (§ 5.1) and a conservation test on the Orszag–Tang vortex (§ 5.2). The scheme is then used to study selective decay, energy spectra and island coalescence in § 6 to § 8. The convergence and conservation tests, the Orszag–Tang run toward the Arnold-type bound (§ 6.1) and the random-data experiment (§ 6.3) solve the linear system in each Newton step by a sparse direct LU factorization (MUMPS [1]). All other experiments use the solver of § 4, and its robustness with respect to the physical and discretization parameters is reported in Table 4 and Table 5.

NNDOFsΔt=0.01\Delta t = 0.01, α=2h\alpha= 2hΔt=0.01\Delta t = 0.01, α=4h\alpha= 4hΔt=0.05\Delta t = 0.05, α=2h\alpha= 2hΔt=0.05\Delta t = 0.05, α=4h\alpha= 4h
3212,288(2.00) 4.76(2.00) 4.94(2.60) 3.39(2.02) 3.49
6449,152(2.00) 4.35(2.00) 4.41(2.88) 3.16(2.62) 3.07
128196,608(2.15) 3.77(2.00) 3.79(3.15) 3.60(2.88) 3.28
256786,432(2.46) 3.56(2.23) 3.54(3.30) 4.97(3.17) 4.35
5123,145,728(2.53) 3.67(2.47) 3.59(3.40) 7.71(3.33) 6.37

Table 4. Solver performance: average number of Newton steps (in parentheses) and average number of outer FGMRES iterations per Newton step, both averaged over all time steps up to T=2T = 2 (200 steps for Δt=0.01\Delta t = 0.01, 40 steps for Δt=0.05\Delta t = 0.05) on N×NN \times N meshes.

Re\mathrm{Re}Rem\mathrm{Re}_{m}t∈[0,2.5]t \in[0, 2.5]t∈[2,2.5]t \in[2, 2.5]∥jh∥L∞\lVert j_h \rVert_{L^\infty}
10210^{2}10210^{2}(2.00) 1.50(2.00) 1.503.4
10210^{2}10810^{8}(2.00) 1.46(2.00) 1.5080.4
10410^{4}10410^{4}(2.00) 1.50(2.00) 1.5032.4
10610^{6}10610^{6}(2.00) 1.59(2.00) 1.92115.1
10810^{8}10210^{2}(2.00) 1.50(2.00) 1.503.5
10810^{8}10810^{8}(2.00) 1.61(2.00) 2.00129.1

Table 5. Robustness with respect to the Reynolds numbers for island coalescence up to T=2.5T = 2.5: average number of Newton steps (in parentheses) and average number of outer FGMRES iterations per Newton step, over all 500 time steps and over t∈[2,2.5]t \in[2, 2.5], and the peak current ∥jh∥L∞\lVert j_h \rVert_{L^\infty} at T=2.5T = 2.5.

Convergence

Spatial convergence. For the convergence tests only, we augment the momentum and magnetic-potential equations in (33) by manufactured right-hand sides (fex,vh)(\boldsymbol{f}_{\mathrm{ex}}, v_h) and (gA,ex,eh)(g_{A,\mathrm{ex}}, e_h), respectively, obtained by substituting the exact fields into the continuous equations. We test the spatial accuracy on the periodic square Ω=(0,2π)2\Omega= (0, 2\pi)^2 with T=1T = 1, Δt=0.1\Delta t = 0.1 and physical parameters α=0.1\alpha= 0.1, ν=η=S=1\nu= \eta= S = 1. We choose a stationary manufactured solution to focus only on the spatial discretization error. The manufactured solution is

uex(x,y)=A0(−sin⁡xcos⁡y, cos⁡xsin⁡y)T(65)\boldsymbol{u}_{\mathrm{ex}}(x,y) = A_0(-\sin x\cos y,\ \cos x\sin y)^{T} \tag*{(65)}
Aex(x,y)=A0sin⁡xsin⁡y,(66)A_{\mathrm{ex}}(x,y) = A_0\sin x\sin y, \tag*{(66)}
Pex(x,y)=A0sin⁡xsin⁡y,(67)P_{\mathrm{ex}}(x,y) = A_0\sin x\sin y, \tag*{(67)}

with A0=0.1A_0 = 0.1, u‾=uex/(1+2α2)\overline{\boldsymbol{u}} = \boldsymbol{u}_{\mathrm{ex}}/(1 + 2\alpha^2) and B=curl⁡A\boldsymbol{B} = \operatorname{curl} A following analytically. Errors are measured in the L2L^2 norm for u\boldsymbol{u}, PP, B\boldsymbol{B} and in the H1H^1 norm for AA. Tables 1 and 2 report optimal O(hk)O(h^k) rates for k=1,2k = 1, 2.

NN∥eu∥L2\lVert e_u\rVert_{L^2}Rate∥eP∥L2\lVert e_P\rVert_{L^2}Rate∥eB∥L2\lVert e_B\rVert_{L^2}Rate∥eA∥H1\lVert e_A\rVert_{H^1}Rate
324.367×10−24.367 \times10^{-2}–2.054×10−22.054 \times10^{-2}–4.349×10−24.349 \times10^{-2}–4.364×10−24.364 \times10^{-2}–
642.182×10−22.182 \times10^{-2}1.001.028×10−21.028 \times10^{-2}1.002.179×10−22.179 \times10^{-2}1.002.181×10−22.181 \times10^{-2}1.00
1281.091×10−21.091 \times10^{-2}1.005.140×10−35.140 \times10^{-3}1.001.090×10−21.090 \times10^{-2}1.001.090×10−21.090 \times10^{-2}1.00

Table 1. 2D spatial convergence rate for k=1k = 1 on N×NN \times N meshes.

NN∥eu∥L2\lVert e_u\rVert_{L^2}Rate∥eP∥L2\lVert e_P\rVert_{L^2}Rate∥eB∥L2\lVert e_B\rVert_{L^2}Rate∥eA∥H1\lVert e_A\rVert_{H^1}Rate
82.579×10−22.579 \times10^{-2}–1.300×10−21.300 \times10^{-2}–2.575×10−22.575 \times10^{-2}–2.588×10−22.588 \times10^{-2}–
166.684×10−36.684 \times10^{-3}1.953.167×10−33.167 \times10^{-3}2.046.679×10−36.679 \times10^{-3}1.956.688×10−36.688 \times10^{-3}1.95
321.686×10−31.686 \times10^{-3}1.997.845×10−47.845 \times10^{-4}2.011.685×10−31.685 \times10^{-3}1.991.686×10−31.686 \times10^{-3}1.99

Table 2. 2D spatial convergence rate for k=2k = 2 on N×NN \times N meshes.

Temporal convergence. We test the temporal accuracy on the periodic square Ω=(0,2π)2\Omega= (0, 2\pi)^2 with a fixed 96×9696 \times96 mesh, T=1T = 1, α=0.1\alpha= 0.1 and ν=η=S=1\nu= \eta= S = 1. We use polynomial degree k=3k = 3 in space, so that the spatial error is negligible, and vary the time step. The manufactured solution is

uex=curl⁡(sin⁡xsin⁡y)cos⁡2t,(68)\boldsymbol{u}_{\mathrm{ex}} = \operatorname{curl}(\sin x\sin y)\cos2t, \tag*{(68)}
Aex=(sin⁡xsin⁡y+12cos⁡x)e−t,(69)A_{\mathrm{ex}} = \left(\sin x\sin y + \frac{1}{2}\cos x\right)e^{-t}, \tag*{(69)}
Pex=cos⁡xcos⁡ycos⁡t,(70)P_{\mathrm{ex}} = \cos x\cos y\cos t, \tag*{(70)}

with u‾ex=uex/(1+2α2)\overline{u}_{\mathrm{ex}}=u_{\mathrm{ex}}/(1+2\alpha^2) and B=curl⁡A\mathbf{B}=\operatorname{curl}\mathbf{A}. The corresponding momentum and magnetic-potential source terms are evaluated at tn+1/2t^{n+1/2}. The errors of uh\mathbf{u}_h, curl⁡Ah\operatorname{curl}\mathbf{A}_h and Ah\mathbf{A}_h are measured at t=Tt=T, and the error of the pressure, which is a midpoint quantity, at t=T−Δt/2t=T-\Delta t/2. Table 3 shows the expected O(Δt2)\mathcal{O}(\Delta t^2) rates of the implicit midpoint rule.

Δt\Delta t∥eu∥H(div)\lVert e_u\rVert_{H(\mathrm{div})}Rate∥eP∥L2\lVert e_P\rVert_{L^2}Rate∥eB∥H(div)\lVert e_B\rVert_{H(\mathrm{div})}Rate∥eA∥H1\lVert e_A\rVert_{H^1}Rate
1/41/47.806×10−37.806\times10^{-3}–4.986×10−34.986\times10^{-3}–1.445×10−21.445\times10^{-2}–1.788×10−21.788\times10^{-2}–
1/81/82.222×10−32.222\times10^{-3}1.811.812.458×10−32.458\times10^{-3}1.021.023.575×10−33.575\times10^{-3}2.012.014.424×10−34.424\times10^{-3}2.012.01
1/161/165.721×10−45.721\times10^{-4}1.961.967.829×10−47.829\times10^{-4}1.651.658.917×10−48.917\times10^{-4}2.002.001.103×10−31.103\times10^{-3}2.002.00
1/321/321.444×10−41.444\times10^{-4}1.991.992.174×10−42.174\times10^{-4}1.851.852.231×10−42.231\times10^{-4}2.002.002.759×10−42.759\times10^{-4}2.002.00
1/641/643.710×10−53.710\times10^{-5}1.961.965.725×10−55.725\times10^{-5}1.931.935.671×10−55.671\times10^{-5}1.981.986.973×10−56.973\times10^{-5}1.981.98

Table 3. 2D temporal convergence test on the periodic square.

Conservation test

We now test the conservation properties of the scheme. The setting is the standard Orszag–Tang vortex on the periodic square Ω=(0,2π)2\Omega=(0,2\pi)^2, in the ideal regime ν=η=0\nu=\eta=0, so that the three quadratic invariants should be conserved exactly. The initial magnetic and velocity fields are prescribed in terms of scalar stream functions to ensure divergence-free conditions, as in [11]. The initial magnetic and velocity fields are defined by

B0=(−∂yψ,∂xψ),(71)\mathbf{B}_0=(-\partial_y\psi,\partial_x\psi), \tag*{(71)}
u0=(−∂yφ,∂xφ),(72)\mathbf{u}_0=(-\partial_y\varphi,\partial_x\varphi), \tag*{(72)}

which satisfy ∇⋅B0=0\nabla\cdot\mathbf{B}_0=0 and ∇⋅u0=0\nabla\cdot\mathbf{u}_0=0. The scalar potentials φ(x,y)\varphi(x,y) and ψ(x,y)\psi(x,y) are chosen as

φ(x,y)=cos⁡(x+1.4)+cos⁡(y+0.5),(73)\varphi(x,y)=\cos(x+1.4)+\cos(y+0.5), \tag*{(73)}
ψ(x,y)=cos⁡(2x+2.3)+cos⁡(y+4.1).(74)\psi(x,y)=\cos(2x+2.3)+\cos(y+4.1). \tag*{(74)}

We choose Δt=0.01\Delta t=0.01, T=10T=10 with ν=η=0\nu=\eta=0, S=1S=1, α=h\alpha=h, where hh is the mesh size. The mesh is 64×6464\times64 with the lowest-order element in space. The relative errors of the total energy, cross helicity and mean square potential are shown in Figure 2. All quantities are preserved.

Figure 2. Ideal Orszag–Tang test on the 64×6464 \times64 mesh with α=h\alpha= h and Δt=0.01\Delta t = 0.01. (a) Relative errors (Qh(t)−Qh(0))/Qh(0)(Q_h(t)-Q_h(0))/Q_h(0) of the energy, cross helicity and mean square potential. (b) L2L^2 norms of div⁡uˉh\operatorname{div}\bar{u}_h, div⁡uh\operatorname{div}u_h and div⁡Bh\operatorname{div}B_h.

Selective decay

In two-dimensional MHD, energy and cross helicity cascade forward to small scales, where they are dissipated by ν\nu and η\eta, while the mean square potential cascades inversely to large scales [11, 43]. We now investigate how the scheme reproduces the resulting selective decay of the three invariants.

Orszag–Tang: timescale separation and the Arnold-type bound

We now focus on the non-ideal case and investigate the different dissipation rates of the ideal invariants. We repeat the Orszag–Tang test with ν=η=10−3\nu= \eta= 10^{-3} and S=1S = 1 on the 128×128128 \times128 mesh with α=2h\alpha= 2h. Figure 3 reports the time evolution of the three invariants. For these initial data and parameters, the structure-preserving scheme reproduces the separation of timescales reported in [9]: Eα\mathcal{E}^{\alpha} and the magnitude of Hc\mathcal{H}_c decay rapidly while A\mathcal{A} changes more slowly.

Selective decay of the three invariants

Figure 3. Selective decay of the three invariants, each normalized by its initial value.

The relaxed state is characterized by a discrete Poincaré-type bound. In the periodic setting, taking eh=1e_h = 1 in (46) shows that ∫ΩAh dx\int_{\Omega} A_h\,\mathrm{d}x is conserved, so AhA_h keeps the zero mean of the initial data. Since Bh=curl⁡AhB_h = \operatorname{curl} A_h with Ah∈Vh⊂H1(Ω)A_h \in V_h \subset H^1(\Omega), the Poincaré inequality ∥∇Ah∥2≥λ1∥Ah∥2\lVert\nabla A_h \rVert^2 \ge\lambda_1 \lVert A_h \rVert^2, with λ1=1\lambda_1 = 1 the smallest nonzero eigenvalue of −Δ-\Delta on Ω\Omega, gives

Ah≤2EM,hSλ1≤2EhαSλ1,EM,h:=S2∥Bh∥2.(75)\mathcal{A}_h \le\frac{2\mathcal{E}_{M,h}}{S\lambda_1} \le\frac{2\mathcal{E}_h^\alpha}{S\lambda_1}, \qquad\mathcal{E}_{M,h} := \frac{S}{2}\lVert B_h\rVert^2. \tag*{(75)}

This is an analog of the three-dimensional Arnold inequality ∥B∥2≥C∣Hm∣\lVert\mathbf{B}\rVert^2 \ge C\lvert\mathcal{H}_m\rvert, Hm=∫ΩA⋅B dx\mathcal{H}_m = \int_{\Omega} \mathbf{A}\cdot\mathbf{B}\,\mathrm{d}x, which bounds the magnetic energy from below by the magnetic helicity [5]; in two dimensions Hm\mathcal{H}_m vanishes and A\mathcal{A} takes its role. For the numerical behavior of the three-dimensional bound we refer to [27, 18]. The bound is approached only when AhA_h is concentrated in the lowest Fourier modes and the kinetic energy is small. For the original two-dimensional MHD equations on the torus, it was proposed in [38] and then shown in [48], under a condition on the ratio of viscosity to resistivity, that the kinetic energy decays faster than A\mathcal{A} and that the ratio of the energy to A\mathcal{A} converges to an eigenvalue λ\lambda of the Laplacian, the magnetic field approaching a force-free state on which A\mathcal{A} decays like e−2ηλte^{-2\eta\lambda t}. The Arnold-type bound corresponds to the lowest eigenvalue λ1\lambda_1, where A\mathcal{A} decays like e−2ηλ1te^{-2\eta\lambda_1t}. Figure 4 shows a run up to T=130T=130. In this experiment the energy decays much faster than Ah\mathcal{A}_h, and we observe that the evolution approaches the bound and then relaxes along it, which is consistent with the selective decay described in [48].

Orszag–Tang run up to $T=130$, colored by time

Figure 4. Orszag–Tang run up to T=130T=130, colored by time. (a) Evolution of (Ehα(t),Ah(t))(\mathcal{E}_h^\alpha(t),\mathcal{A}_h(t)). (b) Ratio Ehα(t)/Ah(t)\mathcal{E}_h^\alpha(t)/\mathcal{A}_h(t). The dashed lines are the Arnold bound Ah≤2Ehα/(Sλ1)\mathcal{A}_h \le2\mathcal{E}_h^\alpha/(S\lambda_1), i.e. Ehα/Ah≥Sλ1/2\mathcal{E}_h^\alpha/\mathcal{A}_h \ge S\lambda_1/2, with S=λ1=1S=\lambda_1=1.

Large-scale simulation and solver robustness test

We then run a large-scale simulation until T=2.5T=2.5. For the multigrid hierarchy we use a coarse mesh of 16×1616 \times16 cells and 6 levels of refinement, resulting in a 1024×10241024 \times1024 mesh with 2 097 152 cells and 12 582 912 degrees of freedom, and we take Δt=0.01\Delta t=0.01. Figure 5 shows the evolution of the magnetic field at t=0,0.5,…,2.5t=0, 0.5,\ldots,2.5. Starting from smooth, large-scale fields, the magnetic eddies steepen into thin current sheets, which reconnect and destabilize, driving a cascade to small-scale MHD turbulence.

Orszag–Tang test snapshots

Figure 5. Orszag–Tang test on the 1024×10241024 \times1024 mesh with α=2h\alpha= 2h and Δt=0.01\Delta t = 0.01, colored by the magnetic field strength ∣Bh∣|\mathbf{B}_h|; the color range is rescaled in each frame.

We further test the robustness of the solver of § 4 on the Orszag–Tang problem with ν=η=10−3\nu=\eta=10^{-3}, for α∈{2h,4h}\alpha\in\{2h,4h\} and Δt∈{0.01,0.05}\Delta t\in\{0.01,0.05\}, on meshes obtained by refining a coarse mesh of 16×1616 \times16 cells. We run until T=2T=2, which covers the formation of the thinnest current sheets, and Table 4 reports the average number of Newton iterations and the average number of outer FGMRES iterations per Newton iteration over all time steps. For the small time step Δt=0.01\Delta t=0.01, the outer iteration counts do not grow under mesh refinement and are nearly independent of the filter width, while the average number of Newton steps increases mildly, from 2 to about 2.5. For the larger time step Δt=0.05\Delta t=0.05, the iteration counts grow under mesh refinement for N≥256N \ge256, but they are smaller for α=4h\alpha=4h than for α=2h\alpha=2h. This is consistent with the physics: as the current sheets thin, increasingly small-scale structures develop on finer meshes, and with a large time step each Newton solve must resolve a larger change of the solution. A larger α\alpha smooths these structures and therefore mitigates the growth.

Inverse cascade for random initial data

The inverse cascade of A\mathcal{A} [22, 43, 10] is the mechanism commonly invoked for the relaxation to the bound (61) [38, 9]: we now test whether the scheme captures it starting from band-limited random data.

Initial data and parameters. We consider the long-time relaxation of a random configuration on the periodic square Ω=(0,2π)2\Omega=(0,2\pi)^2 with no external

forcing. We define the following wavenumber set

K:={k=(kx,ky)∈Z2:kx≥1 or (kx=0,ky≥1), ∣k∣−kp≤2},(76)\mathcal{K} := \left\{ \mathbf{k} = (k_x,k_y) \in\mathbb{Z}^2 : k_x \ge1 \text{ or } (k_x = 0, k_y \ge1),\ \left\lvert\mathbf{k}\right\rvert- k_p \le2 \right\}, \tag*{(76)}

with peak wavenumber kp=20k_p = 20. The velocity stream function φ\varphi and the magnetic flux function ψ\psi are sampled as

φ(x):=∑k∈Ka∣k∣cos⁡(k⋅x+θkφ),ψ(x):=∑k∈Ka∣k∣cos⁡(k⋅x+θkψ),(77)\varphi(\mathbf{x}) := \sum_{\mathbf{k}\in\mathcal{K}} \frac{a}{\left\lvert\mathbf{k}\right\rvert} \cos\left(\mathbf{k}\cdot\mathbf{x}+\theta_{\mathbf{k}}^\varphi\right), \qquad\psi(\mathbf{x}) := \sum_{\mathbf{k}\in\mathcal{K}} \frac{a}{\left\lvert\mathbf{k}\right\rvert} \cos\left(\mathbf{k}\cdot\mathbf{x}+\theta_{\mathbf{k}}^\psi\right), \tag*{(77)}

with amplitude a=0.5a = 0.5 and i.i.d. random phases θkφ,θkψ∼U(0,2π)\theta_{\mathbf{k}}^\varphi, \theta_{\mathbf{k}}^\psi\sim U(0,2\pi), drawn once with NumPy’s default_rng(42) so the realization is reproducible: the modes are visited with kxk_x and then kyk_y in increasing order, and for each mode θkψ\theta_{\mathbf{k}}^\psi is drawn before θkφ\theta_{\mathbf{k}}^\varphi.

The functions φ\varphi and ψ\psi are interpolated into VhV_h, and the initial conditions are

uh0=∇⊥φh,Ah0=−ψh,Bh0=curl⁡Ah0=∇⊥ψh,(78)\mathbf{u}_h^0 = \nabla^\perp\varphi_h, \qquad\mathbf{A}_h^0 = -\psi_h, \qquad\mathbf{B}_h^0 = \operatorname{curl}\mathbf{A}_h^0 = \nabla^\perp\psi_h, \tag*{(78)}

so that uh0,Bh0∈Fh\mathbf{u}_h^0,\mathbf{B}_h^0 \in\mathbf{F}_h are exactly divergence-free; the filtered velocity u‾h0\overline{\mathbf{u}}_h^0 is obtained from uh0\mathbf{u}_h^0 by the discrete filter.

We take α=2h\alpha= 2h, a time step Δt=0.05\Delta t = 0.05, and integrate to T=75T = 75 on a 128×128128 \times128 mesh with lowest-order k=1k = 1 elements in space, ν=η=10−3\nu= \eta= 10^{-3} and S=1S = 1; the nonlinear systems are solved by Newton’s method with a sparse direct LU factorization (MUMPS).

Figure 6 shows the inverse cascade of the mean square potential: the peak of its spectrum moves from the initial band k≈20k \approx20 to the box mode k=1k = 1. Figure 7 shows the corresponding formation of large-scale magnetic structures from the initial small-scale field.

Mean square potential spectrum at three times

Figure 6. Mean square potential spectrum A(k)/Amax⁡A(k)/A_{\max} at t=0,1,75t = 0, 1, 75, normalized at each time by its maximum (see Appendix § 11). The band-limited initial state at k≈20k \approx20 develops a broad spectrum whose peak migrates to k≈6k \approx6 at t=1t = 1 and ultimately condenses at the box mode k=1k = 1 at t=75t = 75, demonstrating the inverse cascade of A\mathcal{A}.

Evolution of the magnetic potential

Figure 7. Evolution of the magnetic potential AhA_h.

Comparison with non-structure-preserving schemes. To see what the discrete laws of Theorem 3.3 contribute to this result, we repeat the computation with the same spatial discretization and time step, replacing the implicit midpoint rule by the BDF2 formula (with a midpoint first step) and by the backward Euler method, neither of which satisfies the three discrete laws. Figure 8 shows the mean square potential for ν=η=10−3\nu= \eta= 10^{-3} and ν=η=10−4\nu= \eta= 10^{-4}. Both alternative schemes lose substantially more AhA_h than ours, backward Euler most of all, and the gap does not shrink when the dissipation is reduced tenfold. This additional loss is therefore numerical. It occurs mostly for t≲1t \lesssim1, while the small scales are active, and it changes the state toward which the solution relaxes.

Figure 8. Mean square potential, relative to its initial value, for the random initial data on the 128×128128 \times128 mesh with α=2h\alpha= 2h and Δt=0.05\Delta t = 0.05: the scheme of Algorithm 1, and BDF2 and backward Euler with the same spatial discretization. Left: ν=η=10−3\nu= \eta= 10^{-3}, the computation of Figure 6 and Figure 7. Right: ν=η=10−4\nu= \eta= 10^{-4}.

Relaxed state comparison. Figure 9 compares the magnetic potential computed by our scheme and by BDF2 at t=75t = 75 for ν=η=10−3\nu= \eta= 10^{-3}. The solution of our scheme is concentrated in the first eigenspace of −Δ-\Delta, the Fourier modes with ∣k∣2=λ1=1\lvert k\rvert^2 = \lambda_1 = 1, and is therefore close to the bound (61). With BDF2 a large part of AhA_h remains in the modes with ∣k∣2=2\lvert k\rvert^2 = 2, which appear as the diagonal structures in Figure 9, and the solution is still far from the bound.

Figure 9. Magnetic potential AhA_h (mean removed) at t=75t = 75 for ν=η=10−3\nu= \eta= 10^{-3}: the scheme of Algorithm 1 (left) and BDF2 (right), with one color scale.

Energy spectra and the effect of filtering

In two-dimensional MHD, energy cascades forward to small scales, and following it down to the dissipation scale is what makes direct simulation expensive. In the α\alpha-model, the term α2∥∇u∥2\alpha^2\lVert\nabla u\rVert^2 in the energy penalizes scales below α\alpha, so the kinetic energy spectrum is expected to fall off for kα≫1k\alpha\gg1 while the large scales are left unchanged [20, 16]. To check this, we compare kinetic energy spectra of the scheme with a Fourier pseudo-spectral direct numerical simulation of the original MHD equations computed with Dedalus [14].

We use the Orszag–Tang test of § 6 with ν=η=10−4\nu= \eta= 10^{-4}, S=1S = 1, Δt=0.01\Delta t = 0.01 and α∈{0,2h,4h}\alpha\in\{0, 2h, 4h\}. For the multigrid method we use a coarse mesh of 8×88 \times8 cells and 5 levels of refinement, resulting in a 256×256256 \times256 mesh with lowest-order k=1k = 1 elements and 786 432 degrees of freedom. At this Reynolds number a pseudo-spectral simulation on a 256×256256 \times256 grid would not resolve the dissipation scale, so the reference is computed on a 1024×10241024 \times1024 grid. The shell-summed spectrum EK(k)E_K(k) is the kinetic energy of all Fourier modes with ∣k∣≈k|k| \approx k, so that (2π)2∑kEK(k)=EK(2\pi)^2 \sum_k E_K(k) = \mathcal{E}_K. For the scheme we plot the shell-summed spectrum of the kinetic part of the energy, EK,h:=12(uh,uh)\mathcal{E}_{K,h} := \frac{1}{2}(u_h,u_h), computed as described in Appendix A, and for the reference that of EK:=12∥u∥2\mathcal{E}_K := \frac{1}{2}\lVert u\rVert^2. They coincide when α=0\alpha= 0. Figure 10 shows the spectra and their ratio to the reference, and Figure 11 the corresponding vorticity fields.

Figure 10. Kinetic energy spectra of the Orszag–Tang test with ν=η=10−4\nu= \eta= 10^{-4} on the 256×256256 \times256 mesh at t=0.5t = 0.5, 1.51.5 and 22 (top), and their ratio to the spectral DNS of the original MHD equations on a 1024×10241024 \times1024 grid (bottom). At t=0.5t = 0.5 the ratio is shown for k≤40k \le40.

Vorticity of the transport velocity

Figure 11. Vorticity of the transport velocity at t=2t = 2 for ν=η=10−4\nu= \eta= 10^{-4}. Columns: pseudo-spectral solutions on 1024×10241024 \times1024 and 256×256256 \times256 grids, and the scheme on the 256×256256 \times256 mesh. Rows: α=0\alpha= 0, 2h2h and 4h4h, where hh is the mesh size of the 256×256256 \times256 mesh. The 1024×10241024 \times1024 fields are restricted to ∣k∣≤128|\mathbf{k}| \le128. Each row shares one color scale.

Spectral space. At large scales, all runs agree with the reference. At t=0.5t = 0.5 the run with α=0\alpha= 0 follows the reference over the whole range. At t=1.5t = 1.5 and 2 the forward cascade has reached the mesh scale. The scheme has no numerical dissipation, so the energy that arrives at the smallest resolved scales is not removed there. For α=0\alpha= 0 it accumulates near the grid scale, and the spectrum rises above the reference for k≳30k \gtrsim30. For α>0\alpha> 0 the spectrum falls off at high wavenumbers, with the cut-off moving to smaller kk as α\alpha increases, and with α=2h\alpha= 2h and 4h4h the accumulation is suppressed. Thus α\alpha leaves the largest scales (kα≪1k\alpha\ll1) unchanged and, as expected, also reduces the spectrum at intermediate wavenumbers kα∼1k\alpha\sim1, giving a more compact energy spectrum, in agreement with the regularization effect of the Navier–Stokes-α\alpha model in [16, 20].

Physical space. The accumulated energy appears as grid-scale oscillations along the vortex sheets for α=0\alpha= 0; with α=2h\alpha= 2h and 4h4h the oscillations are absent. Figure 11 also shows pseudo-spectral solutions of the same equations: on a 256×256256 \times256 grid the unfiltered pseudo-spectral solution is polluted in the same way, while for α∈{2h,4h}\alpha\in\{2h, 4h\} both solutions on 256×256256 \times256 cells are close to the pseudo-spectral solution of the MHD-α\alpha model on a 1024×10241024 \times1024 grid. In these experiments the MHD-α\alpha model therefore suppresses small-scale velocity activity below α\alpha, which suggests a possible reduction of the resolution requirements of a direct simulation [20, 16]. We do not quantify this saving here, since the mesh is the same for all values of α\alpha in our experiments.

This comparison also shows why structure preservation matters when assessing a turbulence model. Since our scheme preserves the ideal invariants and their dissipation laws (Theorem 3.3), it adds no numerical dissipation, so the departure of the spectra from the run with α=0\alpha= 0 can be attributed to the filter rather than to numerical dissipation.

Island coalescence

We finally consider a two-dimensional island coalescence problem to demonstrate the effectiveness of our scheme for a physically relevant problem. We adopt the experimental setting from [37], in which two magnetic islands embedded in a Harris current sheet are attracted to each other by the Lorentz force and reconnect through a thin current sheet forming between them. The computational domain is the rectangle Ω=(0,2)×(−12,12)\Omega= (0, 2) \times\left(-\frac{1}{2}, \frac{1}{2}\right) and the initial state is the Fadeev equilibrium perturbed by a coalescence seed,

A0(x,y)=δln⁡(cosh⁡yδ+εcos⁡xδ)+κcos⁡(πx)cos⁡(πy2),(79)A_0(x,y) = \delta\ln\left(\cosh\frac{y}{\delta} + \varepsilon\cos\frac{x}{\delta}\right) + \kappa\cos(\pi x)\cos\left(\frac{\pi y}{2}\right), \tag*{(79)}
B0=curl⁡A0,(80)\mathbf{B}_0 = \operatorname{curl} A_0, \tag*{(80)}
u0=0,(81)\mathbf{u}_0 = 0, \tag*{(81)}

with δ=1/(2π)\delta= 1/(2\pi), ε=0.2\varepsilon= 0.2 and κ=0.01\kappa= 0.01, so that the unperturbed equilibrium has its O-points at x=1/2x = 1/2 and x=3/2x = 3/2 and the X-point at x=1x = 1. We take S=1S = 1 and Re⁡=Re⁡m=105\operatorname{Re} = \operatorname{Re}_{m} = 10^{5}. Following [37], the walls are slip walls with the tangential magnetic field held at its initial value,

u⋅n=u‾⋅n=0,w=w‾=0,B⋅τ=B0⋅τon ∂Ω,(82)\mathbf{u} \cdot\mathbf{n} = \overline{\mathbf{u}} \cdot\mathbf{n} = 0,\qquad \mathbf{w} = \overline{\mathbf{w}} = 0,\qquad \mathbf{B} \cdot\boldsymbol{\tau} = \mathbf{B}_{0} \cdot\boldsymbol{\tau} \quad\text{on } \partial\Omega, \tag*{(82)}

where τ=(−n2,n1)\boldsymbol{\tau} = (-n_{2},n_{1}), so that the last condition is B×n=B0×n\mathbf{B} \times\mathbf{n} = \mathbf{B}_{0} \times\mathbf{n}. The spaces of § 3.1 are taken on a triangulation of Ω\Omega, and we write

Fh,0:=Fh∩H0(div⁡,Ω),Vh,0:=Vh∩H01(Ω).(83)F_{h,0} := F_{h} \cap H_{0}(\operatorname{div},\Omega),\qquad V_{h,0} := V_{h} \cap H_{0}^{1}(\Omega). \tag*{(83)}

The velocity conditions in (82) are built into the spaces of uh,u‾h∈Fh,0\mathbf{u}_{h},\overline{\mathbf{u}}_{h} \in F_{h,0} and wh,w‾h∈Vh,0\mathbf{w}_{h},\overline{\mathbf{w}}_{h} \in V_{h,0}. The magnetic variables Ah,jh∈VhA_{h},j_{h} \in V_{h} carry no essential condition, and Bhn:=curl⁡Ahn\mathbf{B}_{h}^{n} := \operatorname{curl} A_{h}^{n} as in § 3; the tangential datum B0⋅τ\mathbf{B}_{0} \cdot\boldsymbol{\tau} enters the current equation as a natural boundary term.

The full scheme reads as follows: given uh0=0\mathbf{u}_{h}^{0} = \mathbf{0} and Ah0=IhA0A_{h}^{0} = I_{h}A_{0}, set u‾h0:=Fαuh0=0\overline{\mathbf{u}}_{h}^{0} := \mathcal{F}_{\alpha}\mathbf{u}_{h}^{0} = 0. For n=0,1,…,N−1n = 0,1,\ldots,N-1, find

(uhn+1,u‾hn+1,Phn+1/2,whn+1/2,w‾hn+1,Ahn+1,jhn+1/2)∈Fh,0×Fh,0×Qh×Vh,0×Vh,0×Vh×Vh(84)(\mathbf{u}_{h}^{n+1},\overline{\mathbf{u}}_{h}^{n+1},P_{h}^{n+1/2},\mathbf{w}_{h}^{n+1/2},\overline{\mathbf{w}}_{h}^{n+1},A_{h}^{n+1},j_{h}^{n+1/2}) \in F_{h,0} \times F_{h,0} \times Q_{h} \times V_{h,0} \times V_{h,0} \times V_{h} \times V_{h} \tag*{(84)}

such that for all test functions (vh,χh,qh,zh,ζh,eh,kh)(\mathbf{v}_{h},\boldsymbol{\chi}_{h},q_{h},\mathbf{z}_{h},\boldsymbol{\zeta}_{h},e_{h},k_{h}) in the same spaces:

1Δt(uhn+1−uhn,vh)−(u‾hn+1/2×whn+1/2,vh)+ν(curl⁡whn+1/2,vh)−(Phn+1/2,div⁡vh)−S(jhn+1/2×Bhn+1/2,vh)=0(85)\frac{1}{\Delta t}(\mathbf{u}_{h}^{n+1}-\mathbf{u}_{h}^{n},\mathbf{v}_{h})-(\overline{\mathbf{u}}_{h}^{n+1/2}\times\mathbf{w}_{h}^{n+1/2},\mathbf{v}_{h})+\nu(\operatorname{curl}\mathbf{w}_{h}^{n+1/2},\mathbf{v}_{h})-(P_{h}^{n+1/2},\operatorname{div}\mathbf{v}_{h})-S(j_{h}^{n+1/2}\times\mathbf{B}_{h}^{n+1/2},\mathbf{v}_{h})=0 \tag*{(85)}
(u‾hn+1,χh)+α2(curl⁡w‾hn+1,χh)=(uhn+1,χh)(86)(\overline{\mathbf{u}}_{h}^{n+1},\boldsymbol{\chi}_{h})+\alpha^{2}(\operatorname{curl}\overline{\mathbf{w}}_{h}^{n+1},\boldsymbol{\chi}_{h})=(\mathbf{u}_{h}^{n+1},\boldsymbol{\chi}_{h}) \tag*{(86)}
(div⁡uhn+1,qh)=0(87)(\operatorname{div}\mathbf{u}_{h}^{n+1},q_{h})=0 \tag*{(87)}
(whn+1/2,zh)=(uhn+1/2,curl⁡zh)(88)(\mathbf{w}_{h}^{n+1/2},\mathbf{z}_{h})=(\mathbf{u}_{h}^{n+1/2},\operatorname{curl}\mathbf{z}_{h}) \tag*{(88)}
(w‾hn+1,ζh)=(u‾hn+1,curl⁡ζh)(89)(\overline{\mathbf{w}}_{h}^{n+1},\boldsymbol{\zeta}_{h})=(\overline{\mathbf{u}}_{h}^{n+1},\operatorname{curl}\boldsymbol{\zeta}_{h}) \tag*{(89)}
1Δt(Ahn+1−Ahn,eh)+η(jhn+1/2,eh)−(u‾hn+1/2×Bhn+1/2,eh)=0(90)\frac{1}{\Delta t}(A_{h}^{n+1}-A_{h}^{n},e_{h})+\eta(j_{h}^{n+1/2},e_{h})-(\overline{\mathbf{u}}_{h}^{n+1/2}\times\mathbf{B}_{h}^{n+1/2},e_{h})=0 \tag*{(90)}
(jhn+1/2,kh)=(Bhn+1/2,curl⁡kh)+⟨B0⋅τ,kh⟩∂Ω(91)(j_{h}^{n+1/2},k_{h})=(\mathbf{B}_{h}^{n+1/2},\operatorname{curl}k_{h})+\langle\mathbf{B}_{0}\cdot\boldsymbol{\tau},k_{h}\rangle_{\partial\Omega} \tag*{(91)}

Compared with Algorithm 1, only the spaces and the boundary term in the current equation change. The scheme still preserves div⁡uh=div⁡u‾h=div⁡Bh=0\operatorname{div}\mathbf{u}_{h}=\operatorname{div}\overline{\mathbf{u}}_{h}=\operatorname{div}\mathbf{B}_{h}=0 pointwise. The boundary conditions allow nonzero normal magnetic flux, and the boundary terms in the cross-helicity balance need not vanish, so the cross helicity is not an invariant of this configuration and we do not report it here.

For the multigrid hierarchy we use a coarse mesh of 32×1632 \times16 cells and 5 levels of refinement, resulting in a 1024×5121024 \times512 mesh with 6,300,676 degrees of freedom. We fix the time step Δt=0.005\Delta t = 0.005 and integrate until T=2.5T = 2.5. The filter width is α=2h\alpha= 2h. We use the solver tolerances of § 4; since the initial residual of each time step is small here, we additionally stop the nonlinear solver at an absolute residual of 10−810^{-8}, the level reached by round-off in this computation. Figure 12 and Figure 13 report snapshots at t={0,1.5,2,2.5}t = \{0, 1.5, 2, 2.5\}.

Current density at $t=0$

(a) (a) t=0t=0

Current density at $t=1.5$

(b) (b) t=1.5t=1.5

Current density at $t=2$

(c) (c) t=2t=2

Current density at $t=2.5$

(d) (d) t=2.5t=2.5

Figure 12. Island coalescence: current density jhj_h at t=0t=0, 1.51.5, 22 and 2.52.5.

Magnetic potential contours at $t=0$

(a) (a) t=0t=0

Magnetic potential contours at $t=1.5$

(b) (b) t=1.5t=1.5

Magnetic potential contours at $t=2$

(c) (c) t=2t=2

Magnetic potential contours at $t=2.5$

(d) (d) t=2.5t=2.5

Figure 13. Island coalescence: magnetic potential AhA_h (contours) at t=0t=0, 1.51.5, 22 and 2.52.5.

At t=0t = 0 the two islands are separated by an X-point at x=1x = 1. The Lorentz force pulls them together, and by t=1.5t = 1.5 they have moved toward the center and a current sheet forms at the X-point. At t=2.5t = 2.5 the islands are pressed against each other and reconnect through a thin X-shaped current layer, while flux is also driven out along the side walls. These fine structures are resolved without spurious oscillations.

We further report the robustness of the solver with respect to the fluid and magnetic Reynolds numbers. We run the experiment until T=2.5T = 2.5 for six combinations of Re,Rem∈{102,104,106,108}\mathrm{Re}, \mathrm{Re}_{m} \in\{10^{2}, 10^{4}, 10^{6}, 10^{8}\} and report in Table 5 the average numbers of Newton steps and outer FGMRES iterations per Newton step, over all 500 time steps and over t∈[2,2.5]t \in[2, 2.5], when the current sheet is strongest. Every time step takes two Newton steps, and the number of outer iterations stays between 1.46 and 2 per Newton step; it grows only slightly in the last phase for Re=Rem≥106\mathrm{Re} = \mathrm{Re}_{m} \ge10^{6}, where the peak current exceeds 100.

Effect of the filter on the current sheet

Figures 14 and 15 compare the current sheet for α=0\alpha= 0 and α=2h\alpha= 2h on the same mesh. The filter smooths the sheet: with α=2h\alpha= 2h it is wider and its peak is lower, while the field away from the sheet is unchanged. We thus observe that the regularization effect also applies to the small scales of the magnetic field, even though the magnetic field was not filtered directly.

Figure 14. Island coalescence: current density jhj_h on [0.95,1.05]×[−0.1,0.1][0.95, 1.05] \times[-0.1, 0.1] for α=0\alpha= 0 (top) and α=2h\alpha= 2h (bottom) at t=2t = 2, 2.252.25 and 2.52.5 (left to right). The two runs at each time share one color bar.

Conclusion

We have constructed a structure-preserving finite element method for the two-dimensional MHD-α\alpha model. Built on a discrete de Rham complex, a discrete Helmholtz filter and the implicit midpoint rule, the scheme preserves mass conservation and the magnetic Gauss law pointwise and satisfies discrete dissipation laws for the energy, the cross helicity and the mean square magnetic potential, which reduce to exact conservation in the ideal limit. The discrete systems are solved by an augmented Lagrangian preconditioner with monolithic geometric multigrid, whose iteration counts are observed to be robust with respect to the filter width and the Reynolds numbers, and to the mesh size for small time steps. The scheme converges at the optimal rates, agrees with a pseudo-spectral direct simulation at the large scales, and reproduces selective decay over long times. Since the scheme introduces no numerical dissipation, the energy spectra measure the effect of the filter alone. The filter leaves the large scales unchanged and suppresses small-scale velocity activity, and when the cascade reaches the grid scale it reduces the energy accumulation there without introducing additional dissipation.

Figure 15. Island coalescence: current density across the sheet, jh(x,0)j_h(x,0), at (a) t=2t=2, (b) t=2.25t=2.25 and (c) t=2.5t=2.5. The gray band has width α=2h\alpha=2h.

A natural extension is the three-dimensional MHD-α\alpha model, where the mean square potential is replaced by the magnetic helicity, together with a helicity-preserving discretization [27, 18, 29, 37, 35].

Acknowledgements

This work was funded by the Engineering and Physical Sciences Research Council [grant number EP/W026163/1], the Science and Technology Facilities Council [grant number UKRI/ST/B000495/1], the Donatio Universitatis Carolinae Chair “Mathematical modelling of multicomponent systems”, the UKRI Digital Research Infrastructure Programme through the Science and Technology Facilities Council’s Computational Science Centre for Re search Communities (CoSeC), the European Research Council (ERC Starting Grant, project 101164551 GeoFEM), and a Royal Society University Research Fellowship (URF\R1\221398).

Code availability

The scheme is implemented using Firedrake [25] and PETSc [6]. The code and the scripts that generate all tables and figures are archived on Zenodo [17]. The reference DNS in Figure 10 was computed with Dedalus [14].

Declaration of generative AI and AI-assisted technologies in the writing process

During the preparation of this work the authors used Claude Sonnet 5.5, Opus 5.5, Fable 5.2 (Anthropic) and GPT Sol 5.6 (OpenAI) in order to improve the clarity, readability, and language of the manuscript and to assist with LaTeX\mathrm{\LaTeX} typesetting. After using these tools, the authors reviewed and edited the content as needed and take full responsibility for the content of the publication. The AI tools were also used to check derivations and to help debug code; all mathematical statements, proofs and numerical results were produced and verified by the authors.

Computation of the energy spectra

On Ω=(0,2π)2\Omega= (0,2\pi)^2, let v^κ=(2π)−2∫Ωve−iκ⋅x dx\hat{\mathbf{v}}_{\boldsymbol{\kappa}} = (2\pi)^{-2} \int_{\Omega} \mathbf{v} e^{-\mathrm{i}\boldsymbol{\kappa}\cdot\mathbf{x}}\,\mathrm{d}x. The kinetic energy spectrum is the shell sum

EKα(k)=∑k≤∣κ∣<k+112Re⁡(u^κ⋅u^κ‾)(92)E_K^\alpha(k) = \sum_{k \leq\lvert\boldsymbol{\kappa}\rvert< k+1} \frac{1}{2}\operatorname{Re}\left(\hat{\mathbf{u}}_{\boldsymbol{\kappa}}\cdot\overline{\hat{\mathbf{u}}_{\boldsymbol{\kappa}}}\right) \tag*{(92)}

so that (2π)2∑k≥0EKα(k)=12(u,u‾)(2\pi)^2 \sum_{k \geq0} E_K^\alpha(k) = \frac{1}{2}(\mathbf{u},\overline{\mathbf{u}}). We compute this spectrum by the FFT of point samples of the finite element fields. The sampling points are chosen so that the computed spectrum sums exactly to the assembled energy 12(uh,u‾h)\frac{1}{2}(\mathbf{u}_h,\overline{\mathbf{u}}_h), and the sampling grid is fine enough that aliasing does not affect the plotted range k≤N/2k \leq N/2.

Sampling points. When sampling a finite element field to compute the energy spectrum, the samples must avoid being taken on the edges. For k=1k = 1, the discrete fields are piecewise constant: a lowest-order Raviart–Thomas function is aT+bTx\mathbf{a}_T + b_T\mathbf{x} on each cell, with divergence $2b_T$, and uh\mathbf{u}_h, $\overline{\mathbf{u}}_h are divergence-free pointwise by Theorem 3.3(a). A point value anywhere inside a cell therefore equals the cell value. On an edge, however, the tangential component jumps and the field takes two values (Figure A.16(b)). We therefore sample at xij=2πM(i+o1,j+o2)x_{ij} = \frac{2\pi}{M}(i+o_1,j+o_2), i,j=0,…,M−1i,j=0,\ldots,M-1, with M=rNM=rN, r∈Nr\in\mathbb{N}; the offsets o=(0.31,0.47)\mathbf{o}=(0.31,0.47) satisfy o1,o2,o1±o2∉Zo_1,o_2,o_1\pm o_2\notin\mathbb{Z}, which keeps every sample off the sides and diagonals of the cells (Figure A.16(a)).

Sampled versus assembled energy. We show that the sampled energy then equals the assembled energy 12(uh,u‾h)\frac{1}{2}(\mathbf{u}_h,\overline{\mathbf{u}}_h). The samples are not distributed in proportion to the area, since for r=4r=4 the two triangles of a square receive 10 and 6 samples. The equality holds because every square is split by the same diagonal, from its upper-left to its lower-right corner. For ψh∈Vh\psi_h\in V_h the xx-derivative on the upper triangle of a square equals that on the lower triangle of the square above it, and the yy-derivative equals that on the lower triangle of the square to its right. By (16) we may write uh=curl⁡ψh+c\mathbf{u}_h=\operatorname{curl}\psi_h+\mathbf{c} and u‾h=curl⁡ψ‾h+c‾\overline{\mathbf{u}}_h=\operatorname{curl}\overline{\psi}_h+\overline{\mathbf{c}} with ψh,ψ‾h∈Vh\psi_h,\overline{\psi}_h\in V_h and constant vectors c,c‾\mathbf{c},\overline{\mathbf{c}}. Then uT⋅u‾T\mathbf{u}_T\cdot\overline{\mathbf{u}}_T is a sum of products of two derivatives of ψh\psi_h and ψ‾h\overline{\psi}_h in the same direction, of single such derivatives times constants, and of the constant c⋅c‾\mathbf{c}\cdot\overline{\mathbf{c}}. Each of these terms is shifted from the upper triangles to the lower triangles as above, so the sums of uT⋅u‾T\mathbf{u}_T\cdot\overline{\mathbf{u}}_T over the lower and over the upper triangles coincide, and since the samples are split in the same way in every square,

(2πM)2∑i,juh(xij)⋅u‾h(xij)=(uh,u‾h).\left(\frac{2\pi}{M}\right)^2\sum_{i,j}\mathbf{u}_h(x_{ij})\cdot\overline{\mathbf{u}}_h(x_{ij})=(\mathbf{u}_h,\overline{\mathbf{u}}_h).

Discrete spectrum. In (A.1) we replace the Fourier coefficients by the discrete coefficients \widehat{\mathbf{v}}_\boldsymbol{\kappa}^{M}=M^{-2}\sum_{i,j}\mathbf{v}(x_{ij})e^{-i\boldsymbol{\kappa}\cdot x_{ij}} of the samples, computed with the FFT of NumPy [26]. Here MM is even, κ\boldsymbol{\kappa} is restricted to the representative index set KM:={−M/2,…,M/2−1}2\mathcal{K}_M:=\{-M/2,\ldots,M/2-1\}^2, and the shell sums in (A.1) are restricted to KM\mathcal{K}_M. Parseval’s identity holds exactly for these coefficients, so the spectrum sums to the sampled energy, which equals the assembled energy. The constants c,c‾\mathbf{c},\overline{\mathbf{c}} enter only the mode κ=0\boldsymbol{\kappa}=0. Table A.6 shows the check for an Orszag–Tang computation with ν=η=10−3\nu=\eta=10^{-3} on the 256×256256\times256 mesh, where the relative differences are at the level of round-off. For the computations of Figure 10 we observed relative differences below 3×10−123\times10^{-12} for M=NM=N, 2N2N and 4N4N, which is the level of the remaining discrete divergence when the nonlinear systems are solved iteratively. We use M=4NM=4N and show the spectra for k≤N/2k\le N/2. For the reference we evaluate (A.1) with u‾=u\overline{\mathbf{u}}=\mathbf{u} and the Fourier coefficients of the pseudo-spectral solution, obtained by the FFT of its vorticity on the 1024×10241024\times1024 collocation grid, ∣ω^κ∣2=∣ω^κ∣2/∣κ∣2|\widehat{\omega}_{\boldsymbol{\kappa}}|^2=|\widehat{\omega}_{\boldsymbol{\kappa}}|^2/|\boldsymbol{\kappa}|^2; since this solution is a trigonometric polynomial, these coefficients are exact and no sampling is needed.

Aliasing. The discrete coefficients differ from the exact ones by aliasing, v^κM=∑m∈Z2e2πim⋅ov^κ+Mm\hat{v}_{\kappa}^{M}=\sum_{m\in\mathbb{Z}^{2}}e^{2\pi i m\cdot o}\hat{v}_{\kappa+Mm}. For k≤N/2k\leq N/2 only wavenumbers ∣κ+Mm∣≥3.5N\lvert\kappa+Mm\rvert\geq3.5N, corresponding to length scales far below the mesh scale, are folded back. Increasing MM beyond 4N4N leaves the spectra of Figure 10 unchanged. Aliasing therefore does not affect the plotted spectra.

Mean square potential. The spectrum of the mean square potential in Figure 6 is computed in the same way from point samples of Ah∈VhA_h\in V_h, A(k)=∑k≤∣κ∣<k+1∣A^κM∣2A(k)=\sum_{k\leq\lvert\kappa\rvert<k+1}\lvert\hat{A}_{\kappa}^{M}\rvert^{2}, with M=4NM=4N; since AhA_h is continuous, the samples need not avoid the edges. At each time the spectrum is normalized by its maximum Amax⁡=max⁡kA(k)A_{\max}=\max_k A(k), so that only its shape is compared.

α\alphattassembledM=NM=NM=4NM=4N
00.521.6945113.1×10−153.1\times10^{-15}3.3×10−163.3\times10^{-16}
1.517.4309704.1×10−164.1\times10^{-16}6.1×10−166.1\times10^{-16}
215.3727114.6×10−164.6\times10^{-16}2.3×10−162.3\times10^{-16}
2h2h0.521.5059031.7×10−161.7\times10^{-16}9.9×10−169.9\times10^{-16}
1.516.4557482.2×10−162.2\times10^{-16}8.6×10−168.6\times10^{-16}
214.3769042.2×10−152.2\times10^{-15}2.0×10−152.0\times10^{-15}
4h4h0.520.9893291.0×10−151.0\times10^{-15}8.5×10−168.5\times10^{-16}
1.515.7440242.3×10−152.3\times10^{-15}3.9×10−153.9\times10^{-15}
213.6559302.1×10−152.1\times10^{-15}1.3×10−151.3\times10^{-15}

Table A.6. Sampled versus assembled kinetic energy for the Orszag–Tang test with ν=η=10−3\nu=\eta=10^{-3} on the 256×256256\times256 mesh: assembled energy 12(uh,u‾h)\frac{1}{2}(u_h,\overline{u}_h) and relative difference ∣(2π)2∑kEKα(k)−12(uh,u‾h)∣/12(uh,u‾h)\lvert(2\pi)^2\sum_k E_K^\alpha(k)-\frac{1}{2}(u_h,\overline{u}_h)\rvert/\frac{1}{2}(u_h,\overline{u}_h) for the sampling grids M=NM=N and M=4NM=4N.

Sampling of the Raviart–Thomas fields. Panel (a): $M=4N$, $\boldsymbol{o}=(0.31,0.47)$; panel (b): one cell, $\boldsymbol{u}_h\in\boldsymbol{Z}_h$, with $M=N$, $\boldsymbol{o}=(\frac{1}{2},\frac{1}{2})$: $\boldsymbol{u}_{T_1}\ne\boldsymbol{u}_{T_2}$.

Figure A.16. Sampling of the Raviart–Thomas fields. (a) Sample points on 2 × 2 cells of the mesh; no sample lies on a side or diagonal of a cell. (b) The field is constant on each triangle, so a sample on the diagonal takes two different values.

References

  1. [1]Amestoy, P.R., Duff, I.S., Koster, J., L’Excellent, J.Y., 2001. A fully asynchronous multifrontal solver using distributed dynamic scheduling. SIAM Journal on Matrix Analysis and Applications 23, 15–41. doi:10.1137/S0895479899358194.DOI
  2. [2]Arnold, D., Falk, R., Winther, R., 2010. Finite element exterior calculus: from Hodge theory to numerical stability. Bulletin of the American Mathematical Society 47, 281–354. doi:10.1090/S0273-0979-10-01278-4.DOI

Paper details

vlnc:W_c9p593qw
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

Claude Sonnet 5.5 (bare), Claude Opus 5.5 (bare), Fable 5.2, GPT Sol 5.6

View statement
Looking for related papers…
Contents