FREEGSNKE: A PURE-PYTHON EVOLUTIVE EQUILIBRIUM CODE FOR TOKAMAK PLASMAS

We present FreeGSNKE, a pure-Python, open-source, finite-difference simulation code for the two-dimensional dynamic plasma equilibrium problem. It builds on FreeGS, introducing i) a static Grad-Shafranov solver, based on the Newton-Krylov (NK) method; ii) solvers for the evolutive problem, also based on the NK method. Both solvers have been validated against MAST-U equilibria: the static solver against equilibria from Fiesta and EFIT++ and the evolutive solver against measured poloidal field coil currents and plasma shape targets. FreeGSNKE is currently being used at MAST-U to support modelling strongly shaped plasmas and has been released (https://github.com/FusionComputingLab/freegsnke) under the GNU Lesser General Public License version 3. One aim of FreeGSNKE is to lower the entry barrier for those seeking to deploy machine-learning-based approaches for plasma control. Entirely written in Python, it can seamlessly integrate with established machine-learning libraries and algorithms, overcoming the need for cross-language binders or socket interfaces for multi-language interaction. For the same reasons, FreeGSNKE is a stateful code, which is advantageous in control, design, and reinforcement learning studies. Directions of development currently being pursued include compatibility with IMAS structures, JAX-ification of the core solvers to enable auto-differentiability, implementation of the current diffusion equation, and coupling with transport solvers.

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2025-03-19
DOI
https://doi.org/10.5281/zenodo.15053862
Primary Topic
Magnetic confinement fusion research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

FREEGSNKE: A PURE-PYTHON EVOLUTIVE EQUILIBRIUM CODE FOR TOKAMAK PLASMAS

Zenodo (CERN European Organization for Nuclear Research)
Magnetic confinement fusion research
article

FREEGSNKE: A PURE-PYTHON EVOLUTIVE EQUILIBRIUM CODE FOR TOKAMAK PLASMAS

article en

Abstract

We present FreeGSNKE, a pure-Python, open-source, finite-difference simulation code for the two-dimensional dynamic plasma equilibrium problem. It builds on FreeGS, introducing i) a static Grad-Shafranov solver, based on the Newton-Krylov (NK) method; ii) solvers for the evolutive problem, also based on the NK method. Both solvers have been validated against MAST-U equilibria: the static solver against equilibria from Fiesta and EFIT++ and the evolutive solver against measured poloidal field coil currents and plasma shape targets. FreeGSNKE is currently being used at MAST-U to support modelling strongly shaped plasmas and has been released (https://github.com/FusionComputingLab/freegsnke) under the GNU Lesser General Public License version 3. One aim of FreeGSNKE is to lower the entry barrier for those seeking to deploy machine-learning-based approaches for plasma control. Entirely written in Python, it can seamlessly integrate with established machine-learning libraries and algorithms, overcoming the need for cross-language binders or socket interfaces for multi-language interaction. For the same reasons, FreeGSNKE is a stateful code, which is advantageous in control, design, and reinforcement learning studies. Directions of development currently being pursued include compatibility with IMAS structures, JAX-ification of the core solvers to enable auto-differentiability, implementation of the current diffusion equation, and coupling with transport solvers.

Zenodo (CERN European Organization for Nuclear Research)
United Kingdom Atomic Energy Authority (GB)
Openalex Percentile: Top 79%
Magnetic confinement fusion research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.