Structure-Preserving Transfer of Grad-Shafranov Equilibria to Magnetohydrodynamic Solvers
Rushan Zhang, Golo Wimmer, Qi Tang
TL;DR
This work tackles the problem of transferring axisymmetric Grad–Shafranov equilibria to 3D MHD solvers while preserving force balance and the divergence-free condition. It develops a structure-preserving transfer using compatible finite element spaces that form a discrete de Rham complex, enabling consistent loading of Ψ and f from the GS solver into B_p, B_t, J_p, and J_t for the MHD solver. The study identifies three key error sources—discretization incompatibility, mesh misalignment, and under-resolved separatrix gradients—and demonstrates through MFEM-based experiments that alignment and refinement, together with compatible element choices, minimize equilibrium perturbations. The findings provide practical guidance for initializing MHD simulations in fusion contexts and suggest future work on fully curl-conforming representations to further improve divergence preservation and force balance.
Abstract
Magnetohydrodynamic (MHD) solvers used to study dynamic plasmas for magnetic confinement fusion typically rely on initial conditions that describe force balance, which are provided by an equilibrium solver based on the Grad-Shafranov (GS) equation. Transferring such equilibria from the GS discretization to the MHD discretization often introduces errors that lead to unwanted perturbations to the equilibria on the level of the MHD discretization. In this work, we identify and analyze sources of such errors in the context of finite element methods, with a focus on the force balance and divergence-free properties of the loaded equilibria. In particular, we reveal three main sources of errors: (1) the improper choice of finite element spaces in the MHD scheme relative to the poloidal flux and toroidal field function spaces in the GS scheme, (2) the misalignment of the meshes from two solvers, and (3) possibly under-resolved strong gradients near the separatrix. With this in mind, we study the impact of different choices of finite element spaces, including those based on compatible finite elements. In addition, we also investigate the impact of mesh misalignment and propose to conduct mesh refinement to resolve the strong gradients near the separatrix. Numerical experiments are conducted to demonstrate equilibria errors arising in the transferred initial conditions. Results show that force balance is best preserved when structure-preserving finite element spaces are used and when the MHD and GS meshes are both aligned and refined. Given that the poloidal flux is often computed in continuous Galerkin spaces, we further demonstrate that projecting the magnetic field into divergence-conforming spaces is optimal for preserving force balance, while projection into curl-conforming spaces, although less optimal for force balance, weakly preserves the divergence-free property.
