Hostname: page-component-6766d58669-l4t7p Total loading time: 0 Render date: 2026-05-18T15:24:26.681Z Has data issue: false hasContentIssue false

Learned turbulence modelling with differentiable fluid solvers: physics-based loss functions and optimisation horizons

Published online by Cambridge University Press:  29 September 2022

Björn List*
Affiliation:
Departement of Informatics, Technical University of Munich, D-85748 Garching, Germany
Li-Wei Chen
Affiliation:
Departement of Informatics, Technical University of Munich, D-85748 Garching, Germany
Nils Thuerey
Affiliation:
Departement of Informatics, Technical University of Munich, D-85748 Garching, Germany
*
Email address for correspondence: bjoern.list@tum.de

Abstract

In this paper, we train turbulence models based on convolutional neural networks. These learned turbulence models improve under-resolved low-resolution solutions to the incompressible Navier–Stokes equations at simulation time. Our study involves the development of a differentiable numerical solver that supports the propagation of optimisation gradients through multiple solver steps. The significance of this property is demonstrated by the superior stability and accuracy of those models that unroll more solver steps during training. Furthermore, we introduce loss terms based on turbulence physics that further improve the model accuracy. This approach is applied to three two-dimensional turbulence flow scenarios, a homogeneous decaying turbulence case, a temporally evolving mixing layer and a spatially evolving mixing layer. Our models achieve significant improvements of long-term a posteriori statistics when compared with no-model simulations, without requiring these statistics to be directly included in the learning targets. At inference time, our proposed method also gains substantial performance improvements over similarly accurate, purely numerical methods.

Information

Type
JFM Papers
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2022. Published by Cambridge University Press.
Figure 0

Figure 1. Solver procedure of the PISO scheme and its interaction with the convolutional neural network; data at time $t_n$ are taken from the DNS dataset and processed by the downsampling operation q that yields downsampled representations of the input fields, before entering the differentiable solver; the solver unrollment performs $m$ steps, each of which is corrected by the CNN, and is equivalent to $\tau$ high-resolution steps; the optimisation loss takes all resulting (intermediate) timesteps.

Figure 1

Table 1. Training details for models trained on the isotropic turbulence case, wtih NN representing various versions of our neural network models; mean squared error (MSE) evaluated at $t_1 = 64\Delta t\approx 5\hat {t}$ and $t_2 = 512\Delta t\approx 40\hat {t}$.

Figure 2

Figure 2. Vorticity visualisations of DNS, no-model, LES, and learned model simulations at $t = (350,700) \Delta t$ on the test dataset, zoomed-in version below.

Figure 3

Figure 3. Resolved turbulence kinetic energy spectra of the downsampled DNS, no-model, LES and learned model simulations; the learned 30-step model matches the energy distribution of downsampled DNS data; the vertical line represents the Nyquist wavenumber of the low-resolution grid.

Figure 4

Figure 4. Comparison of DNS, no-model, LES and learned model simulations with respect to resolved turbulence kinetic energy over time (a); and turbulence dissipation rate over time (b).

Figure 5

Figure 5. NN-model work on the flow field, work by the LES model and the estimated SGS energies from LES.

Figure 6

Table 2. Perturbation details for initial conditions of temporal mixing layer training and test datasets.

Figure 7

Table 3. Model details for unrollment study; MSE with respect to DNS from test data at $t_e = 512\Delta t$.

Figure 8

Figure 6. Vorticity visualisations of DNS, no-model and learned model simulations at $t=(256,640,1024)\Delta t$ on the test dataset.

Figure 9

Figure 7. Comparison of DNS, no-model and learned model simulations with respect to resolved turbulence kinetic energy (a) and Reynolds stresses (b).

Figure 10

Figure 8. Centreline kinetic energy spectra for the downsampled DNS, no-model and learned model simulations.

Figure 11

Figure 9. Cross-sectional kinetic energy spectra of the downsampled DNS, no-model and learned model simulations.

Figure 12

Figure 10. Momentum thickness of DNS, no-model and learned model simulations, evaluated based on the streamwise averages.

Figure 13

Table 4. Perturbation details for the inlet condition of training and test datasets.

Figure 14

Figure 11. Vorticity heat maps of the spatial mixing layer simulations at (a) $t = 70\Delta t$, and (b) $t = 600\Delta t$, on the test dataset.

Figure 15

Figure 12. Comparison of downsampled DNS, no-model and learned model simulations with respect to Reynolds-averaged resolved turbulence kinetic energy (a) and Reynolds stresses (b).

Figure 16

Table 5. Model details for unrollment study; MSE with respect to DNS from test data at $t_e = 1000\Delta t$.

Figure 17

Figure 13. Centreline kinetic energy spectra for downsampled DNS, no-model and learned model simulations.

Figure 18

Figure 14. Vorticity and momentum thickness of the downsampled DNS, no-model and learned model simulations.

Figure 19

Figure 15. Power spectral density (PSD) of velocity fluctuations over time at sampling point $(x,y)=(192\Delta x,0)$ based on the training dataset for DNS, no-model and learned model simulations at top; bottom figure displays the relative error of the power densities over frequencies, accumulated for both velocity components; frequencies to the right of a dotted vertical line are fully enclosed in a training iteration; vertical lines correspond to (60, 30, 10) unrolled steps from left to right.

Figure 20

Figure 16. Comparison of DNS, no-model and $60$-step model simulations with respect to resolved turbulence kinetic energy (a), and Reynolds stresses (b).

Figure 21

Table 6. Temporal mixing layer; model details for $60$-$X$ models; MSE with respect to DNS from test data at $t_e = 512\Delta t$; training of $\textrm {NN}_{60\unicode{x2013} 60,\mathcal {L}_{T}}$ is unstable.

Figure 22

Table 7. Spatial mixing layer; model details for $60$-$X$ models; MSE with respect to DNS from test data at $t_e = 1000\Delta t$.

Figure 23

Figure 17. Vorticity comparison of $60$-step models on spatial mixing layer simulations at $t=700\Delta t$ on the test dataset.

Figure 24

Figure 18. Comparison of downsampled DNS, no-model and learned model simulations with respect to Reynolds-averaged resolved turbulence kinetic energy (a) and Reynolds stresses (b).

Figure 25

Figure 19. Vorticity and momentum thickness of the downsampled DNS, no-model and learned model simulations.

Figure 26

Figure 20. Selected evaluations of the 120-step model with vorticity snapshots in (a), Reynolds stresses in (b) and vorticity thickness in (c).

Figure 27

Table 8. Computational performance comparison over $t_e=1000\Delta t$ for the used flow scenarios, isotropic decaying turbulence (IDT), temporal mixing layer (TML) and spatial mixing layer (SML); MSE values are evaluated on the velocity field at $500\Delta t$; training time on one GPU.

Figure 28

Figure 21. Similarity evolutions over time measured by the MSE on resolved turbulence kinetic energy for randomised turbulence simulations (a), TML simulations (b) and SML simulations (c).

Figure 29

Figure 22. Visualisation of gradient back-propagation, comparing differentiable and supervised set-ups; displayed is a 3-step set-up; the loss gradients from the last step are propagated through all previous steps and towards all previous network outputs; if the back-propagation is split into subranges, the gradients of the simulation state are set to zero, visualised by ‘$\setminus$’.

Figure 30

Figure 23. Grid convergence study, the numerical error on the Taylor–Green vortex with respect to analytical data converges with second order.

Figure 31

Figure 24. Lid-driven cavity verification case, figures show the domain-centre velocities for $Re=100$ in (a), and $Re=1000$ in (b), in comparison with numerical benchmark data by Ghia et al. (1982).

Figure 32

Figure 25. Comparison of DNS, no-model and learned model simulations trained with the adjoint-based method and with a supervised method on IDT; evaluation with respect to vorticity (a) and resolved turbulence kinetic energy spectra (b).

Figure 33

Figure 26. Comparison of DNS, no-model and learned model simulations trained with the adjoint-based method and with a supervised method on TMLs; evaluation with respect to vorticity (a), resolved Reynolds stresses (b) and resolved turbulence kinetic energy (c).

Figure 34

Table 9. Loss ablation study for the used flow scenarios, IDT, TML and SML; $t_1=64\Delta t=512\Delta t_{DNS}$ and $t_2=[1000,\ 1000 ,\ 500]\Delta t$ for IDT, TML, SML, respectively; MSE$(k)$ is evaluated on instantaneous turbulent kinetic energy fields for IDT, and on spatially/temporally averaged fields for TML and SML; $\sum { ({E(k)_{\boldsymbol u}}/{E(k)_{\boldsymbol {\tilde {u}}}}){-1}}$ is evaluated on two-dimensional spectral analysis for IDT, cross-sectional spectra for TML, and centreline spectra for SML.