Neural-Parareal dataset JOREK blob runs with RMHD model

S. Pamela, Nicola Carey, J. Brandstetter, R. Akers, Lorenzo Zanisi, John L. Buchanan, Vignesh Gopakumar, M. Hoelzl, G. T. A. Huijsmans, Kamran Pentland, Terry James, Gabriella Antonucci, the Jorek TeamarXiv 2024 · DOI

Abstract

This paper presents Neural-Parareal, a novel framework designed to accelerate high-fidelity Magnetohydrodynamics (MHD) simulations. By integrating Fourier Neural Operators (FNOs) into the Parareal time-parallelization algorithm, the system creates a self-improving "coarse solver" that learns from high-fidelity data generated in-the-loop. Evaluated using the JOREK code on Reduced-MHD (RMHD) blob convection models, the framework demonstrates significant speedup and accuracy improvements over traditional numerical coarse solvers.

Introduction

Designing next-generation fusion reactors like ITER and STEP requires high-fidelity simulations to predict the behavior of hot plasma. These simulations typically rely on non-linear MHD models which are computationally expensive. While spatial parallelization is well-established, parallelizing across time remains a significant challenge because the state of a system at any given moment is intrinsically dependent on its preceding state.

Historically, the Parareal algorithm has addressed this by using a fast, low-accuracy "coarse solver" to provide initial guesses across a timeline, which are then corrected in parallel by a slow, high-accuracy "fine solver." However, the efficiency of Parareal is limited by the accuracy of the coarse solver; if the guess is poor, the algorithm requires too many iterations to converge. Neural-Parareal solves this "coarse solver bottleneck" by replacing static physics models with dynamic neural operators.

Methodology: The AI-in-the-Loop Framework

The core innovation of Neural-Parareal is its self-improving training loop. Unlike traditional surrogate models that require massive pre-existing datasets, this framework harvests data during the simulation itself.

The Neural-Parareal workflow: Dynamic training of neural solvers using data generated during simulation iterations.
  1. The Fine Solver: The framework utilizes JOREK, a state-of-the-art non-linear MHD code, as the ground-truth fine solver.
  2. The Coarse Solver: A Fourier Neural Operator (FNO) serves as the coarse solver. FNOs are ideal for this task as they learn operators of partial differential equations (PDEs) in the frequency domain, making them resolution-independent and highly efficient.
  3. Dynamic Training: The process begins with a small initial dataset to train a baseline FNO. As the Parareal algorithm runs, the fine solver generates high-fidelity "correction" data. This data is fed back into the training pipeline, progressively improving the FNO for subsequent simulation batches.

Simulation Setup and Datasets

The framework was tested on two "blob" convection scenarios simulating plasma filaments in a tokamak's edge using the RMHD model (model-ID "model600"). The simulations track several physical variables: electric potential ($u$), toroidal vorticity ($\\omega$), density ($\\rho$), temperature ($T$), poloidal magnetic flux ($\\psi$), and toroidal current ($zj$).

Time evolution of physical variables in an electromagnetic blob simulation using the Reduced-MHD model.

Data was produced on a 2D slab domain. While JOREK utilized a $200 \\times 200$ bi-cubic finite-element grid, the FNO operated on a downsampled $100 \\times 100$ regular grid. This downsampling, combined with the FNO's architecture, allows the coarse solver to run orders of magnitude faster than the full numerical simulation.

Key Results

  • Accuracy and Convergence: The neural coarse solver consistently outperformed traditional coarse solvers (such as those using increased diffusion). The authors utilized the Structural Similarity Index Measure (SSIM) to evaluate performance, finding it more robust than Mean Squared Error (MSE) for capturing the physical structure of plasma blobs.
  • Self-Improvement: In electromagnetic test cases, the FNO's SSIM improved significantly over four iterations of simulation batches. As the neural solver became more accurate, the number of Parareal iterations required for convergence dropped.
  • Efficiency Gains: The study demonstrated that speedup efficiency—the ratio of actual speedup to theoretical maximum—increased from near-zero to over 80% as the model matured. This indicates a potential time-to-solution acceleration of nearly 20x when utilizing 20 time-windows.

Discussion and Future Work

While Neural-Parareal shows immense promise in 2D slab geometries, several challenges remain for full-scale reactor modeling. Moving to 3D toroidal geometries will require more complex architectures, such as Transformers, to handle increased dimensionality. Additionally, optimizing I/O overhead and implementing "Active Learning" to select the most informative training samples could further enhance the framework's efficiency. By turning the simulation process into a "data factory," Neural-Parareal paves the way for real-time, high-fidelity fusion plasma monitoring and control.

Summary updated

Abstract

Please refer to journal paper from S.J.P.Pamela, titled "Neural-Parareal: Self-improving acceleration of fusion MHD simulations using time-parallelisation and neural operators" Available on ArXiV and on Comp.Phys.Comm.: https://doi.org/10.1016/j.cpc.2024.109391 Data produced by the JOREK code, https://jorek.eu All runs created using the RMHD model, model-ID "model600", with option with_vpar = .false. Data downsampled by saving every 10th timestep, on a regular 2D grid of 100x100. To reproduce full runs, use corresponding input files. Note: variables names are the same as in the JOREK code: u = electric potential omega = toroidal vorticity rho = density T = temperature psi = poloidal magnetic flux zj = toroidal current The create_gif.py can be used to convert data into movies.
BibTeX
@misc{pamela2024neural,
  author = {S. Pamela and Nicola Carey and J. Brandstetter and R. Akers and Lorenzo Zanisi and John L. Buchanan and Vignesh Gopakumar and M. Hoelzl and G. T. A. Huijsmans and Kamran Pentland and Terry James and Gabriella Antonucci and the JOREK Team},
  title = {{Neural-Parareal dataset JOREK blob runs with RMHD model}},
  year = {2024},
  eprint = {2405.01355},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.01355},
}
Figure