{'fraction_non_alphanumeric': 0.025082508250825083, 'fraction_numerical': 0.0033003300330033004, 'mean_word_length': 5.162601626016261, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Real-time-capable prediction of temperature and density profiles in a tokamak using RAPTOR and a first-principle-based transport model

The RAPTOR code is a control-oriented core plasma profile simulator with various applications in control design and verification, discharge optimization and real-time plasma simulation. To date, RAPTOR was capable of simulating the evolution of poloidal flux and electron temperature using empirical transport models, and required the user to input assumptions on the other profiles and plasma parameters. We present an extension of the code to simulate the temperature evolution of both ions and electrons, as well as the particle density transport. A proof-of-principle neural-network emulation of the quasilinear gyrokinetic QuaLiKiz transport model is coupled to RAPTOR for the calculation of first-principle-based heat and particle turbulent transport. These extended capabilities are demonstrated in a simulation of a JET discharge. The multi-channel simulation requires  ∼0.2 s to simulate 1 second of a JET plasma, corresponding to  ∼20 energy confinement times, while predicting experimental profiles within the limits of the transport model. The transport model requires no external inputs except for the boundary condition at the top of the H-mode pedestal. This marks the first time that simultaneous, accurate predictions of Te, Ti and ne have been obtained using a first-principle-based transport code that can run in faster-than-real-time for present-day tokamaks.