Solving the MHD equations by the space–time conservation element and solution element method
Introduction
While many computational fluid dynamics (CFD) methods have been successfully developed for gas dynamics, extension of these methods for solving the Magneto-Hydro-Dynamic (MHD) equations involves unique requirements and poses greater challenges [1], [2], [3], [4], [5], [6], [7], [8], [9], [10], [11], [12], [13], [14]. In particular, for multi-dimensional MHD problems, it is critical to maintain the divergence-free constraint of magnetic field, i.e., ∇ · B = 0, at all locations in the space–time domain. Analytically, the constraint is ensured if it is satisfied in the initial condition. However, it has been difficult to maintain this constraint in calculating evolving MHD problems. Violating the constraint allows numerical errors to be accumulated over the computational time, leading to erroneous solutions and/or numerical instability.
To satisfy ∇ · B = 0, a special treatment directly incorporated into the CFD method employed is often required. Special treatments have been categorized into three groups: (i) The projection method, e.g., Brackbill and Barnes [5]: At each time step, the method solves a Poisson equation to update the magnetic field to enforce ∇ · B = 0. (ii) The eight-wave formulation by Powell [6]: ∇ · B is not treated as zero in deriving the MHD equations, leading to additional source/sink terms in equations for B. The CFD solver employed would activate the sink/source terms to counter the unbalanced ∇ · B in numerical solutions. (iii) The constrained-transport procedure, e.g., Evans and Hawley [7], Dai and Woodward [8], Balsara and Spice [9], and Tóth [12], based on the use of staggered mesh to enforce the constraint at certain spots of the control volume. Various versions of these three approaches have been developed to solve the MHD equations in multiple spatial dimensions [4], [5], [6], [7], [8], [9], [10], [11], [12], [13]. Recently, these methods have been assessed and summarized by Tóth [12].
In the present paper, we report the application of the space–time conservation element and solution element (CESE) method [15], [16], [17], [18], [19], [20] to solve the two-dimensional MHD equations. Four approaches are employed: (i) the original CESE method without any additional treatment for ∇ · B = 0, (ii) a simple modification procedure to update the spatial derivatives of B after each time marching step such that ∇ · B = 0 is enforced at all mesh nodes, (iii) an extended CESE method based on the constraint-transport procedure, and (iv) the projection method coupled with the CESE method. The approach (i) is trivial. Nevertheless, its results are comparable with other results by the three other approaches. Approaches (ii) and (iii) are new schemes for ∇ · B = 0. Approach (iv), the projection method, is a conventional and reliable approach to impose ∇ · B = 0. All results in the present paper compare well with previously published data.
The rest of the paper is arranged as follows. Section 2 illustrates the governing equations. Section 3 provides a brief review of the CESE method for two-spatial-dimensional problems. Section 4 shows the new CESE schemes, i.e., approaches (ii) and (iii), for ∇ · B = 0. Section 5 provides the results and discussions. We then offer conclusions and provide cited references.
Section snippets
Governing equations
The ideal MHD equations include the continuity, the momentum, the energy, and the magnetic induction equations. In two spatial dimensions, the dimensionless equations can be cast into the following conservative form:whereandIn the above equations, ρ, p
The CESE method
The above MHD equations can be expressed aswhere um, fm and gm are the entries of the flow variable vector and the flux vectors in the x and y directions, respectively, and m is the index for the equation. Let x1 = x, x2 = y and x3 = t be the coordinates of a three-dimensional Euclidean space E3, Eq. (3.1) becomes a divergence free condition:where hm = (fm, gm, um) are the current density vector. By using Gauss’ divergence theorem in E3, we have
Extended CESE schemes for ∇ · B = 0
In this section, we illustrate two new CESE schemes for ∇ · B = 0: Schemes I and II. Both schemes are built based on special features of the original CESE method. Scheme I takes advantage of the fact that the flow variable gradients and are directly used as the unknowns and they march in time hand-in-hand with the flow variables . Scheme I is a simple adjustment to the calculation of and such that ∇ · B = 0 is satisfied at all mesh points after each time
Results and discussions
In this section, we report results obtained from the CESE schemes. Section 5.1 presents the two-dimensional results of a MHD shock tube problem. Section 5.2 shows the solution of a MHD vortex problem, which is a real two-dimensional problem. For the two problems, we employ the new CESE schemes for maintaining ∇ · B = 0. Moreover, for the MHD vortex problem, we also employ the projection procedure, i.e., the Poisson solver, for maintaining ∇ · B = 0.
Conclusions
In this paper, we report the extension of the CESE method for solving the ideal MHD equations in two-spatial dimensions with emphasis on satisfying the ∇ · B = 0 constraint. Three numerical treatments are developed: (i) a simple algebraic adjustment of and after each time marching step to satisfy ∇ · B = 0, (ii) an extended CESE method based on the constraint-transport method to calculate the magnetic field, and (iii) a projection method by coupling a Poisson solver with the
References (21)
- et al.
An upwind difference scheme for the equations of ideal magnetohydrodynamics
Journal of Computational Physics
(1988) - et al.
A high-order WENO finite difference scheme for the equations of ideal magneto-hydrodynamics
Journal of Computational Physics
(1999) - et al.
The effect of nonzero ∇ · B on the numerical solution of the magnetohydrodynamic equations
Journal of Computational Physics
(1980) - et al.
A simple finite difference scheme for multidimensional magnetohydrodynamical equations
Journal of Computational Physics
(1998) - et al.
A staggered mesh algorithm using high order Godunov fluxes to ensure solenoidal magnetic fields in magnetohydrodynamic simulations
Journal of Computational Physics
(1999) - et al.
A high-order gas-kinetic method for multidimensional ideal magnetohydrodynamics
Journal of Computational Physics
(2000) The constraint ∇ · B = 0 in shock capturing magneto-hydrodynamics codes
Journal of Computational Physics
(2000)- et al.
On the divergence-free condition in Godunov-type schemes for ideal magnetohydrodynamics: the upwind constrained transport method
Journal of Computational Physics
(2004) - et al.
A Roe scheme for ideal MHD equations on 2D adaptively refined triangular grids
Journal of Computational Physics
(1999) The method of space–time conservation element and solution element – a new approach for solving the Navier–Stokes and the Euler equations
Journal of Computational Physics
(1995)