Hostname: page-component-74656f9884-6grmk Total loading time: 0 Render date: 2026-11-05T12:55:38.850Z Has data issue: false hasContentIssue false

A structure-preserving finite element method for compressible ideal and resistive magnetohydrodynamics

Published online by Cambridge University Press:  17 September 2021

Evan S. Gawlik
Affiliation:
Department of Mathematics, University of Hawai‘i at Mānoa
François Gay-Balmaz*
Affiliation:
CNRS - LMD, Ecole Normale Supérieure, Paris
*
†Email address for correspondence: francois.gay-balmaz@lmd.ens.fr
Rights & Permissions [Opens in a new window]

Abstract

We construct a structure-preserving finite element method and time-stepping scheme for compressible barotropic magnetohydrodynamics both in the ideal and resistive cases, and in the presence of viscosity. The method is deduced from the geometric variational formulation of the equations. It preserves the balance laws governing the evolution of total energy and magnetic helicity, and preserves mass and the constraint $\text {div}B = 0$ to machine precision, both at the spatially and temporally discrete levels. In particular, conservation of energy and magnetic helicity hold at the discrete levels in the ideal case. It is observed that cross-helicity is well conserved in our simulation in the ideal case.

Information

Type
Research Article
Copyright
Copyright © The Author(s), 2021. Published by Cambridge University Press
Figure 0

Figure 1. Evolution of mass, energy, cross-helicity, $\|{\rm div} B\|_{L^2(\varOmega )}$ and magnetic helicity during a simulation in three dimensions. The absolute deviations $|F(t)-F(0)|$ are plotted for each such quantity $F(t)$.

Figure 1

Figure 2. Contours of the mass density at $t=0,1,2,3,4,5$ when $B_0=0.2$.

Figure 2

Figure 3. Contours of the mass density at $t=0,1,2,3,4,5$ when $B_0=0.4$.

Figure 3

Figure 4. Contours of the mass density at $t=0,1,2,3,4,5$ when $B_0=0.6$.

Figure 4

Figure 5. Contours of the mass density at $t=0,1,2,3,4,5$ when $B_0=0.8$.

Figure 5

Figure 6. Evolution of mass, energy, cross-helicity and $\|{\rm div} B\|_{L^2(\varOmega )}$ during simulations of the magnetic Rayleigh–Taylor instability with $B_0=0.2,0.4,0.6,0.8$. The absolute deviations $|F(t)-F(0)|$ are plotted for each such quantity $F(t)$.