Monolithic Multigrid for Magnetohydrodynamics

J. H. Adler, Thomas R. Benson, Eric C. Cyr, Patrick E. Farrell, Scott P. MacLachlan, Ray S. TuminaroarXiv 2020

TL;DR

This paper introduces novel monolithic multigrid preconditioners for solving the complex, coupled equations of magnetohydrodynamics (MHD). By extending Vanka relaxation schemes, they achieve efficient and scalable solutions for problems with millions of degrees of freedom, paving the way for more accurate plasma simulations.

What Problem Does This Paper Address?

Magnetohydrodynamics (MHD) is crucial for understanding phenomena like fusion plasmas, astrophysical jets, and geophysics. The governing equations are a system of highly nonlinear, coupled partial differential equations that describe the interaction between fluid dynamics and electromagnetic fields. When these equations are discretized and linearized for numerical solution, they result in large, challenging linear systems. The strong coupling between fluid variables (velocity, pressure) and electromagnetic variables (magnetic field) makes these systems difficult to solve efficiently, especially for large-scale problems with varying temporal and spatial scales. Traditional methods often struggle with stability and computational cost. This paper aims to develop more effective and scalable solvers for these challenging MHD systems.

Methods

The core of this work lies in developing new monolithic multigrid preconditioners. Instead of treating the fluid and electromagnetic parts of the system separately, a monolithic approach tackles the entire coupled system at once. The authors discretize the MHD equations using a mixed finite element method and then linearize them using Newton's method, leading to a saddle-point-type linear system.

The key innovation is the extension of Vanka relaxation schemes to this MHD system. Vanka relaxation is a technique used in multigrid methods to smooth out errors. The authors propose three new variants:

  • Segregated Vanka: This approach treats the fluid and electromagnetic subproblems separately, applying Vanka relaxation to the fluid part and an adapted Arnold-Falk-Winther (AFW) relaxation to the electromagnetic part. It's the simplest but neglects coupling.
  • Purist Vanka: This method attempts to retain coupling by defining Vanka blocks based on the sparsity pattern of the constraint matrix, but faces challenges with singularity and leads to complex block constructions.
  • Coupled Vanka: This is the most sophisticated approach. It leverages the fact that both pressure and the Lagrange multiplier (used to enforce the divergence-free constraint on the magnetic field) are discretized in the same finite element space. It constructs Vanka blocks that include both constraint DoFs and their neighboring fluid/electromagnetic DoFs, effectively capturing the crucial coupling between the two physics.

These Vanka variants are used as relaxation schemes within a monolithic multigrid framework. The multigrid method uses a hierarchy of meshes to accelerate convergence, and the Vanka relaxation is crucial for efficiently smoothing errors on each level.

Datasets

Not discussed in the paper. The paper focuses on developing and testing numerical methods for MHD problems, using established test cases rather than training on specific datasets.

Key Insights and Ideas

  • Monolithic approach is key for coupling: The strong coupling between fluid and electromagnetic fields in MHD is a major computational hurdle. Monolithic multigrid, by treating the system as a whole, is essential for effectively handling this coupling, unlike segregated approaches.
  • Vanka relaxation can be extended: The Vanka relaxation scheme, traditionally used for fluid dynamics, can be successfully adapted and extended to the more complex MHD system, even with multiple constraint variables.
  • Coupled Vanka offers the best balance: The "coupled Vanka" relaxation scheme, which explicitly incorporates the coupling between fluid and magnetic field variables in its block construction, demonstrates superior performance and scalability compared to segregated or purist approaches.
  • Coarse grid resolution matters for challenging problems: For problems with high Reynolds numbers (both fluid and magnetic), the quality of the coarsest grid in the multigrid hierarchy significantly impacts the overall solver's ability to converge, especially when using continuation methods.
  • Continuation is vital for high-parameter regimes: To solve MHD problems with very large physical parameters (like Hartmann numbers), a continuation strategy (solving at low parameters first and using that solution as an initial guess for higher parameters) is necessary, as direct Newton solves often fail.

Key Results

The paper demonstrates the effectiveness of the proposed monolithic multigrid preconditioners, particularly the coupled Vanka scheme, on several test problems:

  • Hartmann Flow (2D): The coupled Vanka scheme consistently achieved the lowest iteration counts and solution times across various Reynolds and magnetic Reynolds numbers, showing near-perfect scalability with mesh size. It also required significantly less memory than the purist Vanka approach.
  • Island Coalescence (2D, time-dependent): For this problem, the coupled Vanka scheme achieved very low linear solver iteration counts per time step, often requiring only one or two Newton steps for convergence. This highlights the efficiency of the method for time-dependent simulations.
  • MHD Generator (3D, steady-state): The coupled Vanka scheme showed robust performance for this 3D problem, with iteration counts that scaled reasonably well with problem size and resolution. The paper notes that for the largest problem sizes, the performance was compromised by the poor resolution of the coarsest mesh in the multigrid hierarchy.

The methods were applied to problems with up to 170 million degrees of freedom and demonstrated effectiveness for fluid and magnetic Reynolds numbers up to 20,000.

Limitations and Future Work

  • Discretization Order and Stabilization: The authors acknowledge that the finite element discretization used has a low order and lacks stabilization for advective terms. This can lead to convergence issues, especially at high Reynolds numbers. Future work will focus on extending these methods to higher-order discretizations and incorporating stabilization techniques.
  • Coarsest Grid Resolution: For challenging problems with high physical parameters, the resolution of the coarsest grid in the multigrid hierarchy is critical. The current approach of cutting hexahedra into tetrahedra and then uniformly refining can lead to different multigrid solver behaviors for the same finest grid size.
  • More Detailed Plasma Models: The current work focuses on the viscoresistive, incompressible MHD model. Future research could explore extending these monolithic multigrid approaches to more complex and detailed plasma models, such as those involving multiple fluids or kinetic effects.
  • Comparison with Other Preconditioners: While the paper compares its methods to direct solves and highlights the benefits of multigrid, further comparisons with other advanced preconditioners for MHD systems could be valuable.

Summary updated

BibTeX
@misc{adler2020monolithic,
  author = {J. H. Adler and Thomas R. Benson and Eric C. Cyr and Patrick E. Farrell and Scott P. MacLachlan and Ray S. Tuminaro},
  title = {{Monolithic Multigrid for Magnetohydrodynamics}},
  year = {2020},
  eprint = {2006.15700},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.15700},
}
Figure