Searcharxiv⌕ Search

arXiv subjects

Matthias Hoelzl

Publications and source records attributed to Matthias Hoelzl.

At least 19 recordsLinked to original sources

Heterogeneous Acceleration of TRIMEG++ code using OpenMP for Gyrokinetic Simulations

Turbulent transport largely determines the performance of magnetic-confinement fusion devices such as tokamaks, and gyrokinetic particle-in-cell (PIC) simulations are a principal tool to predict it. Advancing up to hundreds of millions of markers and solving large sparse field systems at every time step makes whole-device simulations among the most expensive in plasma physics. GPUs can accelerate this workload, but porting a complex code requires restructuring its parallelism and memory traffic, ideally without a separate version per vendor. In this work, the gyrokinetic code TRIMEG-C1, whose unstructured triangular mesh and high-order finite elements cover both the confined core and the open-field-line edge of the plasma, is rewritten in C++ as TRIMEG++ and fully offloaded to GPUs with OpenMP target directives, so that one portable code base runs on both AMD and NVIDIA hardware. The particle-to-grid projection is offloaded in its standard and field-aligned formulations, the PETSc-based field solver runs on the GPU through the library's backends, and, together with the previously offloaded particle pusher, every stage whose cost scales with the marker count runs on the GPU. All speedups are node-to-node comparisons against a 256-core CPU node (2x AMD EPYC 9754). On the TCV-X21 tokamak reference case, the offloaded kernels reproduce the CPU results to a relative accuracy of 1e-11, and the full simulation runs 4.1-6.1x faster on a node with two AMD MI300A and 2.1-3.0x faster on a node with four NVIDIA A100, with the speedup growing with problem size. The MI300A, with shared CPU-GPU memory, needs no explicit data transfers, whereas the A100 needs them managed by hand. These results show that directive-based offloading can accelerate a complex gyrokinetic code across GPU vendors, making whole-volume tokamak simulations with hundreds of millions of markers practical on a single GPU node.

physics.plasm-ph↗

Implementation and verification of the avalanche source in a 3D full-f particle-in-cell model of relativistic electrons for studies of tokamak disruptions

Tokamak disruptions may lead to the acceleration of some electrons to relativistic energies. These so-called runaway electrons (REs) can multiply exponentially via knock-on collisions with thermal electrons. As the resulting RE avalanche is exponentially sensitive to the pre-disruption plasma current, multi-MA RE beams may form in large future devices, risking severe localized wall damage. In this work, an energy and momentum conserving knock-on collision operator is implemented in the 3D nonlinear MHD code JOREK for the full-f relativistic hybrid fluid-kinetic model that describes the REs using the particle-in-cell (PiC) approach both for full-orbit and drift-kinetic markers, which will enable accurate modeling of the RE phase-space dynamics in realistic 3D electromagnetic fields. Such a self-consistent treatment of the RE avalanche and competing losses in the stochastic fields of MHD-active plasmas is required to further the understanding of RE transport and phase-space dynamics in self-consistent interaction with the 3D plasma evolution, which is needed for developing reliable predictions as well as reliable mitigation methods. To make such novel high-fidelity simulations computationally viable, a resampling technique was also implemented to restrict the number of markers. The avalanche model is verified using analytical expressions from literature and applied to a JET-like termination scenario, demonstrating its applicability to realistic 3D MHD active scenarios. Future work on porting to accelerated high-performance computing systems will be needed to cross the long time scales involved, e.g., in periodic termination and re-avalanching that could occur in large devices like ITER.

physics.plasm-ph↗

FIREWALL: A surrogate model for the rapid assessment of tokamak wall loading and melting by runaway electrons

Runaway electron (RE) beams generated during tokamak disruptions can deposit highly localized heat loads on plasma-facing components, posing a serious risk of melting and damage. Monte Carlo particle transport simulations coupled with three-dimensional thermomechanical response modeling can quantify this damage but are too computationally demanding for device-scale assessments and extensive scenario scans. We present FIREWALL (Fast Integrated Runaway Electron WALL loads), a surrogate model that combines a database of \textsc{Geant4} volumetric energy-deposition profiles with a one-dimensional heat-diffusion solver for each wall element. FIREWALL retains the energy and incident angle distributions of impacting REs and predicts the spatiotemporal temperature evolution of detailed three-dimensional wall geometries up to the melting threshold. FIREWALL thus provides a fast physics-based framework for translating global RE simulations into global wall melting predictions, enabling large-scale screening of disruption scenarios while directing high-fidelity costly workflows to the limited wall regions where they are actually required.

physics.plasm-ph↗

Reduced kinetic modelling of shattered pellet injection in ASDEX Upgrade

Plasma-terminating disruptions represent a critical outstanding issue for reactor-relevant tokamaks. ITER will use shattered pellet injection (SPI) as its disruption mitigation system to reduce heat loads, vessel forces, and to suppress the formation of runaway electrons. In this paper we demonstrate that reduced kinetic modelling of SPI is capable of capturing the major experimental trends in ASDEX Upgrade SPI experiments, such as dependence of the radiated energy fraction on neon content, or the current quench dynamics. Simulations are also consistent with the experimental observation of no runaway electron generation with neon and mixed deuterium-neon pellet composition. We also show that statistical variations in the fragmentation process only have a notable impact on disruption dynamics at intermediate neon doping, as was observed in experiments.

physics.plasm-ph↗

Hybrid Kinetic-MHD Simulations of Drift-Orbit Effects on the Stability and Non-Linear Dynamics of Runaway Electron Beams

During tokamak disruptions, the Ohmic current may be replaced by a non-inductive runaway electron (RE) current, affecting resistive stability. Previous studies suggest that, in the linear phase, the presence of REs acts destabilizing for tearing modes (TM) compared to a scenario with Ohmic current. In the non-linear regime, this translates to larger saturation amplitudes. These results are based on the assumption of zero drift-orbit deviation from the magnetic flux surfaces corresponding to the low-energy limit. This work investigates the importance of this kinetic effect by studying the linear and non-linear TM dynamics in RE beams with different RE energies, providing a clear picture of finite-orbit-width (FOW) effects. We use a hybrid fluid-kinetic model in the 3D non-linear magnetohydrodynamic (MHD) code JOREK, treating REs kinetically with a full-f Monte Carlo approach in self-consistent interaction with the MHD mode dynamics. The study shows that the presence of REs modifies the characteristics of the instability in several ways. First, we find that the major-radial displacement of drift orbits from flux surfaces induces an $m=1$ perturbation to the equilibrium current, introducing additional mode coupling between $(m,n)$ instabilities and the $(m\pm1,n)$ sidebands. Second, we find that increasing RE energy has a stabilizing effect on the MHD modes because REs cannot support narrow current sheets on rational flux surfaces owing to the drift-orbit displacement. This counteracts the destabilizing effect that REs have on TMs in the low-energy limit. For the scenario investigated, the stabilizing effect dominates over the additional mode coupling, reducing the development of stochastic magnetic regions with increasing RE energy and thereby lowering radial particle transport. Overall, we find that FOW effects can substantially alter the MHD stability and non-linear dynamics of RE beams.

physics.plasm-ph↗

Mechanism Behind the Recombination Requirement for Benign Termination of Relativistic Electron Beams

We present a first-principles explanation of the recombination requirement for benign termination of relativistic electron (RE) beams in tokamaks. Kinetic modeling including neutrals shows that the injection of neutrals over a finite quantity window, together with recombination, increases bulk resistivity. Nonlinear MHD simulations using the JOREK code demonstrate that this preferentially amplifies edge tearing modes, producing a more stochastic edge magnetic field during RE deconfinement, resulting in a larger RE wetted area. We identify resistivity, not the free electron density, to govern access to benign termination. This provides the first broadly applicable and experimentally consistent picture of the MHD mechanisms behind the benign scenario, critical to its extrapolation to next-step devices.

physics.plasm-ph↗

OpenMP GPU Acceleration and Portability of TRIMEG-C1 for Electromagnetic Gyrokinetic Simulations in Tokamak Plasmas

The Triangular mesh-based gyrokinetic code TRIMEG-C1 solves the gyrokinetic equations using the particle-in-cell scheme to simulate electromagnetic instabilities in tokamak plasmas. TRIMEG-C1 utilizes a high-order C1 finite element method, which captures the accurate physics with lower grid resolution than the C0 method. In this work, we focus on achieving a portable implementation on multiple graphics processing unit (GPU) architectures to accelerate the TRIMEG-C1 code for future physics studies. The OpenMP framework is chosen as the acceleration framework for GPU offloading on different hardware platforms, specifically, NVIDIA and AMD GPUs. The particle pushing procedure, as well as particle-to-grid operations have been adapted for GPU execution. A speedup of $\approx9$ for the particle pusher kernel is achieved on 2 AMD MI300A APUs (Accelerated Processing Unit) compared with 2 AMD 9754 CPUs. In addition, the efficiency of hybrid MPI-OpenMP offloading parallelization was assessed by oversubscribing GPU resources. The Ion Temperature Gradient (ITG) mode was simulated using the GPU implementation, and its correctness was verified by comparing the physics results in terms of the energy growth rate and the two-dimensional mode structures.

physics.plasm-ph↗

Gyrokinetic global simulation of Alfvenic ion temperature gradient mode in reversed magnetic shear

In this work, a systematic study of electromagnetic instabilities driven by the temperature gradient in magnetically confined fusion plasmas with reversed magnetic shear is conducted using gyrokinetic particle-in-cell simulations. An electromagnetic instability arising in the low-beta regime is investigated, where beta=8*pi*nT/B^2 denotes the ratio of plasma pressure to magnetic pressure. Within a reversed shear safety factor (q) profile, when a mode rational surface coincides with the position of zero shear, an instability dominated by only one poloidal harmonic emerges, rather than the conventional ion-temperature-gradient (ITG) mode. Simulation results demonstrate that the instability exhibits pronounced electromagnetic polarization even in the low-beta regime, with a real frequency significantly higher than that of ITG modes, and show that it is destabilized by the temperature gradient and not by the density gradient. This instability can be observed even for a monotonic q profile with weak magnetic shear. Based on a systematic comparison with other typical electrostatic and electromagnetic instabilities, this instability is identified as a weak shear Alfvenic-ion-temperature-gradient (WSAITG) mode, which may provide an explanation for the low-frequency Alfven modes (LFAM) observed in experiments. Wave-particle resonance analysis in phase space reveals that, in contrast to the ITG mode, well-passing particles provide an additional resonant population that drives the WSAITG mode.

physics.plasm-ph↗

A High-order piecewise field-aligned triangular finite element method for electromagnetic gyrokinetic particle simulations of tokamak plasmas with open field lines

A high-order piecewise field-aligned triangular finite element method is developed and implemented for global electromagnetic gyrokinetic particle-in-cell simulations of tokamak plasmas with open field lines. The approach combines locally field-aligned finite element basis functions with unstructured $C^{1}$ triangular meshes in cylindrical coordinates, enabling whole-volume simulations with substantially reduced computational effort, while avoiding the grid distortion associated with globally field-aligned coordinates and the associated singularity at the separatrix of diverted plasmas. The formulation is compatible with both $δf$ and full-$f$ models and employs mixed-variable representations, along with a generalized pullback scheme, to control numerical cancellation in electromagnetic simulations. The method is implemented in the TRIMEG-C1 code and demonstrated using linear and nonlinear electromagnetic simulations of the TCV-X21 configuration. The results indicate that the approach accurately captures the key features of electromagnetic ion-temperature-gradient and kinetic ballooning mode physics, including the separatrix regions in the simulation, thereby providing a robust framework for whole-volume electromagnetic gyrokinetic simulations in realistic tokamak geometries.

physics.plasm-ph↗

Generalized mixed variable-pullback scheme with non-ideal Ohm's law for electromagnetic gyrokinetic simulations

In this work, the non-ideal Ohm's law is integrated in the mixed variable-pullback scheme for the gyrokinetic particle simulations. This scheme captures the evolution of the symplectic solution of the gyrokinetic model accurately not only in the MHD limit but also in the electrostatic limit. This scheme also provides a pure symplectic ($v_\shortparallel $) scheme for electromagnetic gyrokinetic particle simulations without causing the traditional cancellation problem in the pure Hamiltonian scheme. Various mixed variable schemes have been comprehensively analyzed for the 1D shear Alfvèn wave problem with kinetic electrons, with the connection to the traditional pure Hamiltonian scheme and the symplectic scheme. It is demonstrated that the pure $v_\shortparallel $ form with the non-ideal Ohm's law has comparable performance to the widely used mixed variable-pullback scheme with the ideal Ohm's law. The mixed variable-pullback scheme without Ohm's law is also proposed as a feasible improvement of the traditional pure Hamiltonian scheme with minimum modification and considerable performance improvement in terms of a marker number reduction.

physics.plasm-ph↗

TRIMEG-GKX: an electromagnetic gyrokinetic particle code with a Piecewise Field-Aligned Finite Element Method for Micro- and Macro-Instability Studies in Tokamak Core Plasmas

The features of the TRIMEG-GKX code are described with emphasis on the exploration using novel/different schemes compared to other gyrokinetic codes, particularly the use of object-oriented programming, filter/buffer-free treatment, and a high-order piecewise field-aligned finite element method. The TRIMEG-GKX code solves the electromagnetic gyrokinetic equation using the particle-in-cell scheme, taking into account multi-species effects and shear Alfvén physics. The mixed-variable/pullback scheme has been implemented to enable electromagnetic studies. This code is parallelized using particle decomposition and domain cloning among computing nodes, replacing traditional domain decomposition techniques. The applications to study the micro- and macro-instabilities are demonstrated, including the energetic-particle-driven Alfvén eigenmode, ion temperature gradient mode, and kinetic ballooning mode. Good performance is achieved in both ad hoc and experimentally reconstructed equilibria, such as those of the ASDEX Upgrade (AUG), Tokamak à configuration variable (TCV), and the Joint European Torus (JET). Future studies of edge physics using the high-order $C^1$ finite element method for triangular meshes in the TRIMEG-C1 code will be built upon the same numerical methods.

physics.plasm-ph↗

Self-consistent full MHD coupling of JOREK and STARWALL for advanced plasma free boundary simulation

An adequate modelling of the electromagnetic interaction of the plasma with the surrounding conductors is paramount for the correct reproduction of 3D plasma dynamics. Simulations of the latter provide in turn useful predictions regarding the plasma evolution, the related MHD modes leading to disruptions and the electromagnetic forces acting on the vacuum vessel's components when said disruptions occur. The latest modelling efforts with the 3D FEM non-linear JOREK code have been directed towards the eddy current coupling of a reduced magnetohydrodynamic (MHD) plasma model with thin and volumetric wall codes (STARWALL and CARIDDI). In this contribution, we present an eddy current coupling between the full MHD model of JOREK and the STARWALL code; this new coupling scheme describes the full three-dimensional interactions of the plasma with the vacuum region and external conductors, modeled by natural boundary conditions linking the magnetic vector potential $\mathbf{A}$ to the magnetic field $\mathbf{B}$. The consistency of the new coupling scheme is validated via benchmarks for axisymmetric Vertical Displacement Events and multi-harmonics simulations of MHD modes.

physics.plasm-ph↗

Piecewise Field-Aligned Finite Element Method for Multi-Mode Nonlinear Particle Simulations in tokamak plasmas

This paper presents a novel approach for simulating plasma instabilities in tokamak plasmas using the piecewise field-aligned finite element method in combination with the particle-in-cell method. Our method traditionally aligns the computational grid but defines the basis functions in piecewise field-aligned coordinates to avoid grid deformation while naturally representing the field-aligned mode structures. This scheme is formulated and implemented numerically. It also applied to the unstructured triangular meshes in principle. We have conducted linear benchmark tests, which agree well with previous results and traditional schemes. Furthermore, multiple-$n$ simulations are also carried out as a proof of principle, demonstrating the efficiency of this scheme in nonlinear turbulence simulations within the framework of the finite element method.

physics.plasm-ph↗

Gyrokinetic Electromagnetic Particle Simulations in Triangular Meshes with C1 Finite Elements

The triangular mesh-based gyrokinetic scheme enables comprehensive axis-to-edge studies across the entire plasma volume. Our approach employs triangular finite elements with first-derivative continuity (C1), building on previous work to facilitate gyrokinetic simulations. Additionally, we have adopted the mixed variable/pullback scheme for gyrokinetic electromagnetic particle simulations. The filter-free treatment in the poloidal cross-section with triangular meshes introduces unique features and challenges compared to previous treatments using structured meshes. Our implementation has been validated through benchmarks using ITPA-TAE (Toroidicity-induced Alfvén Eigenmode) parameters, showing its capability in moderate to small electron skin depth regimes. Additional examinations using experimental parameters confirm its applicability to realistic plasma conditions.

physics.plasm-ph↗

Implementation of matrix compression in the coupling of JOREK to realistic 3D conducting wall structures

JOREK is an advanced non-linear simulation code for studying MHD instabilities in magnetically confined fusion plasmas and their control and/or mitigation. A free-boundary and resistive wall extension was introduced via coupling to the STARWALL and CARIDDI codes, both able to provide dense response matrices describing the electromagnetic interactions between plasma and conducting structures. For detailed CAD representations of the conducting structures and high resolutions for the plasma region, memory and computing time limitations restrict the possibility of simulating the ITER tokamak. In the present work, the Singular Value Decomposition provided by routines from the ScaLAPACK library has been successfully applied to compress some of the dense response matrices and thus optimize memory usage. This is demonstrated for simulations of Tearing Mode and Vertical Displacement Event instabilities. An outlook to future applications on large production cases and further extensions of the method are discussed.

physics.plasm-ph↗

Understanding Large-Scale Plasma Simulation Challenges for Fusion Energy on Supercomputers

Understanding plasma instabilities is essential for achieving sustainable fusion energy, with large-scale plasma simulations playing a crucial role in both the design and development of next-generation fusion energy devices and the modelling of industrial plasmas. To achieve sustainable fusion energy, it is essential to accurately model and predict plasma behavior under extreme conditions, requiring sophisticated simulation codes capable of capturing the complex interaction between plasma dynamics, magnetic fields, and material surfaces. In this work, we conduct a comprehensive HPC analysis of two prominent plasma simulation codes, BIT1 and JOREK, to advance understanding of plasma behavior in fusion energy applications. Our focus is on evaluating JOREK's computational efficiency and scalability for simulating non-linear MHD phenomena in tokamak fusion devices. The motivation behind this work stems from the urgent need to advance our understanding of plasma instabilities in magnetically confined fusion devices. Enhancing JOREK's performance on supercomputers improves fusion plasma code predictability, enabling more accurate modelling and faster optimization of fusion designs, thereby contributing to sustainable fusion energy. In prior studies, we analysed BIT1, a massively parallel Particle-in-Cell (PIC) code for studying plasma-material interactions in fusion devices. Our investigations into BIT1's computational requirements and scalability on advanced supercomputing architectures yielded valuable insights. Through detailed profiling and performance analysis, we have identified the primary bottlenecks and implemented optimization strategies, significantly enhancing parallel performance. This previous work serves as a foundation for our present endeavours.

physics.plasm-ph↗

RMP screening in JOREK-CARIDDI

Edge localized modes (ELMs) are instabilities at the tokamak edge that can have short outbursts of highly energetic particles and heat, which can severely damage the walls of a plasma reactor. Resonant magnetic perturbations (RMPs) are used to mitigate or eliminate ELMs from the plasma. One effect that can reduce the intensity of the RMP is screening, which is caused by eddy currents in conducting structures or a plasma that are induced by a time-varying magnetic field. The eddy current code CARIDDI was recently coupled with the magnetohydrodynamics (MHD) code JOREK, and is able to capture the behavior of volumetric conducting structures that surround a plasma. The objective of this study is to characterize screening behavior in the JOREK-CARIDDI coupling. The analysis is divided in three parts. First, CARIDDI results are benchmarked against results from STARWALL, another JOREK extension that captures interactions of (two-dimensional) conducting structures. It is found that CARIDDI and STARWALL show good agreement, with slight variations. The second part covers the screening of time-varying RMP fields by conducting structures, oscillating at frequencies from 3 Hz to 10 kHz. The overall trends in screening behavior align qualitatively with findings from a previous analysis. However, an additional contribution to the screening at frequencies above 1 kHz was not observed, because the simulation in this report does not include screening by the RMP coil casing. Finally, a few tests were performed using a plasma configuration, to study the effect of plasma screening, including realistic plasma background flows. The results demonstrated the induction of eddy currents at rational surfaces within the plasma. These results contribute to an improved understanding of the screening of RMP fields, which is relevant for several applications to the operation of fusion reactors.

physics.plasm-ph↗

Nonlinear MHD modeling of soft $β$ limits in W7-AS

An important question for the outlook of stellarator reactors is their robustness against pressure driven modes, and the underlying mechanism behind experimentally observed soft $β$ limits. Towards building a robust answer to these questions, simulation studies are presented using a recently derived reduced nonlinear MHD model. First, the initial model implementation is extended to capture fluid compression by including the influence of parallel flows. Linear benchmarks of a (2, 1) tearing mode in W7-AS geometry, and interchange modes in a finite $β$, net-zero current carrying stellarator with low magnetic shear are then used to demonstrate the modeling capabilities. Finally, a validation study is conducted on experimental reconstructions of finite $β$ W7-AS discharges. In agreement with past experimental analysis, it is shown that (i) the MHD activity is resistive, (ii) a soft $β$ limit is observed, when the plasma resistivity approaches the estimated experimental value, and (iii) low $n$ MHD activity is observed at intermediate $β$ values, particularly a nonlinearly dominant (2, 1) mode. The MHD activity is mild, explaining the soft $β$ limit, because the plasma volume remains separated into distinct sub-volumes in which field lines are ergodically confined. For the assumed transport parameters, the enhanced perpendicular transport along stochastic magnetic field lines can be overcome with the experimental heating power. The limitations in the current modeling are described, alongside an outlook for characterising soft $β$ limits in more detail in future work.

physics.plasm-ph↗