Our mesh generation and adaptation approach uses Cartesian block-structured meshes with hierarchical adaptive refinement in space and time, enabling precise modelling of complex geometries and dynamic plasma features. Unlike conventional field-aligned mesh generation, this method delivers a high-quality mesh from the start—reducing the need for manual fixes and improving computational efficiency.

The challenge
While magnetic flux–aligned coordinates can simplify plasma modelling by aligning the computational grid with magnetic field lines, they pose significant challenges for mesh generation. Such meshes have limited geometric flexibility, become problematic near the plasma edge, and are difficult to integrate with non-aligned components such as the first wall or divertor structures.
The research
For this work, block-structured Cartesian grids are preferred because:
- They enable quick and easy mesh generation.
- They are well-suited for adaptive mesh refinement (AMR) techniques and multigrid methods
which serve as a scale-bridging algorithm. - They can be used for complex geometries and irregularly shaped boundaries.
- Their uniform configuration allows for optimised data structuring and storage and
simplifies parallelisation resulting in efficient algorithms. - They massively simplify numerical algorithms and enable the use of well-established
numerical methods, providing a well-tested and robust framework.
Although this spatial discretisation does not explicitly exploit the problem’s symmetry, it enables the use of AMR. AMR provides high resolution where needed, effectively capturing anisotropic dynamics and disparate length scales. Our approach employs hierarchical refinement both in space and time.
Work in progress

Figure 1: Numerical solution for (Bx2 + By2) /Bz for the Kelvin-Helmholtz instability in a large domain at t = 5 (left) and t = 8 (right). Results are obtained with the HLLD scheme with MUSCL-Hancock extension, 3 levels of AMR, and the CT method for divergence control.

Figure 2: Time-evolution of the average magnetic pressure across the entire computational domain for the ideal MHD Kelvin-Helmholtz instability in a large domain, comparing various uni- and multi-grid setups.

Figure 3: Numerical results for the MHD rotor test within a perfectly conducting circular wall at t = 1. Two-dimensional fields for density and the multi-level mesh are shown, along with a 1D pressure profile along (x, y) = (0, 0.5) → (1, 0.5) comparing different GFM and divergence control methods. The left panels use constrained transport, while the right panels use mixed hyperbolic–parabolic divergence cleaning.

Figure 4: Numerical results for the axisymmetric MHD rotor test inside a perfectly conducting ST40 vessel at various times. Solutions are shown for density. The left half of each panel depicts a slice along the z = 0 plane of the fully three-dimensional solution, whereas the right half depicts results from the two-dimensional simulation with radial source terms.