Hostname: page-component-76d6cb85b7-dqfph Total loading time: 0 Render date: 2026-07-21T11:07:11.904Z Has data issue: false hasContentIssue false

On deep-learning-based closures for algebraic surrogate models of turbulent flows

Published online by Cambridge University Press:  08 October 2025

Benet Eiximeno*
Affiliation:
Barcelona Supercomputing Center, Barcelona, Spain Universitat Politècnica de Catalunya, Terrassa, Spain
Marcial Sanchis-Agudo
Affiliation:
FLOW, Engineering Mechanics, KTH Royal Institute of Technology, Stockholm, Sweden
Arnau Miró
Affiliation:
Barcelona Supercomputing Center, Barcelona, Spain Universitat Politècnica de Catalunya, Terrassa, Spain
Ivette Rodriguez
Affiliation:
Universitat Politècnica de Catalunya, Terrassa, Spain
Ricardo Vinuesa
Affiliation:
Department of Aerospace Engineering, University of Michigan, Ann Arbor, MI 48109, USA
Oriol Lehmkuhl
Affiliation:
Barcelona Supercomputing Center, Barcelona, Spain
*
Corresponding author: Benet Eiximeno, benet.eiximeno@bsc.es

Abstract

A deep-learning-based closure model to address energy loss in low-dimensional surrogate models based on proper-orthogonal-decomposition (POD) modes is introduced. Using a transformer-encoder block with an easy-attention mechanism, the model predicts the spatial probability density function of fluctuations not captured by the truncated POD modes. The methodology is demonstrated on the wake of the Windsor body at yaw angles of $\delta = [2.5^\circ ,5^\circ ,7.5^\circ ,10^\circ ,12.5^\circ ]$, with $\delta = 7.5^\circ$ as a test case, and in a realistic urban environment at wind directions of $\delta = [-45^\circ ,-22.5^\circ ,0^\circ ,22.5^\circ ,45^\circ ]$, with $\delta = 0^\circ$ as a test case. Key coherent modes are identified by clustering them based on dominant frequency dynamics using Hotelling’s $T^2$ on the spectral properties of temporal coefficients. These coherent modes account for nearly $60 \,\%$ and $75 \,\%$ of the total energy for the Windsor body and the urban environment, respectively. For each case, a common POD basis is created by concatenating coherent modes from training angles and orthonormalising the set without losing information. Transformers with different size on the attention layer, (64, 128 and 256), are trained to model the missing fluctuations in the Windsor body case. Larger attention sizes always improve predictions for the training set, but the transformer with an attention layer of size 256 slightly overshoots the fluctuation predictions in the Windsor body test set because they have lower intensity than in the training cases. A single transformer with an attention size of 256 is trained for the urban flow. In both cases, adding the predicted fluctuations close the energy gap between the reconstruction and the original flow field, improving predictions for energy, root-mean-square velocity fluctuations and instantaneous flow fields. For instance, in the Windsor body case, the deepest architecture reduces the mean energy error from $37 \,\%$ to $12 \,\%$ and decreases the Kullback–Leibler divergence of velocity distributions from ${\mathcal{D}}_{\mathcal{KL}}=0.2$ to below ${\mathcal{D}}_{\mathcal{KL}}=0.026$.

Information

Type
JFM Papers
Creative Commons
Creative Common License - CCCreative Common License - BYCreative Common License - NCCreative Common License - ND
This is an Open Access article, distributed under the terms of the Creative Commons Attribution-NonCommercial-NoDerivatives licence (https://creativecommons.org/licenses/by-nc-nd/4.0), which permits non-commercial re-use, distribution, and reproduction in any medium, provided that no alterations are made and the original article is properly cited. The written permission of Cambridge University Press must be obtained prior to any commercial use and/or adaptation of the article.
Copyright
© The Author(s), 2025. Published by Cambridge University Press
Figure 0

Table 1. Summary of the four architectures considered in the present work.

Figure 1

Figure 1. Easy-attention-based transformer with time-space embedding. Figure adapted from Sanchis-Agudo et al. (2023).

Figure 2

Figure 2. The geometry of the Windsor body (red) and working plane (blue) where the data are interpolated to develop the model. The plane is perpendicular to the vertical axis and is located at $z/L=0.186$. The arrow indicates the flow direction.

Figure 3

Figure 3. Time-averaged streamlines comparison between $\delta =2.5^{\circ }$ (a) and $\delta =12.5^{\circ }$ (b) at the plane $z/L=0.186$. The green, red and blue dots represent the core of the leeward side vortex, the core of the windward side vortex and the saddle point, respectively.

Figure 4

Figure 4. Mean streamwise velocity at $z/L=0.186$ for $\delta =2.5^{\circ }$ (a) and $\delta =12.5^{\circ }$ (b).

Figure 5

Figure 5. The r.m.s of the streamwise velocity fluctuations at $z/L=0.186$ for $\delta =2.5^{\circ }$ (a) and $\delta =12.5^{\circ }$ (b).

Figure 6

Figure 6. Mean streamwise velocity for all simulated angles at $y/L=0$ (a) and the r.m.s. value of the velocity fluctuations at $x/L=1.3$ (b).

Figure 7

Figure 7. Geometry of the Zona Universitària neighbourhood in Barcelona. The building highlighted in red is the BSC headquarters.

Figure 8

Figure 8. Simulated wind directions. Directions in blue are those used for training and the direction in red was used for the test. The red building is the BSC headquarters.

Figure 9

Figure 9. Picture of the BSC headquarters (a) and the simulated geometry (b). The simulated geometry includes the plane at $z = 1.50\, \text{m}$, depicted in blue, in which the closure model has been tested.

Figure 10

Table 2. Number of coherent modes and total amount of energy recovered by them for each training angle for the Windsor body case.

Figure 11

Table 3. Number of coherent modes and total amount of energy recovered by them for each training angle for the BSC building.

Figure 12

Figure 10. The $T^2$ clustering results for the wake of the Windsor body at $\delta =2.5^{\circ }$ (a) and for the BSC building at $\delta =22.5^{\circ }$ (b). Green dots represent the coherent modes and red dots the non-coherent modes.

Figure 13

Figure 11. Spatial correlations of the 5th (a) and 450th (b) most energetic modes of the Windsor body at $\delta =10^{\circ }$, clustered as coherent and non-coherent, respectively.

Figure 14

Figure 12. Temporal coefficient (left) and its power spectrum (right) of the 5th (a) and 450th (b) most energetic modes of the Windsor body at $\delta =10^{\circ }$, clustered as coherent and non-coherent, respectively.

Figure 15

Figure 13. Cumulative energy for the POD to find the common basis between the selected modes for the Windsor body case.

Figure 16

Figure 14. Kernel density estimate of the velocity fluctuations, its reconstruction from the common basis and the error between both for all snapshots in the training (solid) and test (dashed) datasets for (a) the Windsor body case and (c) the flow around the BSC. Joint PDF of the error depending on the reconstruction from the common basis, $p({\mathcal{E}}|{\mathcal{X}}_{\mathcal{P}})$, for all snapshots in the training (solid) and test (dashed) datasets for (b) the Windsor body case and (d) the flow around the BSC.

Figure 17

Figure 15. Joint PDF of the error depending on the reconstruction from the common basis, $p({\mathcal{E}}|{\mathcal{X}}_{\mathcal{P}})$, for the Windsor body case. Solid lines represent the reference values and dashed lines represent the values learned by the closure. Panels (a,b,c) show the accuracy on the training set ($\delta =[2.5^{\circ }, 5^{\circ }, 10^{\circ }, 12.5^{\circ }]$) and panels (d,e,f) show the accuracy for the validation set ($\delta =7.5^{\circ }$). (a,d) Architecture 1, (b,e) architecture 2 and (c,f) architecture 3.

Figure 18

Table 4. Küllback–Leibler divergence between the original $p({\mathcal{E}}|{\mathcal{X}}_{\mathcal{P}})$ and the one learned by each transformer architecture for the Windsor body case.

Figure 19

Figure 16. Kernel density estimate of the energy for the training (a) and test (b) datasets of the Windsor body case.

Figure 20

Figure 17. The r.m.s. value of the streamwise velocity fluctuations for the cases at $\delta =2.5^{\circ }$ (a) and $\delta =7.5^{\circ }$. From left to right, the pictures represent: reconstruction from the common POD basis, reconstruction enhanced with a SRGAN, reconstruction with the closure model with an attention size of $d_{\textit{model}}=256$ and the original flow for the Windsor body case.

Figure 21

Figure 18. The r.m.s. of the streamwise velocity fluctuations for the cases at $\delta =2.5^{\circ }$ (a) and $\delta =7.5^{\circ }$ (b) on a cross-stream line at $x/L=1.3$ for the Windsor body case.

Figure 22

Figure 19. The r.m.s. value of the velocity fluctuations for the case at $0^{\circ }$. From left to right, the pictures represent: reconstruction from the common POD basis, reconstruction with the closure model and the original flow around the BSC building.

Figure 23

Figure 20. The r.m.s. value of the velocity fluctuations for the case at $0^{\circ }$ on a cross-stream line at $x/H_{\textit{max}}=1.79$ for the flow around the BSC building.

Figure 24

Table 5. Mean relative error between the energy of the original field, the energy recovered by the POD reconstruction and the POD reconstruction with the closure model for the Windsor body case.

Figure 25

Figure 21. Temporal evolution of the energy of the system for the Windsor body case at $\delta =7.5^{\circ }$.

Figure 26

Figure 22. From (ad): the Windsor body case: original streamwise velocity fluctuations, POD reconstruction, POD reconstruction with the closure term and the error between the closed reconstruction and the original field (${\mathcal{E}_{M}}$) for a snapshot at $\delta =7.5^{\circ }$.

Figure 27

Table 6. Kullback–Leibler divergence, ${\mathcal{D}}_{\mathcal{KL}}$, between the original field and the reconstruction with and without the closure term. The results are averaged over all snapshots for each angle of the Windsor body case.

Figure 28

Figure 23. Cumulative density function of the relative error between the reconstructions and the original field (a) and PDF for the three fields (b) for the Windsor body case.

Figure 29

Figure 24. The $T^2$ clustering results for the wake of the Windsor body at $\delta =5^{\circ }$ (a), $\delta =10^{\circ }$ (b) and $\delta =12.5^{\circ }$ (c). Green dots represent the coherent modes and red dots the non-coherent modes.

Figure 30

Figure 25. The $T^2$ clustering results for the flow around the BSC building at $\delta =-45^{\circ }$ (a), $\delta =-22.5^{\circ }$ (b) and $\delta =45^{\circ }$ (c). Green dots represent the coherent modes and red dots the non-coherent modes.

Figure 31

Figure 26. The r.m.s. of the streamwise velocity fluctuations for the Windsor body cases at $\delta =5^{\circ }$ (a), $\delta =10^{\circ }$ (b) and $\delta =12.5^{\circ }$ (c). From left to right, the pictures represent: reconstruction from the common POD basis, reconstruction enhanced with the SRGAN method, reconstruction adding the closure term predicted with an attention size of $d_{\textit{model}}=256$ and the original flow.

Figure 32

Figure 27. The r.m.s. of the streamwise velocity fluctuations for the Windsor body cases at $\delta =5^{\circ }$ (a), $\delta =10^{\circ }$ (b) and $\delta =12.5^{\circ }$ (c) at $x/L=1.3$.