arXiv:2608.28366physics.comp-phAug 2026

Manuscript Offprint

arXiv:2608.28366

Real-Time Monitoring of MHD Liquid Metal Flows with Shallow Recurrent Decoders

Claudio Scardino, Stefano Riva, Carolina Introini, Matteo Lo Verso, Eric Cervi, Antonio Cammi, Laura Savoldi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

ABSTRACT

State estimation in magnetohydrodynamic flows is critical for real-time monitoring of liquid metal blankets in tokamak fusion reactors. Due to the multiphysics nature of these phenomena, high-fidelity simulations are computationally prohibitive for real-time applications. This work investigates a data-driven Reduced Order Model framework: the Shallow Recurrent Decoder (SHRED) coupled with Principal Component Analysis, to map sparse temperature measurements to the full thermo-hydraulic system's state. The major contribution of this work lies in the two-parameter analysis of a fully three-dimensional domain representative of the DEMO breeding blanket configuration. Here, the flow is subjected to an external magnetic field varying in direction and intensity and is hindered by two cylinders acting as a water-cooling system, which impose a temperature boundary condition on their surfaces. This double-parametric magnetic variation induces nonlinear transitions in the flow dynamics, ranging from chaotic behavior at low magnetic field intensities to laminarized regimes at high intensities, characterized by the formation of asymmetric side layers at an inclination angle of 30 degrees. SHRED reconstruction maintains a mean relative error of approximately 5% for the temperature, pressure, and velocity fields. This accuracy is maintained across both weak and strong magnetic fields, ranging from 0.075 T to 0.300 T, and for inclination angles from 5 to 30 degrees, reflecting its dominant toroidal component. These errors are only slightly larger than the lower error bound dictated by low-rank truncation. The results establish SHRED as a reliable state estimator for complex and realistic engineering applications involving completely unseen parametric scenarios and validate it as an accurate real-time state estimation technique suitable for online monitoring and control of real facilities.

Keywords Magneto-hydrodynamics · Data-Driven Reduced Order modeling · SHRED · Principal Component Analysis · Sparse sensing · State estimation

1 Introduction

Magneto-hydrodynamics (MHD) [1] describes the coupling between electromagnetic fields (specifically, the electric field E (V/m) and the magnetic field B (T)) and thermal fluid dynamics fields, such as velocity u (m/s), temperature T (K), and pressure p (Pa), for an electrically conductive fluid, as in the case of liquid metals [2]. In a Tokamak fusion reactor [3], the magnetic confinement of the plasma, achieved by exploiting intense external magnetic fields BextB_{ext}, directly influences the fluid dynamics of the liquid metal flowing in the breeding blanket, thereby altering its fluid-dynamics state. Knowledge of the liquid metal behavior inside the blanket under different external magnetic fields is of primary concern, as it dictates the heat extraction from the plasma and, subsequently, the heat exchange

1 INTRODUCTION

with the water cooling circuit of the reactor. In fact, in an electrically conducting fluid, the overall magnetic field (given by the superposition of the external one and of the internally generated one due to charge motion), influences the thermal-hydraulic state, acting on the fluid flow which, in turns, influences the internal magnetic field. As a result, a continuous two-way coupling is established between the electromagnetic field (described by the Maxwell equations) and the fluid dynamics (described by the Navier-Stokes equations), resulting in a highly non-linear system of coupled equations within a multiphysics framework [4].

The inherent multi-physics and non-linear nature of the MHD equations leads to high computational cost when solving the high fidelity system and tracking the MHD state; indeed, even for the same geometry and identical initial and boundary conditions, problems that differ only in some parameter values, such as the intensity of the magnetic field or its inclination angle, can produce very different solutions: for example, intense magnetic fields induce a laminarization of the flow, as the Lorentz forces act as a brake, suppressing three-dimensional turbulent structures, implying a very different dynamics between high and low magnetic fields. Consequently, in order to identify the overall dynamics of the flow, for any combination of the external parameters, a large number of high-fidelity simulations are needed; however, this is not feasible in industrial applications due to the high computational and time costs. In particular, with a view to real-time applications such as control and monitoring, this computational burden is excessive, making online state estimation unfeasible, as simulations are required near-instantaneously.

In this context, over the last few years, data-driven reduced-order techniques have established themselves as reliable and accurate state estimators in the nuclear sector, primarily with reference to fission reactors [5, 6, 7, 8, 9]. Conversely, their application to MHD problems remains highly limited to plasma applications (plasma control [10], instability mitigation [11], and profile regulation [12] in tokamaks), and even more so when considering liquid metal blankets.

Alongside reduced-order approaches, Deep Learning methods have also been investigated in fission-reactor applications, including CNN-based reconstruction of multiphysics reactor fields from sparse and moving sensors [13], data-enabled physics-informed neural networks for neutron-diffusion eigenvalue problems [14], and physics-informed CNNs for temperature-field monitoring in high-temperature gas reactors [15].

Nevertheless, when dealing with the extremely high dimensionality of 3D full-order simulations, according to the size of the mesh ( Nh∼O(105−108)\mathcal{N}_h \sim \mathcal{O}(10^5 - 10^8)), standard Deep Learning architectures, such as deep Convolutional Neural Networks (CNNs), involve up to tens of millions of trainable parameters (the so-called curse of dimensionality) [16]. This vast number of parameters makes these architectures overly complex, memory-intensive, slow to train, and inherently data-inefficient. Indeed, to prevent overfitting, such large networks require an impractically massive dataset of Full Order Model (FOM) simulations for training: given the cost of multi-query simulations for coupled, non-linear problems, generating a dataset with a sufficient number of training cases becomes fundamentally unfeasible.

A promising alternative is the integration of shallow architectures trained on a latent representation of the high-fidelity simulations within a reduced mathematical space. Specifically, the problem dimensionality can be compressed using Reduced Order Modeling (ROM) techniques [16], such as the Principal Component Analysis (PCA) adopted in this work. This approach allows extracting the dominant spatial patterns, referred to as basis functions {ϕi}i=1r\{\phi_i\}_{i=1}^r, recurrent across various flow regimes induced by the externally applied magnetic field. These functions are then exploited to build a linear reduced space defined by their span: Xr=span({ϕi}i=1r)X_r = \text{span}(\{\phi_i\}_{i=1}^r), where rr is the truncation rank and hence the dimensionality of the surrogate model. In this latent space, each snapshot of a particular spatial field ψ\psi (obtained for a given external magnetic field Bext\mathbf{B}_{\text{ext}} at a given time tt) is represented through its projection as a linear combination of the basis functions and the latent coefficients {αi(t;Bext)}i=1r\{\alpha_i(t; \mathbf{B}_{\text{ext}})\}_{i=1}^r, which encode the latent dynamics. For the reduction step, this work adopts the Principal Component Analysis (PCA), rather than the un-centered Singular Value Decomposition commonly used in fluid dynamics, to emphasize the neural network’s capability of learning the physical oscillations around the mean field. By subtracting the mean snapshot ψ‾(x)\overline{\psi}(\mathbf{x}), the network avoids wasting parameters on capturing the dominant static mean field, as would otherwise be required with standard SVD.

In a Data Assimilation context involving physical facilities, it is natural to link sensor measurements, rather than the system parameters, directly to the latent dynamics, as the parameters may be a priori unknown. Because SHRED works directly with sparse measurements rather than parameter values, it is inherently suitable for direct deployment in engineering facilities. In this scenario, once the basis functions are extracted from the training snapshots, the neural network only needs to learn the non-linear mapping between the sparse measurements and the latent dynamics. During the online phase, as new measurements become available, the corresponding latent coefficients are rapidly inferred by the network. Finally, these coefficients are linearly combined with the previously computed basis functions to perform the full state estimation. As the dimensionality reduction is performed via PCA, at a given time t for a new value of the magnetic field Bext∗\mathbf{B}_{\text{ext}}^*, the neural network must determine only r∼O(101)r \sim \mathcal{O}(10^1) unknowns, rather than the Nh∼O(105−108)\mathcal{N}_h \sim \mathcal{O}(10^5 - 10^8) unknowns dictated by the size of the mesh. This implies that a Deep Neural Network is no longer required, as a shallow decoder with fewer than 200'000 parameters is sufficient. By adopting a shallow architecture, the network becomes intrinsically fast to train and data-efficient; the reduced number of parameters mitigates the overfitting.

problem, thereby eliminating the need for a massive training dataset and drastically reducing the computational cost associated with data generation. Moreover, to naturally handle the temporal structure of the input extracted from sparse sensors, a Recurrent Neural Network, such as a Long Short-Term Memory (LSTM) network [17], can be adopted to map the measurements into an intermediate latent space. By coupling the LSTM with a shallow decoder [18], which takes the intermediate representation as input and outputs the latent dynamics {αi(t;Bext∗)}i=1r\{\alpha_i(t; \mathbf{B}_{\text{ext}}^*)\}_{i=1}^r, the SHallow REcurrent Decoder (SHRED) architecture is built. This is the specific framework adopted in the present work.

Relying on specific input measurements, SHRED is able to perform indirect state estimation; by processing data from only a single scalar field, such as the temperature field adopted in this work, the model is capable of reconstructing all physical fields, including the unmeasured ones. This is a crucial feature since, in an engineering-oriented framework, not all variables are equally accessible. For instance, acquiring localized measurements for vector fields, such as velocity, is practically unfeasible. Moreover, when SHRED is trained on noisy measurements to target the latent dynamics, during offline training the network learns to effectively decouple the noise from the pure, uncorrupted measurements.

Despite the capability of SHRED to perform state estimation by handling the strong non-linearities between sensor measurements and latent dynamics, inherent to multiphysics problems, its adoption in the fusion field [19] is not yet as widespread as its counterpart applications in fission reactors [20, 21, 22, 23] or other physics fields [24, 25]. Nevertheless, recent investigations [26] demonstrate the feasibility of this architecture to perform state estimation for a two-dimensional MHD flow using SHRED. It should be mentioned that a first preliminary study on a three-dimensional benchmark case, estimating the MHD state of Pb-Li around a cooling pipe inside a blanket elementary cell, was conducted in [27]. In their work, both the intensity and the orientation of the magnetic field were simultaneously considered as parameters. While this study provided valuable insights, highlighting the potential of SHRED for accurate state reconstruction under general magnetic field conditions, further investigations involving more complex geometric configurations are required. Indeed, their benchmark considered a simplified setup focusing exclusively on the MHD flow interaction with the pipe, treating the external duct walls as virtual, open boundaries that the fluid could cross. In addition, compared to previous works, the present one focuses more on the physical interpretation of the network output.

Conversely, this work simulates the flow of liquid Pb-Li within a three-dimensional domain representing a simplified elementary cell of a breeding blanket. The liquid metal flows longitudinally inside a square duct; to model the heat exchange with the secondary coolant system, the flow is intercepted by two transversal cylinders acting as cooling pipes. The cooling process is numerically accounted for by imposing a fixed temperature boundary condition on the cylindrical surfaces, which are maintained at a lower temperature relative to the bulk liquid metal. In addition to providing a more realistic representation of a breeding blanket geometry, this benchmark case is highly interesting from a phenomenological perspective. Indeed, it allows for the characterization of distinctive MHD phenomena, such as the formation of side layers and the magnetic braking effect that suppresses the von Kármán vortex streets behind the cylinders. The selected parameters are the intensity of the external magnetic field BextB_{ext} and its inclination angle α\alpha, which dictates the development of asymmetric side layers.

The remainder of the paper is organized as follows. Section 2 investigates the SHRED architecture in detail, illustrating its key characteristics. In Section 3, the MHD ruling equations are presented together with the benchmark geometry, followed by the numerical results of the SHRED state estimation for the single and double parametric cases. Finally, Section 4 summarizes the most relevant conclusions and outlines future developments.

References (41)