Limiting and divergence cleaning for continuous finite element discretizations of the MHD equations

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

Highlights

  • Localized element-based FCT algorithm for continuous finite element discretizations of the MHD system.

  • Synchronized and sequential a priori limiters based on local maximum principles for control variables.

  • Synchronized a posteriori limiting to enforce positivity preservation for the thermodynamic pressure.

  • Built-in penalization of divergence errors without violating maximum principles or conservation laws.

Abstract

This work introduces a new type of constrained algebraic stabilization for continuous piecewise-linear finite element approximations to the equations of ideal magnetohydrodynamics (MHD). At the first step of the proposed flux-corrected transport (FCT) algorithm, the Galerkin element matrices are modified by adding graph viscosity proportional to the fastest characteristic wave speed. At the second step, limited antidiffusive corrections are applied and divergence cleaning is performed for the magnetic field. The limiting procedure developed for this stage is designed to enforce local maximum principles, as well as positivity preservation for the density and thermodynamic pressure. Additionally, it adjusts the magnetic field in a way which penalizes divergence errors without violating conservation laws or positivity constraints. Numerical studies for 2D test problems are performed to demonstrate the ability of the proposed algorithms to accomplish this task in applications to ideal MHD benchmarks.

Introduction

In recent years, significant advances have been made in the analysis and design of physics-compatible finite element methods for nonlinear hyperbolic systems. In particular, the principle of invariant domain preservation was introduced by Guermond and Popov [17] as a useful generalization of scalar discrete maximum principles to systems of conserved quantities [17]. Artificial diffusion operators and localized edge-based flux-corrected transport (FCT) algorithms based on this design criterion were proposed in [18], [19], [20]. Similar algebraic approaches to construction of FCT-like finite element schemes for systems of conservation laws were explored in [8], [13], [25], [28]. The synchronized and sequential limiting techniques developed in these publications make it possible to constrain a set of coupled conserved variables in a manner which guarantees the validity of relevant maximum principles for nonlinear functions of these variables. In the context of ideal MHD, a well-designed limiter must guarantee positivity preservation for the density and pressure (internal energy).

Custom-made positivity-preserving limiters for the ideal MHD system were proposed in [4], [8], [10]. Similarly to limiters for the Euler equations, their design relies on the assumption that the underlying low-order scheme produces physically admissible solutions. As shown by Wu and Shu [42], [43], [44], the validity of this assumption cannot be guaranteed for Riemann problems with discontinuous magnetic fields and numerical approximations violating a discrete form of the divergence-free condition. However, a rigorous proof of positivity preservation could be obtained for the nonconservative Godunov-Powell form [34] of the MHD system discretized using a discontinuous Galerkin (DG) method [43].

Another important recent development is the advent of Multi-dimensional Optimal Order Detection (MOOD) methods based on the idea of a posteriori limiting [30], [41], [45], [46]. Instead of constraining numerical fluxes, element contributions, or gradients to keep the quantities of interest in the admissible range, MOOD approaches evolve the numerical solution using a standard high-order method. If violations of physical or numerical admissibility conditions are detected in any mesh cell, the restriction of the high-order candidate solution to this cell is rejected and an admissible approximation is calculated using a bound-preserving subcell finite volume scheme. Such a posteriori fixes are well suited for finite volume and discontinuous Galerkin methods. The MOOD paradigm can also be used for selective activation of artificial viscosity or adaptive choice of the limiting strategy for continuous finite elements (cf. [2], [26]).

A robust scheme for solving the MHD equations must incorporate a mechanism for avoiding (unbounded growth of) divergence errors in numerical approximations to the magnetic field [9], [39], [40]. This requirement can be satisfied, e.g., by using constrained transport (CT) schemes [6], [14], [21], [35], mixed finite elements [8], [23], penalizing source terms [34], or various divergence cleaning procedures [12]. Many ways of keeping the magnetic field approximately divergence-free are closely related to numerical methods for the incompressible Navier-Stokes equations (projection schemes, grad-div stabilization, artificial compressibility methods). Unfortunately, most of them lead to numerical schemes that are nonconservative or may produce spurious undershoots/overshoots.

In this paper, we present a new localized version of the element-based FCT algorithm developed in [8]. The proposed methodology constrains the numerical solution of the MHD system to stay in the admissible set using a priori limiting to enforce local maximum principles for the density and other quantities of interest. Additional a posteriori limiting is performed if negative values of the thermodynamic pressure are detected. At the a priori limiting stage, changes of the conserved quantities are constrained in a synchronized or sequential manner. The calculation of correction factors for the synchronized FCT limiter is based solely on the density constraints. The sequential FCT algorithm is based on the methodology developed in [13], [22] for continuous and discontinuous Galerkin discretizations of the Euler equations. Imposing local maximum principles on the density, velocity, specific total energy, and magnetic field, it uses different correction factors for different variables. Both versions of the a priori limiter guarantee positivity preservation for the density field. The positivity-preserving pressure fix is based on a simplified version of the synchronized limiter developed in [8]. In contrast to fully synchronized a priori limiters for MHD, the new FCT scheme does not automatically smear the magnetic field in regions of constant density and vice versa. Moreover, it features embedded divergence cleaning based on localized grad-div penalization. The corresponding penalty terms are built into the antidiffusive element contributions to the magnetic field, leading to a conservative and bound-preserving correction procedure. The numerical results for standard MHD benchmarks illustrate the shock-capturing and divergence cleaning capabilities of the proposed FCT method.

Section snippets

Continuous finite element discretization

We consider the conservative form of the ideal compressible MHD equationsUt+F(U)=0, whereU=[ρρuρEB],F(U)=[ρuρuu+ptotIBBρEu+ptotuB(uB)uBBu]. The conserved quantities are the density ρ, momentum ρu, total energy ρE, and the magnetic field B. The velocity u=ρuρ and total pressureptot=p+12|B|2 are derived quantities. The thermal pressure p is related to the density and internal energy by an equation of state. The EOS for ideal gases readsp=(γ1)(ρEρ|u|2212|B|2), where γ is the

Low-order artificial viscosity

Since Uh and Fh are continuous on the internal faces of the finite element mesh, upwinding techniques based on MHD Riemann solvers [3], [4], [5] cannot be used to manipulate the numerical fluxes directly. Following [8], [18], [26], we will stabilize the lumped-mass Galerkin system (18) by adding some artificial viscosity. The resulting low-order approximation will be of the formMLdUdt=CF+DU+G, where D={dij}i,j=1Nh is a discrete diffusion operator with entriesdij=eEiEjdije.

Let i{1,,Nh} be

FCT correction and divergence cleaning

At the second stage of our flux-corrected transport (FCT) algorithm, we will correct the low-order approximation UiLG by adding limited element contributions which should remove excessive artificial diffusion, reduce phase errors due to mass lumping, and penalize divergence errors in the finite element approximation to the magnetic field. The outcome of this correction will beUiC=UiL+1mieEimieFie,C=1eEimieeEimieUie,C, whereUie,C=UiL+Fie,C and Fie,C are element contributions satisfying

Limiting procedures for MHD

Let Fie,T=[fie,ρ,fie,ρu,fie,ρE,fie,B]T be defined by (42). For Fie,C=Fie,T, the FCT correction step (39) will produce the target approximationρie,T=ρiL+fie,ρ,(ρu)ie,T=(ρu)iL+fie,ρu,(ρE)ie,T=(ρE)iL+fie,ρE,Bie,T=BiL+fie,B. In general, the FCT limiter for Fie,C should be designed to guarantee thatUie,C(αe)=[ρie,(ρu)ie,(ρE)ie,Bie]T is physically admissible, i.e., Uie,CG. Additionally, scalar quantities of interest may be constrained to satisfy local maximum principles of the formviminv(Uie,C(αe))

Summary of the FCT algorithm

In summary, the new FCT scheme for calculating constrained approximations UiCG to the solution of system (1) involves the following steps:

  • 1.

    Advance U in time using the low-order method presented in Section 3.

  • 2.

    For each element e{1,,Eh}, calculate the nodal states U˜ie,CG˜i using the synchronized a priori limiter presented in Section 5.1 or the sequential a priori limiter presented in Section 5.2.

  • 3.

    If U˜ie,CG, then set Uie,C=U˜ie,C. Otherwise, calculate Uie,CG using the synchronized a posteriori

Numerical examples

In this section, we perform numerical studies for two standard MHD benchmarks. The methods under investigation are abbreviated as follows:

LOlow-order scheme (Section 3) without any corrections;
FCT-Alocalized element-based FCT with synchronized a priori limiting
(Section 5.1) and synchronized a posteriori limiting (Section 5.3);
FCT-Blocalized element-based FCT with sequential a priori limiting
(Section 5.2) and synchronized a posteriori limiting (Section 5.3).

The two-dimensional implementation of

Conclusions

Building on recent advances in the field of bound-preserving high-resolution finite element schemes for hyperbolic systems [13], [18], [20], [22], [43], the proposed upgrade of the FCT algorithm developed in [8] equips it with more advanced limiting techniques. The presented new features include a positivity-preserving correction of the low-order predictor and sequential limiting subject to global energy constraints. The use of directional maximum principles for the momentum and magnetic field

Declaration of Competing Interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper

Acknowledgements

This research was supported by the German Research Association (DFG) under grant KU 1530/15-2. The authors would like to thank Dr. John N. Shadid and Dr. Sibusiso Mabuza (Sandia National Laboratories) for inspiring discussions of limiting techniques for MHD problems.

References (46)

  • J.-L. Guermond et al.

    Invariant domain preserving discretization-independent schemes and convex limiting for hyperbolic systems

    Comput. Methods Appl. Mech. Eng.

    (2019)
  • C. Helzel et al.

    An unstaggered constrained transport method for the 3D ideal magnetohydrodynamic equations

    J. Comput. Phys.

    (2011)
  • H. Hajduk et al.

    New directional vector limiters for discontinuous Galerkin methods

    J. Comput. Phys.

    (2019)
  • D. Kuzmin et al.

    A flux-corrected transport algorithm for handling the close-packing limit in dense suspensions

    J. Comput. Appl. Math.

    (2012)
  • D. Kuzmin et al.

    Failsafe flux limiting and constrained data projections for equations of gas dynamics

    J. Comput. Phys.

    (2010)
  • C. Lohmann et al.

    Synchronized flux limiting for gas dynamics variables

    J. Comput. Phys.

    (2016)
  • C. Lohmann et al.

    Flux-corrected transport algorithms for continuous Galerkin methods based on high order Bernstein finite elements

    J. Comput. Phys.

    (2017)
  • M. Olshanskii et al.

    Grad–div stabilization and subgrid pressure models for the incompressible Navier–Stokes equations

    Comput. Methods Appl. Mech. Eng.

    (2009)
  • K.G. Powell et al.

    A solution-adaptive upwind scheme for ideal magnetohydrodynamics

    J. Comput. Phys.

    (1999)
  • V. Selmin

    The node-centred finite volume approach: bridge between finite differences and finite elements

    Comput. Methods Appl. Mech. Eng.

    (1993)
  • G. Tóth

    The B=0 constraint in shock-capturing magnetohydrodynamics codes

    J. Comput. Phys.

    (2000)
  • G. Tóth et al.

    Comparison of some flux corrected transport and total variation diminishing numerical schemes for hydrodynamic and magnetohydrodynamic problems

    J. Comput. Phys.

    (1996)
  • F. Vilar

    A posteriori correction of high-order discontinuous Galerkin scheme through subcell finite volume formulation and flux reconstruction

    J. Comput. Phys.

    (2019)
  • Cited by (20)

    • Subcell limiting strategies for discontinuous Galerkin spectral element methods

      2022, Computers and Fluids
      Citation Excerpt :

      Although the non-conservative form is necessary to show entropy stability [68], we use the conservative form in this work since it is more convenient to cast in the framework of the present collection of subcell limiting strategies. The Orszag–Tang Vortex is an inviscid 2D MHD case that was originally proposed by Orszag and Tang [71], which is widely used to test the robustness of MHD codes [68,72–74]. The simulation starts from a smooth initial condition, which evolves into complex shock patterns with several shock–shock interactions and transitions to MHD turbulence.

    • An implicit monolithic AFC stabilization method for the CG finite element discretization of the fully-ionized ideal multifluid electromagnetic plasma system

      2022, Journal of Computational Physics
      Citation Excerpt :

      The most common modifications result in a set of purely-hyperbolic equations that are more amenable to fully-explicit or IMEX time discretizations [1,3,30,35,55,83], while others yield a mixed hyperbolic-parabolic or hyperbolic-elliptic structure [22]. An eliminated parabolic divergence cleaning method for CG discretizations has recently been shown to be effective for the solution of ideal MHD equations [41,58]. This approach is leveraged in the current work for the solution of Maxwell's equations using a nodal CG discretization.

    • Monolithic parabolic regularization of the MHD equations and entropy principles

      2022, Computer Methods in Applied Mechanics and Engineering
    • Monolithic convex limiting for continuous finite element discretizations of hyperbolic conservation laws

      2020, Computer Methods in Applied Mechanics and Engineering
      Citation Excerpt :

      The AFC formalism presented in [16,30] provides algebraic interpretations of local extremum diminishing (LED) schemes [31–33] that use artificial diffusion operators and flux limiters to enforce discrete maximum principles. Localized element-based limiting procedures for scalar conservation laws and hyperbolic systems were proposed in [15,17,34–36]. The way in which the limiter is localized in element-based and edge-based FCT schemes of this kind forms the basis of what Guermond et al. [4,27] named convex limiting in the context of second-order invariant domain preserving schemes for hyperbolic systems.

    View all citing articles on Scopus
    View full text