Search arXiv⌕ Search

arXiv · 2609.33994

A packet-level digital hardware twin for commissioning megahertz diagnostic edge AI and plasma control system integration in tokamaks

Abstract

High-bandwidth plasma diagnostics increasingly provide inputs to machine learning and signal-processing algorithms intended for real-time tokamak control, but the complete path from diagnostic sampling to control-system handoff is difficult to commission because of their sampling rates. We develop a packet-level digital hardware twin for the megahertz diagnostic edge-AI architecture. The simulator represents a 64-channel, 1 MHz beam emission spectroscopy (BES) diagnostic embedded in a 96-channel dual-carrier acquisition system, two 48-channel streams with SPAD0 sample counters, 10 GbE Hardware UDP transport, packet loss and network jitter, FPGA parsing and dual-carrier alignment, causal preprocessing and edge inference, a compact Ethernet result packet, receiver-side shared state, and a 1 kHz PCS-like control cycle. Binary UDP payloads and PCAP files are generated rather than emulating transport only at the array level. With a baseline of 20 samples per packet, each carrier generates 50,000 packets s$^{-1}$ and 100 MB s$^{-1}$ of user payload. A 110 ms reference run produces 11,000 HUDP packets; an intentionally dropped 20-sample packet is detected by the sample-counter continuity logic and invalidates the two overlapping 128-sample inference windows without silent interpolation. For valid windows, the configured engineering latency model gives a median last-input-to-shared-memory latency of 91.6 us and a 99th percentile of 108.1 us. A separate operating-system loopback test sends binary FPGA-result datagrams through a UDP receiver into POSIX shared memory and preserves packet sequence and CRC for 20/20 packets. Interactive GUI interfaces expose timing, packetization, network faults, inference thresholds, and control-state inspection. The framework provides a reproducible environment for testing diagnostic-to-accelerator interfaces and fail-safe behavior for deployment on fusion devices.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Semin Joung, Abhilasha Dave, Luca Scomparin, Filipp Khabanov, Zheng Yan, Benedikt Geiger, George McKee, Ryan N. Coffee, David R. Smith. 2026-09-27. A packet-level digital hardware twin for commissioning megahertz diagnostic edge AI and plasma control system integration in tokamaks. https://arxiv.org/abs/2609.33994

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

KEEP EXPLORING

Related papers

Fully-implicit Particle-in-Cell model of a Magnetic Nozzle with electromagnetic power deposition

A fraction of the electromagnetic power used to generate and heat the plasma in helicon sources and electrodeless plasma thrusters can leak into the outer expansion region, interacting with the plasma in the magnetic nozzle and affecting the performance of the device. This work analyzes the properties of the plasma in a convergent-divergent magnetic nozzle when right-hand polarized waves of varying amplitude propagate into it. This is accomplished with a 1D3V fully-implicit, Vlasov-Darwin particle-in-cell model of the collisionless ion and electron plasma in a magnetic tube. The code exactly conserves charge locally and energy globally. It features a nonuniform grid and an enhanced substepping routine for the macroparticle trajectories. The requirement that the expansion be current-free is satisfied thanks to linear closed-loop controllers on the injection and downstream boundary conditions. Wave heating increases the electron perpendicular temperature, especially in the vicinity of an electron cyclotron resonance surface, always present inside the magnetic nozzle of a helicon device. The energized electrons become anisotropic, and drive a more pronounced potential drop and a higher ion acceleration than in the absence of waves, at the expense of the wave power. The computed moments of the ion and electron distributions reveal the dominant balance of the electron thermal terms, electrostatic terms, and ion inertial terms in the momentum and energy equations. Wave heating helps populate otherwise-inaccessible regions of the electron phase space and modifies the doubly-trapped electron population found in the purely electrostatic case. The overall efficiency of the magnetic nozzle increases mildly at low wave power, but drops quickly as it is increased beyond a threshold, as part of the energy is wasted...

physics.plasm-ph↗

Analytic toroidal 3D MHD equilibria and steady Euler flows with invariant surfaces

Families of explicit analytic solutions of the magnetohydrodynamic equilibrium equations are presented, equivalent to steady incompressible Euler flow. The solutions are non-axisymmetric and possess exact nested toroidal flux surfaces. No expansion is made in inverse aspect ratio or in the deviation from axisymmetry. The magnetic field and flux surfaces are given explicitly in Cartesian coordinates using elementary functions. The field, current density, and scalar pressure are smooth over the toroidal domain. The pressure gradient vanishes only on the magnetic axis. One family of solutions has uniform rotational transform $ι=2$, while another family has a sheared $ι$ profile. These counterexamples to Grad's conjecture are valuable for understanding the existence and regularity of 3D equilibria and for testing numerical codes.

physics.plasm-ph↗

Observer-Based Model Predictive Control for Isoflux Regulation in the EXL-50U Spherical Tokamak

Isoflux control in spherical tokamaks requires coordinated plasma-current and boundary regulation under coil-voltage and computational constraints. This study develops observer-based constrained model predictive control (MPC) for EXL-50U. Vacuum-vessel spatial coarsening reduces a 538-state linearized model to 40 states while retaining control-relevant responses. A Kalman observer provides full-state estimates, and MPC jointly optimizes current and boundary-flux tracking with explicit voltage bounds. Matrix precomputation, specialized solver code generation, and structured linear-system solution reduce online computation. Nonlinear free-boundary Grad--Shafranov evolutive simulations evaluate nominal operation, measurement noise, configuration mismatch, a one-step delay, and combined noise and delay against proportional--integral--derivative (PID) control and a linear--quadratic regulator (LQR). Nominal MPC root-mean-square errors are 1.126 kA for plasma current, 0.0164 m for last-closed-flux-surface geometry, and 2.463 mWb for the worst flux channel, all below both baselines. With noise, the boundary error is 0.0199 m over the common evaluation window, and regulation is sustained throughout the test. MPC completes a limiter-to-divertor transition without relinearization or retuning and maintains regulation under delay and combined disturbances. Across all five cases, mean MPC computation times are 0.413--0.441 ms, with all 99th percentiles below 1 ms. These results support joint current and isoflux regulation and millisecond-scale computational feasibility, providing a basis for future EXL-50U experiments.

physics.plasm-ph↗