Solving the MHD equations by the space–time conservation element and solution element method

https://doi.org/10.1016/j.jcp.2005.10.006Get rights and content

Abstract

We apply the space–time conservation element and solution element (CESE) method to solve the ideal MHD equations with special emphasis on satisfying the divergence free constraint of magnetic field, i.e., ∇ · B = 0. In the setting of the CESE method, four approaches are employed: (i) the original CESE method without any additional treatment, (ii) a simple corrector procedure to update the spatial derivatives of magnetic field B after each time marching step to enforce ∇ · B = 0 at all mesh nodes, (iii) a constraint-transport method by using a special staggered mesh to calculate magnetic field B, and (iv) the projection method by solving a Poisson solver after each time marching step. To demonstrate the capabilities of these methods, two benchmark MHD flows are calculated: (i) a rotated one-dimensional MHD shock tube problem and (ii) a MHD vortex problem. The results show no differences between different approaches and all results compare favorably with previously reported data.

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:Ut+Fx+Gy=0,whereU=(ρ,ρu,ρv,ρw,e,Bx,By,Bz)T=(u1,u2,u3,u4,u5,u6,u7,u8)T,F(U)=ρuρu2+p0-Bx2ρuv-BxByρuw-BxBz(e+p0)u-Bx(uBx+vBy+wBz)0uBy-vBxuBz-wBx=f1f2f3f4f5f6f7f8andG(U)=ρvρvu-ByBxρv2+p0-By2ρvw-ByBz(e+p0)v-By(uBx+vBy+wBz)vBx-uBy0vBz-wBy=g1g2g3g4g5g6g7g8.In the above equations, ρ, p

The CESE method

The above MHD equations can be expressed asumt+fmx+gmy=0,m=1,2,,8,where 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:·hm=0,m=1,2,,8,where hm = (fm, gm, um) are the current density vector. By using Gauss’ divergence theorem in E3, we haveV·hmdV=S(V)

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 (umx)j,kn and (umy)j,kn are directly used as the unknowns and they march in time hand-in-hand with the flow variables (um)j,kn. Scheme I is a simple adjustment to the calculation of (umx)j,kn and (umy)j,knsuch 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 (Bxx)j,kn and (Byy)j,kn 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)

There are more references available in the full text version of this article.

Cited by (0)

View full text