SearcharxivSearch

arXiv subjects

Federico Felici

Publications and source records attributed to Federico Felici.

6 recordsLinked to original sources

An Inverse Grad-Shafranov Neural Network Approach to Tokamak Magnetic Control

A new approach to tokamak magnetic control enabling high-precision plasma shaping and novel real-time adaptability is experimentally demonstrated on the Tokamak a Configuration Variable (TCV). The method is motivated by the insight that, under appropriate assumptions, a real-time inverse Grad-Shafranov solver approximates an optimal control policy for plasma boundary regulation. Building on this, a control architecture is developed in which classical controllers enforce operational constraints while a fast surrogate model provides a real-time inverse mapping from the desired plasma boundary to Poloidal Field Coil currents. Experimental results on TCV demonstrate improved plasma shaping with respect to the standard discharge preparation procedure --- albeit without explicit real-time shape feedback --- while enabling flexible response to asynchronous events. It is shown that a single network provides satisfactory performance across a range of plasma magnetic configurations. Real-time adaptivity is demonstrated in simulation, and partially in experiment, through adaptive strike point motion and early termination in response to a real-time trigger. These results suggest a viable path toward magnetic control architectures that reduce reliance on dense diagnostic coverage while maintaining high-accuracy plasma shaping, with potential relevance for future fusion power plant operation.

physics.plasm-ph

TORAX: A Fast and Differentiable Tokamak Transport Simulator in JAX

We present TORAX, a new, open-source, differentiable tokamak core transport simulator implemented in Python using the JAX framework. TORAX solves the coupled equations for ion heat transport, electron heat transport, particle transport, and current diffusion, incorporating modular physics-based and ML models. JAX's just-in-time compilation ensures fast runtimes, while its automatic differentiation capability enables gradient-based optimization workflows and simplifies the use of Jacobian-based PDE solvers. Coupling to ML-surrogates of physics models is greatly facilitated by JAX's intrinsic support for neural network development and inference. TORAX is verified against the established RAPTOR code, demonstrating agreement in simulated plasma profiles. TORAX provides a powerful and versatile tool for accelerating research in tokamak scenario modeling, pulse design, and control.

physics.plasm-ph

FGE: A Fast Free-Boundary Grad-Shafranov Evolutive Solver

Accurate and rapid simulation of the free boundary tokamak plasma equilibrium evolution is essential for modern plasma control, stability analysis, and scenario development. This paper presents the Free-Boundary Grad-Shafranov Evolutive (FGE) code, a highly flexible and control-oriented solver designed to address the challenges posed by advanced plasma configurations across a range of devices. FGE evolved from the FBT and LIUQE codes and is part of the MEQ suite, sharing many of the low-level optimized functions. It self-consistently solves the free-boundary Grad-Shafranov equation coupled with circuit equations for external conductors and models for plasma profile evolution. The code implements a fully non-linear, Newton-based framework with multiple, highly optimized solver options, state representations, and residual formulations that enable rapid computation across different simulation setups. A key capability is the self-consistent integration of various 0D and 1D current diffusion equations (CDEs) to model the resistive evolution of the plasma current profile as well as the ability to model plasmas with multiple magnetic axes (Doublets). Furthermore, FGE allows to linearize the plasma dynamics around a given equilibrium to generate a state-space model suitable for controller design and analysis. Numerical studies are presented demonstrating the code's speed of convergence and validating its performance against experimental data. Furthermore, benchmarks against the RAPTOR and KINX codes for profile evolution and vertical growth rate estimates are presented highlighting FGE's capabilities for both prediction and analysis.

physics.plasm-ph

Towards practical reinforcement learning for tokamak magnetic control

Reinforcement learning (RL) has shown promising results for real-time control systems, including the domain of plasma magnetic control. However, there are still significant drawbacks compared to traditional feedback control approaches for magnetic confinement. In this work, we address key drawbacks of the RL method; achieving higher control accuracy for desired plasma properties, reducing the steady-state error, and decreasing the required time to learn new tasks. We build on top of \cite{degrave2022magnetic}, and present algorithmic improvements to the agent architecture and training procedure. We present simulation results that show up to 65\% improvement in shape accuracy, achieve substantial reduction in the long-term bias of the plasma current, and additionally reduce the training time required to learn new tasks by a factor of 3 or more. We present new experiments using the upgraded RL-based controllers on the TCV tokamak, which validate the simulation results achieved, and point the way towards routinely achieving accurate discharges using the RL approach.

physics.plasm-ph

Fast modeling of turbulent transport in fusion plasmas using neural networks

We present an ultrafast neural network (NN) model, QLKNN, which predicts core tokamak transport heat and particle fluxes. QLKNN is a surrogate model based on a database of 300 million flux calculations of the quasilinear gyrokinetic transport model QuaLiKiz. The database covers a wide range of realistic tokamak core parameters. Physical features such as the existence of a critical gradient for the onset of turbulent transport were integrated into the neural network training methodology. We have coupled QLKNN to the tokamak modelling framework JINTRAC and rapid control-oriented tokamak transport solver RAPTOR. The coupled frameworks are demonstrated and validated through application to three JET shots covering a representative spread of H-mode operating space, predicting turbulent transport of energy and particles in the plasma core. JINTRAC-QLKNN and RAPTOR-QLKNN are able to accurately reproduce JINTRAC-QuaLiKiz T i,e and n e profiles, but 3 to 5 orders of magnitude faster. Simulations which take hours are reduced down to only a few tens of seconds. The discrepancy in the final source-driven predicted profiles between QLKNN and QuaLiKiz is on the order 1%-15%. Also the dynamic behaviour was well captured by QLKNN, with differences of only 4%-10% compared to JINTRAC-QuaLiKiz observed at mid-radius, for a study of density buildup following the L-H transition. Deployment of neural network surrogate models in multi-physics integrated tokamak modelling is a promising route towards enabling accurate and fast tokamak scenario optimization, Uncertainty Quantification, and control applications.

physics.plasm-ph

A mimetic spectral element solver for the Grad-Shafranov equation

In this work we present a robust and accurate arbitrary order solver for the fixed-boundary plasma equilibria in toroidally axisymmetric geometries. To achieve this we apply the mimetic spectral element formulation presented in [56] to the solution of the Grad-Shafranov equation. This approach combines a finite volume discretization with the mixed finite element method. In this way the discrete differential operators ($\nabla$, $\nabla\times$, $\nabla\cdot$) can be represented exactly and metric and all approximation errors are present in the constitutive relations. The result of this formulation is an arbitrary order method even on highly curved meshes. Additionally, the integral of the \reviewerone{toroidal current $J_ϕ$} is exactly equal to the boundary integral of the poloidal field over the plasma boundary. This property can play an important role in the coupling between equilibrium and transport solvers. The proposed solver is tested on a varied set of plasma cross-sections (smooth and with an X-point) and also for a wide range of pressure and \reviewertwo{toroidal magnetic flux profiles}. Equilibria accurate up to machine precision are obtained. Optimal algebraic convergence rates of order $(p+1)$ and geometric convergence rates are shown for Soloviev solutions (including high Shafranov shifts), field-reversed configuration (FRC) solutions and spheromak analytical solutions. The robustness of the method is demonstrated for non-linear test cases, in particular on an equilibrium solution with a pressure pedestal.

physics.plasm-ph