Parallelized Real-time Physics Codes for Plasma Control on DIII-D
A. Rothstein, K. Erickson, R. Conlin, A. Bortolon, E. Kolemen
TL;DR
This work addresses the need for deterministic, low-latency real-time physics computations in fusion plasma control by developing a real-time safe multi-threading library for the DIII-D PCS. Using a Manager–Worker paradigm with C11 atomics, the library parallelizes independent tasks to run rt-TORBEAM and rt-STRIDE in real time, achieving cycle times of roughly $20\,\mathrm{ms}$ and $100\,\mathrm{ms}$ respectively. The TORBEAM implementation demonstrates $\rho$-tracking accuracy with $|\rho_{target}-\rho_{torbeam}|\leq 0.05$, while STRIDE leverages a Riccati-based shooting approach to compute $\delta W$ across $\sim$200 intervals within the same time budget. Together, these results show robust, deterministic execution suitable for real-time fusion control, with potential to enable other physics-based modules and future surrogates while maintaining strict reliability guarantees.
Abstract
A real-time safe multi-threading library was developed on the DIII-D plasma control system to optimize the realtime TORBEAM and real-time STRIDE physics codes. These physics codes are crucial for future fusion power plant operation as they provide information about electron cyclotron wave propagation and heating as well as inform about ideal plasma stability limits. The real-time TORBEAM code executed consistently in under 20 ms while the real-time STRIDE code computes in 100 ms. The multi-threading library developed in this work can be applied to other real-time physics-based codes that will be crucial for the next generation of fusion devices.
