references
A Characteristic Mapping Method with Source Terms:
Applications to Ideal Magnetohydrodynamics
Abstract
This work introduces a generalized characteristic mapping method designed to handle non-linear advection with source terms. The semi-Lagrangian approach advances the flow map, incorporating the source term via the Duhamel integral. We derive a recursive formula for the time decomposition of the map and the source term integral, enhancing computational efficiency. Benchmark computations are presented for a test case with an exact solution and for two-dimensional ideal incompressible magnetohydrodynamics (MHD). Results demonstrate third-order accuracy in both space and time. The submap decomposition method achieves exceptionally high resolution, as illustrated by zooming into fine-scale current sheets. An error estimate is performed and suggests third order convergence in space and time.
Keywords: characteristic mapping method; magnetohydrodynamics, non-linear advection, inhomogeneous advection
1 Introduction
Conservation laws with source terms have a vast field of applications, ranging from geophysical flows, via chemical reacting flows, collision terms in kinetic equations or electromagnetic forces in Maxwell equations. Classical numerical schemes suffer from the stiffness introduced by the source terms and special care must be taken to avoid the convergence properties being degraded or even lost. For further details, we refer to the textbooks of Toro [32] and Leveque [18] and the cited literature. Prominent examples of methods handling conservation laws with source terms are splitting schemes, or e.g. the finite volume evolution Galerkin method by Morton and co-workers, see e.g. [20].
This paper aims to develop a numerical method for nonlinear advection problems with source terms. The underlying transport velocity is assumed to be divergence-free and the equations describe trajectories on the space of volume-preserving diffeomorphisms. While our approach is general, the present paper focuses on electrically conducting fluid flows, i.e. on ideal magnetohydrodynamics. Magnetohydrodynamics (MHD) describes the interaction between conducting fluids and magnetic fields. In the ideal setting, both the resistivity and the viscosity of the fluid vanish, which is called ideal MHD, see e.g. the textbook [5]. The governing equations are the incompressible Euler equations coupled with Maxwell equations involving the Lorenz force. Two-dimensional (2d) magnetohydrodynamics (MHD) shares a crucial feature with three-dimensional (3d) fluid turbulence: a direct energy cascade toward smaller scales, potentially leading to anomalous dissipation and the formation of singularities. The development of fine-scale or even singular structures—such as thin current sheets and the exponential growth of current density and vorticity in 2d incompressible MHD [10]—poses significant challenges for numerical methods.
Over the last decades numerous MHD solvers in different domains, for instance astrophysics, magnetically confined fusion, liquid metals, have been developed. A short overview can be found in the introduction of [23]. Fyfe, Montgomery & Joyce [7], Pouquet [27] and Orszag-Tang [24] proposed Fourier pseudo-spectral methods for solving the viscous and resistive 2d MHD equations in periodic geometry. Small-scale structures in three-dimensional magnetohydrodynamic turbulence using a pseudospectral method have been studied in [22]. Schneider et al. [28] proposed the coupling of the pseudo-spectral method with volume penalization to compute MHD turbulence in confined domains. Simulations of ideal 2d MHD using Fourier Galerkin truncated discretizations and analyzing thermalization following the ideas of TD Lee, i.e., energy equipartition of spectral approximations [17], have been carried out by Brachet’s group [16]. Some review of MHD solvers developed to compute fusion-plasma-related flows is given in [12]. Furthermore, adaptive 2d and 3d MHD computations using multiresolution methods can be found in [8] and computations using adaptive mesh refinement have been proposed by Grauer’s group [6].
Recently, the characteristic mapping methods (CMM), a novel numerical framework for advection problems, have been developed for various homogeneous transport problems. This approach is based on computing the inverse flow map or back-to-label map generated by the transporting velocity field, from which transported quantities can be directly evaluated by pullback. So far, these methods have shown success in the discretization of homogeneous equations such as linear transport [21, 30], the incompressible Euler equations in 2d periodic domain [34, 2], on the 2-sphere [29], in 3d periodic domain [35], as well as the 1+1d Vlassov-Poisson equations [14]. These methods preserve the relabeling symmetry, resulting in non-diffusive transport: the modified equations are closer to the Langrangian-averaged Euler- equations or the Kelvin-filtered models where regularization is only applied to the transporting velocity field. The group property of the diffeomorphisms also allows for a submap decomposition of a long-time flow resulting in efficient numerical resolution of exponential growth in scale separation. However, so far these schemes have been limited to homogeneous equations without source terms.
In this paper, we formulate the CMM for advection equations with source terms and focus on the extension of the method to the ideal magnetohydrodynamics (MHD) equations. The main difficulty in this extension is the presence of the Lorentz force as source term in the momentum equation and therefore requires the development of the CMM for inhomogeneous advection. Our approach is the following: by introducing the characteristic map, the nonlinear transport in the Euler and ideal MHD equations is rewritten in a “quasilinear” form. When going from the homogeneous to inhomogeneous equations, this allows for the application of Duhamel’s principle where the characteristic maps serve as solution operator to the linearized equation (see also [31] for analytic considerations for this approach and [33] for applications to other equations). The numerical method then consists in the evolution of two quantities: the backward characteristic map, using the same method as in the homogeneous case, and the Duhamel time integral of the source term, which we also call “accumulated source term”, solved using a semi-Lagrangian method on a fixed Eulerian grid. Again by Duhamel’s principle, a submap decomposition method for the CMM also applies to the source term time integral, and as long as remapping is performed before the accumulated source term saturates the numerical spatial resolution, it will not incur numerical artificial diffusion or thermalization errors. This approach results in a modification of the original CMM framework for general advection equations with source terms. In the case of the ideal MHD equations, the method is further simplified by the structure of the source term as the Lorentz force depends only on the magnetic field, which is a differential 2-form Lie-advected by the flow. This means that the magnetic field at any time instance can be directly expressed in terms of the initial magnetic field and the characteristic map, more precisely by differential pullback. This type of source term structures are known as advected parameters since the initial conditions become essentially “parameters” to the map evolution equation. Extensive studies of these equations in the framework of geometric hydrodynamics have been carried out in [11, 13, 1]. Numerically, this implies that the inhomogeneous advection equation for the accumulated source term is also quasi-linear, thus avoiding difficulties with the stability of time integration schemes. For more general cases with fully nonlinear source term equations, we expect that modifications to the time evolution schemes are required.
The outline of the manuscript is as follows. In Sec. 2 we present the CMM and its extension for handling source terms. Sec. 3 recalls the governing equations of ideal MHD in vorticity formulation. The numerical implementation of the CMM is then exposed in Sec. 4. Numerical validation for different test cases is given in Sec. 5. Finally, some conclusions and future directions are discussed in Sec. 6.
2 Characteristic Mapping Method
In this section we recall the Characteristic Mapping Method (CMM) studied in [34, 35, 2, 14] and describe an extension of the method to account for source terms, particularly for the ideal magnetohydrodynamics equations.
The CMM was successfully employed for the linear advection, incompressible Euler equations in two and three dimensions as well as on the sphere. The main idea of the approach is to compute the inverse flow map generated by the velocity field. This yields at all times a diffeomorphism on the domain between time the current and the initial times. For our current investigation, we will only use the 2d periodic square domain .
For a given time dependent velocity field , we denote by the flow map of from time to . Under suitable assumptions on , the flow maps are diffeomorphism with the properties
(1) |
for arbitrary and satisfy the equations
(2a) | |||
(2b) |
We note that the backward map is the solution operator for the advection equation under the velocity field in the sense that for any scalar field satisfying
(3) |
we have a direct representation of the solution at time by pullback:
(4) |
where the superscript asterisk denotes the pullback operator, in general the dual operator of a change of coordinates by the map. This property was used in [34] to solve the incompressible Euler equations in 2d using the vorticity formulation since vorticity, in the 2d case, is an advected scalar field.
The compositional properties (1) of the maps naturally lead to a geometric numerical scheme for advection problems. The general discretization strategy is described as follows. Let be an interpolation operator associated with a given grid on the domain . We denote by the numerical map, the time-stepping scheme can be summarized as
(5) |
where the one-step map is obtained from a backward in time integration of the velocity field applied on the ODE
(6) |
The equation is in some sense linearized by computing the characteristic map. The nonlinearity is limited to the evaluation of the velocity field which depends on the initial conditions and the map . The exact form of this velocity depends on the equation studied and the presence of source terms, we will present this in the next section.
For a short time , an appropriate grid will be sufficient to accurately approximate the exact map . When the numerical resolution of the grid is exhausted, a remapping is triggered with as remapping time. We thereby employ a submap decomposition method to approximate the long-time map by
(7) |
for a subdivision of the full time interval. Each submap is independently computed using the scheme eq. (5) and the remapping times are triggered dynamically as the resolution capacity of the grid is reached. We see that as long as the numerical resolution is sufficient, each numerical submap remains a diffeomorphism and therefore, the pullback is invertible. Practically, this means that the solution operator achieves an arbitrary resolution of all advected quantities and the pullback remains an infinite dimensional operator despite being discretized on a finite-dimensional function space.
2.1 Source Terms
Consider the scalar advection equation (3) with solution given in terms of the initial condition and the characteristic map (4). We note that the evolution of the scalar is given by a linear action of the map in the sense that and, for arbitrary, for solutions to linear homogeneous advection equations with initial conditions , under the same velocity field . Solutions to the inhomogeneous equation can therefore be obtained from the homogeneous equations through Duhamel’s principle. This in fact also holds for the Lie-advection of differential -forms where denotes the pullback operator, and more generally, for linear (right) actions of the diffeomorphism group.
Therefore, for the inhomogeneous advection equation
(8) |
we can perform the decomposition
(9) |
by commuting pullback with time integration. Defining
(10) |
we can write a recursive formula for the submap decomposition expression
(11) |
for and . Here, we note that within one remapping subinterval, for , the source term accumulation as a function of satisfies
(12) |
Therefore, in the CMM for inhomogeneous advection we must at the same time discretize two quantities, the current submap and the current source term accumulation .
3 Ideal Magnetohydrodynamics in Vorticity Formulation
One of the main goals of this paper is to extend the CMM to the ideal magnetohydrodynamic (MHD) equations in two-dimensional space, i.e. with vanishing resistivity and viscosity. Our numerical method uses the vorticity formulation for the momentum transport coupled with the magnetic field advection equation:
(13) | |||
(14) | |||
(15) |
where is the velocity field, is the vorticity field, and is the magnetic field parallel to the plane. Numerical simulation of these equations is already challenging in 2d [10]. The Lie-advection of the magnetic field may result in its local intensification in a process similar to the vortex stretching effect in the 3d Euler equations. As a result, the solution may contain extremely small scales in the magnetic field observed as an exponential growth in the maximum current density [10]. Resolving these fine scales makes the numerical simulation of this system difficult and costly. However, owing to the compositional structure of the CMM, an efficient resolution of exponential growth in scales of the numerical solution is possible as observed in [34, 35].
In order to apply the CMM to the ideal MHD equations, we must solve an additional transport equation for the magnetic field , this equation can be written as a Lie-advection equation. We consider the 2d transport equations as a system in three-dimensional space where all components of the solution are invariant in the third direction . In this case, both the vorticity field and the magnetic fields are Lie-advected differential 2-forms. In terms of the corresponding vector fields, the is perpendicular to the plane and is parallel to the plane. For a 2-form , the Lie derivative with respect to a velocity field is given by Cartan’s homotopy formula:
(16) |
We see that plugging gives simply the scalar directional derivative, whereas for , we obtain the induction term in the magnetic field equation.
Similar to the scalar advection case, the solution operator for the Lie-advection equation is the pullback operator by the backward characteristic map:
(17) |
where adj denotes the adjugate matrix. This pullback formula was used in [35] for the incompressible Euler equations in 3D where the vorticity is fully three-dimensional and the adjugate of the Jacobian matrix was responsible for the vortex stretching.
Here, in the 2d ideal MHD case, we note that when , is perpendicular to the plane and the adjugate Jacobian term drops out. However, for , we obtain the evaluation formula for the magnetic field based on initial data and the backward map:
(18) |
Writing the magnetic fields through the pullback operator greatly simplifies the numerical scheme as can be directly expressed as a function of and the map implying that no extra equations need to be solved to compute the magnetic field. The Lorentz force may then be thought of as a function of the backward map depending on which can be viewed as a parameter of the equations. This allows us to rewrite (14) in terms of the characteristic map:
(19a) | |||
(19b) | |||
(19c) | |||
(19d) | |||
(19e) |
We note that equations (19a) and (19b) are inviscid transport equations written in the Eulerian frame. There is no a priori bound on the small scales generated by these equations and hence Eulerian discretizations are only valid for limited time intervals until the grid resolution is no longer sufficient. To overcome this problem, the CMM allows for a submap decomposition method where a long-time map can be represented numerically as a composition of many submaps over shorter times wherein each submap has sufficient spatial resolution. Let be a subdivision of the time interval , the following recursion gives an evaluation method for and amenable for numerical implementation:
(20a) | |||
(20b) |
4 Numerical Implementation
The numerical implementation of the CMM without source term has been described in previous work [34, 33, 35]. This section will present the necessary extensions to handle the source term.
We quickly recall some notations. We denote by and the numerical discretizations of the (sub)map and (sub)source accumulation . The spatial interpolation operators for these fields are and respectively, on grids and . At time , we denote by the numerical vorticity evaluated from equation (19c). The numerical velocity field, defined in space through an interpolant, is , where is a regularized numerical operator approximating the exact Biot-Savart operator up to some length scale . The velocity field for , up to the next time step is defined using a temporal extrapolation operator . The backward one-step map from this velocity is defined at pointwise by the solution of the backward in time ODE with velocity field . Numerically, this is approximated by a classical Runge-Kutta-4 scheme.
In the absence of a source term, the CMM for incompressible Euler equations in 2d is summarized by an iteration of the following steps,
(21a) | |||
(21b) | |||
(21c) | |||
(21d) |
4.1 Numerical Implementation of the Source Term
In the case of equations with source terms, during a given time subinterval , the accumulated source term must be computed by discretizing equation (12). Alternatively, given the flow maps of the velocity field , we may write explicitly using Duhamel’s principle as a function of the map, and :
(22) |
This gives us a direct semi-Lagrangian discretization formula:
(23) |
where are -stage the Runge-Kutta time quadrature weights and loci. In our current implementation, we opted to use the same Runge-Kutta scheme for the one-step map and source term integrations. Therefore, the one-step map and its intermediate stage values were already computed during the map integration and therefore may be reused at no additional cost.
The source term is also defined in using the time extrapolation operator from discrete time data . At each time , the source term, in this case, the curl of the Lorentz force, is approximated by sampling the magnetic field using expression (19d) on the grid . Then, the magnetic field is filtered in Fourier space to retain spatial scales well-resolved by the grid, from which we then compute the curl of the Lorentz force, giving us the source term . We note that this operator is solely a function of and the map , hence we denote where is given by where is a filtered version of .
Here the method is described using two separate grids and for the map and the source term accumulation respectively. In addition to accuracy considerations, these grids’ resolution also controls the remapping frequency. Indeed, since the evolution of both and are discretizations of an advection equation on a fixed Eulerian grid, convergence is lost when the numerical solution reaches the Nyquist frequency of the grid. Therefore a rule of thumb is to trigger a remapping routine whenever either and develops significant small scales ill-resolved by their respective grids and . The freedom of using different grids then allows for further optimization between the remapping frequencies of the two terms. Generally, using the same grid should be sufficient since both terms are advected by the same velocity and minor tweaking is possible depending on the respective right-hand-sides for the two equations.
The CMM for the ideal MHD equations in 2d is summarized in the pseudocode algorithm 1. In this algorithm, we have introduced two distinct filtering scales and for the operators and respectively. The filtering is chosen to guarantee that the resulting velocity field is well resolved on the map grid. Indeed, any subgrid scales of the velocity in the map evolution will only appear as noise since it cannot be captured by the interpolant . This filtering allows us to access, for each fixed , the convergence regime in the limit of fine spatial and temporal grids. Similarly, is chosen so that the source term is well resolved by . The convergence of the numerical solution to the exact solution then relies on the limit which one should take after the spatial and temporal grid limits. A diagonalization argument may then be used to select a single subsequence. We give an overview of the error estimate arguments in the following section.
4.2 Error Analysis
In this section we present a sketch of the error estimates for the CMM with source term, detailed error analysis for the CMM can be found in [31]. One notable difference is that here, instead of the momentum equation, we use the vorticity equation which, in the 2d incompressible case, is simply a scalar advection equation, thereby avoiding derivative loss due to the differential pullback operator. Under suitable assumptions on the spatial and temporal discretization operators, the following error estimate can be reached.
Proposition 1.
The CMM for the ideal MHD equations in two dimensions using Hermite cubic spatial interpolation and order Lagrange time extrapolation and Runge-Kutta 4 integration has a numerical error of order where and are the spatial and temporal grid spacing and are the filtering length scales of the modified equation.
To simplify the analysis, we assume that the spatial discretization for the map and for the source term accumulation, on grids of cell width , are smooth projections on Sobolev spaces for some with the contraction and approximation properties
(24) |
for any , for instance, Fourier projections on harmonics [3] or mollification to scale . We also assume that once the numerical velocity is defined in as a Lagrange polynomial, that the numerical integration for the one-step map is performed exactly. In practice, the numerical solution obtained using Hermite cubic interpolants and RK4 integrators can then be viewed as a perturbation of the smooth scheme, with perturbation errors given by the accuracy of the interpolation and integration schemes.
We define , thus satisfying
(25) | |||
(26) |
We may then define a time-interpolated map for all , and this map corresponds to the numerical map obtained from the method at discrete times . It follows from the linearity of the interpolation operator that there exists some velocity field which generates the map . Since we may write exactly as the backward flow map of some velocity field, it follows that advected fields obtained by pullback through this map also satisfy an advection equation. Letting , then solves
(27) |
Let be the exact solution of the advection of the same initial field by the velocity field . Applying Grönwall’s lemma we have that for ,
(28) |
In terms of the velocity error, we have that
(29) |
where is the cell width for the map grid . The temporal error contains the nonlinearity as the numerical velocities depend on the numerical map. The numerical velocity is defined through an order extension operator which extrapolates a velocity from given numerical velocity data at steps to . We denote by the numerical velocity at and the exact velocity. The accuracy and boundedness properties
(30) | |||
(31) |
are sufficient to control the time approximation error:
(32) | ||||
(33) | ||||
(34) |
It remains to control the discrete step velocity error which involves the map pullback, Biot-Savart kernel, and the source term integration.
The numerical accumulated source term is obtained from semi-Lagrangian methods using velocity and source term . We again try to write an advection equation for :
(35) |
where denotes the commutator between interpolation and the material derivative. This commutator arises from the fact that the source term is computed on a fixed grid rather than directly through the map and therefore subgrid scales generated by the advection are lost. The error of this term is , i.e. the order of the scheme, but deteriorates accuracy once contains significant small-scale features, at which point remapping is needed in order to reset this commutator error to 0.
Applying Grönwall yields the following estimate for the source term accumulation:
(36) |
Again, defining through the extension operator gives an error
(37) |
The control one can expect for the numerical source term depends heavily on the equation studied. For the ideal MHD equations and more generally for so-called equations with advected parameters, it turns out that is solely a function of the backward map (if we consider initial data as parameters). Indeed, for the curl of the Lorentz force
(38) |
we may abstractly write a source term operator as . This can then be approximated by a regularized numerical operator which should be so that . The source term error can then be controlled by
(39) |
where the first term is the error of the approximate source term operator along the exact solution. Therefore,
(40) |
We now have everything necessary for estimating . Denote by the Biot-Savart kernel and let be a regularized numerical approximation for . We have the exact and numerical velocities are given by
(41) |
We obtain the following bound on the error:
(42) | |||
(43) | |||
(44) |
where we omitted any constant factors depending on the exact solution and the bounds on the norms of the numerical maps and the norms on the numerical source term accumulation . Control on the growth of is studied in [31], the growth rate of relies on the choice of numerical solver for the advection equation. Both of these can be limited using the remapping method. In fact, since all constants in the error estimates are controlled by the seminorm of the map and seminorm of the accumulated source term, this suggests that the decay rate of the Fourier spectrum of the numerical map and source term data are good criteria for triggering the remapping step.
A last application of Grönwall’s inequality then gives us an order in space and in time convergence for the numerical velocities and by extension the map, vorticity and magnetic fields. We note that in the asymptotic, the leading error is the operator errors and which depend on the filtering parameters . This makes the error estimate highly non-trivial since the filtering parameters regularize the solution thereby limiting the presence of small scales in the numerical solution. On the one hand, choosing large , i.e. a stronger regularization allows the error to enter the asymptotic regime for coarser grids, however, the deviation from the exact solution is also increased by the regularization errors and . On the other hand, choosing smaller filtering scales reduces these errors but also amplifies the discretization errors due to potentially faster growth in the norms of the maps. The optimal relation between and is highly dependent on the exact solution. As a general rule of thumb, for a given filter, and should be chosen sufficiently small so that all scales expected in an -regularized solution are well resolved. The exact solution can then be approached by taking the limit with optimal for each given filter. We note that the convergence of the numerical solution in the limit might not be in a strong sense with respect to an norm. This remains a difficult problem and depends on whether the exact solution can be obtained as some weak limit of strong solutions to a family of regularized problems. The above shows that the regularization employed in this method is close to that of the Langrangian-averaged MHD equations or the related MHD- equations for which global well-posedness is known [19]. In this sense, the numerical results from the CMM, though fully inviscid, offer a relevant comparison with the Large Eddy Simulation models for which there is an extensive study in terms of spectral scaling and energy dissipation [25, 26, 9].
In this paper, we employ a Hermite cubic spatial interpolation with third-order Lagrange extrapolation in time. This corresponds to a perturbation of a smooth scheme which is stable as long as the numerical solution is not highly oscillatory. More precisely, the error of this perturbation is controlled by the difference of with its Fourier projection on the same grid . This suggests that, in the case of Hermite cubic interpolation, we should take the norm of the Fourier transform of the map data as a remapping criterion. This holds similarly for .
5 Numerical Studies
For code validation of CMM with source terms, we first construct an exact solution of a linear advection equation with a swirling velocity field and a source term assessing the convergence properties. Then we apply CMM to the classical Orszag–Tang test case (OT) for ideal MHD and compare it with available results in the literature.
5.1 Manufactured solution: linear advection with source term
In the first numerical example, we study linear advection with the source term
(45) |
using a divergence-free velocity field that generates a swirl:
(46) |
on a periodic domain and for . To test our framework, we impose a manufactured solution:
(47) |
with and where the corresponding source term is determined analytically by Eq. 45. This test case is set up such that the solution has a constant spatial profile with narrowing crossing lines towards and increasing thickness after . Therefore, the source term needs to compensate for the deformation created by the swirl velocity field. The resulting evolution of the source term and solution is shown in Fig. 1. Additionally, we show the subintegrals for the different time instances and their Fourier spectra.

At time we see that the sub-integral and source are identical since no remapping was initiated. Furthermore, the Fourier spectra of the source term/sub-integral and analytical solution are similar because of the small-scale structures present in the solution at time . In a source term free case, the scale in the solution would not affect the numerical precision because the evolved quantity is the map, not the state itself. Since in the presence of source terms, we have to store quantities that depend on the solution itself, the scales of the solution play a role in the numerical precision. Hence, to preserve these fine scales, storing the sub-integrals on finer grids might be necessary. As soon as the first remapping is performed, we see that the spectra of the source term and sub-integrals differ. As the sub-integrals capture only local information of the solution, they have in general a faster decay than itself. However, note that the spectrum of the submap decays for all time instances the fastest.
Finally, we show the achieved third-order convergence in space and time in Fig. 2.
Convergence in space and time is computed for using the manufactured solution Eq. 47. Space convergence is achieved by increasing the number of grid points of the map in each dimension while keeping a constant time step of and integrating to . Convergence in time is achieved by decreasing the step size , while keeping the number of grid points of the map at in each dimension. For both convergence tests, we keep the sampling grid of the velocity and the grid for evaluating all quantities at . For all convergence tests, remapping was switched off. We remark that as mentioned before the fine-scale structure of the solution can not be decoupled from the numerical evolved quantities, as would be the case for the source-free swirl test case. Hence, we observe that for the convergence rate is reduced, especially for the coarser resolutions.

5.2 Orszag–Tang test case
Our numerical experiments are based on the classical Orszag–Tang MHD test case that was implemented to study singularities in MHD turbulence [24].
In this case, we expect order convergence in the norm in space and time. In fact, our numerical experiments show convergence in the norm. We define the following errors:
(48) | ||||||
(49) | ||||||
(50) |
which will be studied numerically in Section 5.
The initial condition of the test case reads:
(51) | ||||
(52) |
The test case is simulated inside the periodic domain . A time evolution for is shown for the vorticity and current density in Fig. 3. Furthermore, successive zooms into the fine-scale structures of the current density are shown in Fig. 4 at time .
For later reference, we define some characteristic quantities of the system. The potential and kinetic energy is defined by:
(53) |
Here we use the standard norm , with scalar product
(54) |
The following quantities are conserved for sufficiently smooth solutions:
(55) | ||||||
(56) | ||||||
(57) |
where . The magnetic vector potential can be obtained from the current density using . Note, since all our computations are in 2d: . Lastly, the magnetic and velocity spectra are given by:
(58) | ||||
(59) |
where and are the coefficients of the Fourier transformed quantities and , respectively.










5.2.1 Convergence in space and time
In Section 5.1 we have studied the convergence in space and time for our numerical solution when compared to an analytic solution of the problem. Unfortunately, no analytic solution exists for ideal MHD. This is the reason why this section presents a self-comparison. Therefore our reference solution is computed with CMM using the finest resolution. For both, time and space convergence we use grid points in each dimension for the map and integrate up to time in time steps of size . Furthermore, the resolution of the velocity field is kept at , for all simulations. To show numerical convergence in space we compare the reference solution to coarser approximations with lattice spacings . Similar for convergence in time we slowly increase the time steps from to and compute the error with respect to the reference solution. For both convergence tests remapping is switched off. Our experiments indicate 3rd-order convergence as shown in Fig. 5 and Table 1.


1/64 | 3.2 | 3.3 | 2.8 |
1/128 | 3.1 | 3.1 | 3.0 |
1/256 | 3.2 | 3.2 | 3.1 |
1/512 | 3.3 | 3.3 | 3.4 |
1/128 | 3.0 | 3.0 | 2.9 |
1/256 | 3.0 | 3.0 | 2.8 |
1/512 | 2.9 | 2.8 | 2.5 |
1/1024 | 2.9 | 2.7 | 2.1 |
5.2.2 Comparison with literature results
Next, we compare our results with a truncated Fourier Galerkin method applied to the ideal MHD equations at a resolution of grid points [16]. We use CFL time stepping with CFL number 1 and remapping threshold for the comparison. The spatial resolution of the map is , the velocity field as well as the field used for measurements is resolved at . All parameters are summarized in Table 2.
name | value |
---|---|
Map resolution | 512 |
Velocity field resolution | 1024 |
inc. threshold | 0.05 |
time step size (CFL) | |
cut off for map | |
cut off for source term |
For a first visual inspection, we compare the current density at time in the last row of Fig. 3 with Fig. 9a) in [16]. We observe a similar structure. However, with closer inspection of the present simulations we observe the absence of some features present in [16]. Next, we compute the Fourier spectra defined in Eq. 58 at , which are shown in Fig. 6. We can confirm [16], which observed decay of in the initial dynamics.

Additionally, we compare the time dynamics of the kinetic and potential energy, flux and Fourier mode ratios in Fig. 7(b) to [16]. We see a good agreement of the dynamics up to . Thereafter the two types of simulations diverge.


Lastly, Fig. 8 we plot the time evolution of the conserved quantities Eqs. 56, 55 and 57 together with the number of submaps in Fig. 8. Here we see a conservation of the quantities up to time . Thereafter dissipation of total energy is observed. This might be caused by the formation of the thin current sheet which may imply a loss of regularity of the solution. Similar to our previous studies [14] we observe a linear growth in the number of submaps up to 40 maps at time .

6 Conclusion
In this present work, we presented an extension of the CMM for transport equations with source terms using the Duhamel integral. A recursive formula for the submap decomposition has been derived and its numerical implementation has been detailed. Numerical analysis showed global third-order convergence in space and time. We validated the method in 2d and confirmed the theoretical third-order convergence in space and time using a manufactured solution. Then we benchmarked 2d ideal MHD, the classical Orzsag–Tang test case, and compared the results with truncated Fourier Galerkin computations. We likewise observed third-order convergence in space and time with respect to a fine grid reference computation.
One unique feature of the CMM is its use of the structure of the diffeomorphism group to achieve an efficient decomposition of a long-time map using compositions of coarse grid submaps. Together with the preservation of the relabeling symmetry through the pullback operator, the method achieves arbitrary spatial resolution using coarse grid computations and the error is advective rather than diffusive in nature. These features are not straightforwardly preserved in the inhomogeneous case with source terms. In this work, this is remedied by applying a decomposition of the source term integration through Duhamel’s formula. This extended methodology allows us to monitor the spatial resolution of the source term accumulation and subdivide the integral when numerical resolution is saturated, thereby controlling the numerical error arising from the transport term. These features are indeed observed in our numerical experiments. Using limited spatial resolution, the CMM was able to capture very small-scale features in the Orszag–Tang test case and we showed that subgrid scales are preserved by zooming into a subregion of the solution. This implies that the CMM is not prone to thermalization errors originating from a frequency-limited discretization of the quadratic convection term. In fact, our experiments could simulate longer periods without any apparent thermalization as observed in even higher-resolution pseudo-spectral codes.
Perspectives of the current work are the extension to MHD in three dimensions using a similar approach as done for the 3d incompressible Euler equations [35]. Moreover, the developed source term technique will also enable us to consider kinetic equations, e.g. the Boltzmann equation with collision terms, which is a topic of current work [15]. Additionally, pursuing a possible coupling of MHD with kinetic kinetic equations, e.g. the developed Vlasov–Poisson CMM solver in [14] will provide efficient methods for solving the Vlasov–Maxwell system with possible application to magnetically confined fusion.
Finally, on the application side and motivated by the singularity studies for 2d incompressible Euler equations using CMM [2], we plan to extend these to incompressible MHD and seek numerical evidence whether solutions develop finite-time singularities, which is still an open question, see e.g. [4] where the global regularity has been analyzed theoretically in the presence of partial dissipation
Author Contribution Statement (CRediT)
In the following, we declare the author’s contributions to the publication:
Xi-Yuan Yin: | implementation, writing initial draft, numerical analysis, reviewing & editing |
---|---|
Philipp Krah: | implementation, writing initial draft, numerical studies, visualization |
Jean-Christophe Nave: | initial idea, editing and supervision |
Kai Schneider: | initial idea, writing the initial draft, editing and supervision, funding acquisition, project administration |
Acknowledgement
The authors were granted access to the HPC resources of IDRIS under allocation No. AD012A01664R1 attributed by Grand Équipement National de Calcul Intensif (GENCI). Centre de Calcul Intensif d’Aix-Marseille is acknowledged for granting access to its high-performance computing resources. The authors acknowledge partial funding from the Agence Nationale de la Recherche (ANR), project CM2E, grant ANR-20-CE46-0010-01. JCN would like to acknowledge partial financial support from the NSERC Discovery Grant program. The authors also thank Seth Taylor for many helpful discussions.
References
- [1] V. I. Arnold and B. A. Khesin. Topological methods in hydrodynamics, volume 125. Springer Science & Business Media, 2008.
- [2] J. Bergmann, T. Maurel-Oujia, J.-C. Nave, K. Schneider, et al. Singularity formation of vortex sheets in 2d Euler equations using the characteristic mapping method. arXiv preprint arXiv:2404.02008, to appear in Physics of Fluids, 2024.
- [3] J. P. Boyd. Chebyshev and Fourier spectral methods. Courier Corporation, 2001.
- [4] C. Cao and J. Wu. Global regularity for the 2d MHD equations with mixed partial dissipation and magnetic diffusion. Advances in Mathematics, 226(2):1803–1822, 2011.
- [5] P. A. Davidson. Introduction to magnetohydrodynamics, volume 55. Cambridge University Press, 2016.
- [6] H. Friedel, R. Grauer, and C. Marliani. Adaptive mesh refinement for singular current sheets in incompressible magnetohydrodynamic flows. Journal of Computational Physics, 134(1):190–198, 1997.
- [7] D. Fyfe, D. Montgomery, and G. Joyce. Dissipative, forced turbulence in two-dimensional magnetohydrodynamics. Journal of Plasma Physics, 17(3):369–398, 1977.
- [8] A. K. F. Gomes, M. O. Domingues, O. Mendes, and K. Schneider. Adaptive two-and three-dimensional multiresolution computations of resistive magnetohydrodynamics. Advances in Computational Mathematics, 47(2):22, 2021.
- [9] J. P. Graham, P. D. Mininni, and A. Pouquet. Cancellation exponent and multifractal structure in two-dimensional magnetohydrodynamics: direct numerical simulations and Lagrangian averaged modeling. Physical Review E—Statistical, Nonlinear, and Soft Matter Physics, 72(4):045301, 2005.
- [10] R. Grauer and C. Marliani. Geometry of singular structures in magnetohydrodynamic flows. Physics of Plasmas, 5(7):2544–2552, 1998.
- [11] D. D. Holm, J. E. Marsden, and T. S. Ratiu. The Euler–Poincaré equations and semidirect products with applications to continuum theories. Advances in Mathematics, 137(1):1–81, 1998.
- [12] S. C. Jardin. Review of implicit methods for the magnetohydrodynamic description of magnetically confined plasmas. Journal of Computational Physics, 231(3):822–838, 2012.
- [13] B. Khesin, G. Misiołek, and K. Modin. Geometric hydrodynamics and infinite-dimensional Newton’s equations. Bulletin of the American Mathematical Society, 58(3):377–442, 2021.
- [14] P. Krah, X.-Y. Yin, J. Bergmann, J.-C. Nave, and K. Schneider. A characteristic mapping method for Vlasov–Poisson with extreme resolution properties. Communications in Computational Physics, 35(4):905–937, 2024.
- [15] P. Krah, X.-Y. Yin, Z. Lin, J.-C. Nave, and K. Schneider. Characteristic mapping method for Vlasov-Poisson-BGK. In preparation, 2024.
- [16] G. Krstulovic, M.-E. Brachet, and A. Pouquet. Alfvén waves and ideal two-dimensional Galerkin truncated magnetohydrodynamics. Physical Review E, 84(1):016410, 2011.
- [17] T. Lee. On some statistical properties of hydrodynamical and magneto-hydrodynamical fields. Quarterly of Applied Mathematics, 10(1):69–74, 1952.
- [18] R. J. LeVeque. Numerical methods for conservation laws, volume 214. Springer, 1992.
- [19] J. S. Linshiz and E. S. Titi. Analytical study of certain magnetohydrodynamic- models. Journal of Mathematical Physics, 48(6), 2007.
- [20] M. Lukacova-Medvidova, K. Morton, and G. Warnecke. Finite volume evolution Galerkin methods for hyperbolic systems. SIAM Journal on Scientific Computing, 26(1):1–30, 2004.
- [21] O. Mercier, X.-Y. Yin, and J.-C. Nave. The characteristic mapping method for the linear advection of arbitrary sets. SIAM Journal on Scientific Computing, 42(3):A1663–A1685, 2020.
- [22] P. Mininni, A. Pouquet, and D. Montgomery. Small-scale structures in three-dimensional magnetohydrodynamic turbulence. Physical Review Letters, 97(24):244503, 2006.
- [23] J. A. Morales, M. Leroy, W. J. Bos, and K. Schneider. Simulation of confined magnetohydrodynamic flows with Dirichlet boundary conditions using a pseudo-spectral method with volume penalization. Journal of Computational Physics, 274:64–94, 2014.
- [24] S. A. Orszag and C.-M. Tang. Small-scale structure of two-dimensional magnetohydrodynamic turbulence. Journal of Fluid Mechanics, 90(1):129–143, 1979.
- [25] J. Pietarila Graham, D. Holm, P. Mininni, and A. Pouquet. Inertial range scaling, Kármán-Howarth theorem, and intermittency for forced and decaying Lagrangian averaged magnetohydrodynamic equations in two dimensions. Physics of Fluids, 18(4), 2006.
- [26] J. Pietarila Graham, P. D. Mininni, and A. Pouquet. Lagrangian-averaged model for magnetohydrodynamic turbulence and the absence of bottlenecks. Physical Review E—Statistical, Nonlinear, and Soft Matter Physics, 80(1):016313, 2009.
- [27] A. Pouquet. On two-dimensional magnetohydrodynamic turbulence. Journal of Fluid Mechanics, 88(1):1–16, 1978.
- [28] K. Schneider, S. Neffaa, and W. J. Bos. A pseudo-spectral method with volume penalisation for magnetohydrodynamic turbulence in confined domains. Computer Physics Communications, 182(1):2–7, 2011.
- [29] S. Taylor and J.-C. Nave. A characteristic mapping method for incompressible hydrodynamics on a rotating sphere. arXiv preprint arXiv:2302.01205, 2023.
- [30] S. Taylor and J.-C. Nave. A projection-based characteristic mapping method for tracer transport on the sphere. Journal of Computational Physics, 477:111905, 2023.
- [31] S. Taylor, X.-Y. Yin, and J.-C. Nave. A functional discretization of the coadjoint action on the diffeomorphism group. In preparation, 2024.
- [32] E. F. Toro. Riemann solvers and numerical methods for fluid dynamics: a practical introduction. Springer Science & Business Media, 2013.
- [33] X.-Y. Yin. Characteristic mapping framework with applications to density transport and fluid dynamics. PhD thesis, McGill University (Canada), 2021.
- [34] X.-Y. Yin, O. Mercier, B. Yadav, K. Schneider, and J.-C. Nave. A characteristic mapping method for the two-dimensional incompressible Euler equations. Journal of Computational Physics, 424:109781, 2021.
- [35] X.-Y. Yin, K. Schneider, and J.-C. Nave. A characteristic mapping method for the three-dimensional incompressible Euler equations. Journal of Computational Physics, page 111876, 2023.