Search arXivSearch

arXiv · 2410.11161

Differentiable Programming for Computational Plasma Physics

Abstract

Differentiable programming allows for derivatives of functions implemented via computer code to be calculated automatically. These derivatives are calculated using automatic differentiation (AD). This thesis explores two applications of differentiable programming to computational plasma physics. First, we consider how differentiable programming can be used to simplify and improve stellarator optimization. We introduce a stellarator coil design code (FOCUSADD) that uses gradient-based optimization to produce stellarator coils with finite build. Because we use reverse mode AD, which can compute gradients of scalar functions with the same computational complexity as the function, FOCUSADD is simple, flexible, and efficient. We then discuss two additional applications of AD in stellarator optimization. Second, we explore how machine learning (ML) can be used to improve or replace the numerical methods used to solve partial differential equations (PDEs), focusing on time-dependent PDEs in fluid mechanics relevant to plasma physics. Differentiable programming allows neural networks and other techniques from ML to be embedded within numerical methods. This is a promising, but relatively new, research area. We focus on two basic questions. First, can we design ML-based PDE solvers that have the same guarantees of conservation, stability, and positivity that standard numerical methods do? The answer is yes; we introduce error-correcting algorithms that preserve invariants of time-dependent PDEs. Second, which types of ML-based solvers work best at solving PDEs? We perform a systematic review of the scientific literature on solving PDEs with ML. Unfortunately we discover two issues, weak baselines and reporting biases, that affect the interpretation reproducibility of a significant majority of published research. We conclude that using ML to solve PDEs is not as promising as we initially believed.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Nick McGreivy. 2024-10-15. Differentiable Programming for Computational Plasma Physics. https://arxiv.org/abs/2410.11161

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

Mechanism of Ionization Avalanche in Tokamak Microwave Gas Breakdown

Microwave breakdown driven by electron cyclotron (EC) waves provides a non-inductive route to plasma initiation in reactor-scale tokamaks. We introduce a three-dimensional Monte Carlo simulation that, for the first time, self-consistently treats nonlinear wave-particle interactions, atomic collisions, and guiding-center transport. The Monte Carlo simulation unveils the key role of parallel Brownian motion in the ionization avalanche mechanism. The predicted breakdown boundary is validated against KSTAR experiments. This work concludes that microwave gas breakdown will be successful under ITER-relevant conditions at a D$_2$ prefill pressure near 2 mPa with 1 MW of injected EC power.

physics.plasm-ph

Augmented reality system for visualising magnetic field topology and charged-particle trajectories in magnetic fusion plasmas

A cost-effective augmented reality (AR) system is presented for visualising three-dimensional magnetic field structures and charged-particle trajectories in magnetically confined fusion plasmas. The system presented in this study integrates an orbit-following simulation code with a marker-based AR framework using a web camera and the OpenCV library. By synchronizing the time step of the simulation with the frame rate of the camera, the trajectories are continuously updated and superimposed in real time onto the camera image. Through the interactive operation of manipulating the web camera, users can observe three-dimensional structures, such as magnetic islands, from various positions and viewing angles. Such an AR environment supports an interactive means of exploring three-dimensional spatial structures that can be difficult to interpret from two-dimensional representations alone. It also provides a common visual representation that can be shared through a display by researchers and students with diverse backgrounds in physics, engineering, and related fields. The developed system has been used in practical exercises at the JT-60SA International Fusion School, with exploratory feedback from students.

physics.plasm-ph

Sensitivity of a low-shear heliotron configuration to localised ferrite-steel perturbations

The influence of ferritic steel on low-shear stellarator/heliotron magnetic configurations is investigated for the Heliotron J device using a point dipole magnetisation model. By numerically evaluating ferritic steel plates assumed at several locations inside the Heliotron J vacuum vessel, the changes in the rotational transform and magnetic island width are shown to be sensitive to the installation location. This location sensitivity arises from the toroidal variation of poloidal mode coupling between the background nonaxisymmetric field and ferritic-steel perturbation, rather than being determined solely by the perturbation amplitude. The resulting mode coupling can enhance the resonant vacuum magnetic perturbation at specific locations. Ferritic steel plates placed on the outer side of a straight section produce the most significant changes in the magnetic topology and exhibit the highest sensitivity to violations of the $M=4$ toroidal periodicity. Additionally, we show that appropriate arrangements of passive magnetic dipoles can reduce the effective helical ripple while preserving the vacuum magnetic well depth in Heliotron J, and can induce a stellarator-asymmetric boundary perturbation in low-field experiments.

physics.plasm-ph