Hostname: page-component-77f85d65b8-6c7dr Total loading time: 0 Render date: 2026-04-19T12:01:45.443Z Has data issue: false hasContentIssue false

A recursive neural-network-based subgrid-scale model for large eddy simulation: application to homogeneous isotropic turbulence

Published online by Cambridge University Press:  29 November 2024

Chonghyuk Cho
Affiliation:
Department of Mechanical Engineering, Seoul National University, Seoul 08826, Republic of Korea
Jonghwan Park
Affiliation:
Department of Mechanical Engineering, Seoul National University, Seoul 08826, Republic of Korea
Haecheon Choi*
Affiliation:
Department of Mechanical Engineering, Seoul National University, Seoul 08826, Republic of Korea Institute of Advanced Machines and Design, Seoul National University, Seoul 08826, Republic of Korea
*
Email address for correspondence: choi@snu.ac.kr

Abstract

We introduce a novel recursive procedure to a neural-network-based subgrid-scale (NN-based SGS) model for large eddy simulation (LES) of high-Reynolds-number turbulent flow. This process is designed to allow an SGS model to be applicable to a hierarchy of different grid sizes without requiring expensive filtered direct numerical simulation (DNS) data: (1) train an NN-based SGS model with filtered DNS data at a low Reynolds number; (2) apply the trained SGS model to LES at a higher Reynolds number; (3) update this SGS model with training data augmented with filtered LES (fLES) data, accommodating coarser filter size; (4) apply the updated NN to LES at a further higher Reynolds number; (5) go back to Step (3) until a target (very coarse) filter size divided by the Kolmogorov length scale is reached. We also construct an NN-based SGS model using a dual NN architecture whose outputs are the SGS normal stresses for one NN and the SGS shear stresses for the other NN. The input is composed of the velocity gradient tensor and grid size. Furthermore, for the application of an NN-based SGS model trained with one flow to another flow, we modify the NN by eliminating bias and introducing a leaky rectified linear unit function as an activation function. The present recursive SGS model is applied to forced homogeneous isotropic turbulence (FHIT) and successfully predicts FHIT at high Reynolds numbers. The present model trained from FHIT is also applied to decaying homogeneous isotropic turbulence and shows an excellent prediction performance.

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), 2024. Published by Cambridge University Press.
Figure 0

Figure 1. Schematic diagram of the present NN-based SGS model that consists of a dual NN: NN$_{N}$ and NN$_{S}$ predict the SGS normal and shear stresses, respectively.

Figure 1

Table 1. Cases of DNS at various Reynolds numbers for FHIT. Here, $Re_L = (N_{DNS}/3)^{4/3}$ and $\varDelta _{DNS}/\eta = 2{\rm \pi} / 3\ (N_{DNS} \varDelta _{DNS} = 2{\rm \pi} L)$. DNSs are performed for DNS128 and DNS256, and the corresponding $Re_\lambda$ values are given in this table. Here, $\varDelta _{{DNS}}$ and $N_{DNS}$ are the size and number of grid points in each direction in DNS, respectively.

Figure 2

Table 2. Cases of fDNS and LES at various Reynolds numbers for FHIT. Here, $N_c$ is the number of grid points in each direction for fDNS or LES, and $\bar \varDelta$ denotes the filter size for fDNS ($\bar \varDelta _{fDNS}$) or the grid size for LES ($\bar \varDelta _{LES}$). The name of each case indicates fDNS$N_c / N_{DNS}$ or LES$N_c / N_{DNS}$. Note that $\varDelta _{DNS}/\eta = 2{\rm \pi} / 3$.

Figure 3

Table 3. Comparison of three filters. Here, $H$ is the Heaviside step function.

Figure 4

Figure 2. Three-dimensional energy spectra: black line, DNS128 ($Re_L =149.09; Re_\lambda = 93.03$); red line, fDNS32/128 with cut-Gaussian filtering; blue line, fDNS32/128 with Gaussian filtering; green line, fDNS32/128 with spectral cutoff filtering; blue $\circ$, LES32/128 with DSM; green $\circ$, LES32/128 with GM.

Figure 5

Figure 3. Probability density function (p.d.f.) of normalized $\tau _{12}^r$ before (blue) and after (red) undersampling.

Figure 6

Table 4. Statistics from a priori tests at $Re_L=149.09$ and 375.69 with $\bar \varDelta _{fDNS}/\eta =8.38$: Pearson correlation coefficients $(R)$ of $\tau _{ij}^{r}$ and SGS dissipation $\epsilon _{SGS} (=-\tau _{ij}^{r}\bar S_{ij})$, and magnitude of $\epsilon _{SGS}$.

Figure 7

Figure 4. Probability density functions of the SGS dissipation and SGS normal and shear stresses (a priori test with $\bar \varDelta _{fDNS}/\eta =8.38$): (a) $Re_L=149.09$; (b) $Re_L=375.69$. In panel (a), $\blacksquare$, fDNS32/128; red line, NNVGM(32+64)/128; blue line, CSM32/128; blue dashed line, DSM32/128; blue dotted line, GM32/128; blue dash-dotted line, DMM32/128. In panel (b), $\blacksquare$, fDNS64/256; red $\circ$, NNVGM(64+128)/256; red line, NNVGM(32+64)/128; blue line, CSM64/256; blue dashed line, DSM64/256; blue dotted line, GM64/256; blue dash-dotted line, DMM64/256.

Figure 8

Figure 5. Three-dimensional energy spectra (a posteriori test; LES32/128 and LES64/256 for $Re_L=149.09$ and 375.69, respectively, with $\bar \varDelta _{LES}/\eta =8.38$): (a) $Re_L=149.09$; (b) $Re_L=375.69$. In panel (a), $\blacktriangle$, DNS128; $\blacksquare$, fDNS32/128; red line, NNVGM(32+64)/128; blue line, CSM32/128; blue dashed line, DSM32/128; blue dotted line, GM32/128; blue dash-dotted line, DMM32/128. In panel (b), $\blacktriangle$, DNS256; $\blacksquare$, fDNS64/256; red $\circ$, NNVGM(64+128)/256; red line, NNVGM(32+64)/128; blue line, CSM64/256; blue dashed line, DSM64/256; blue dotted line, GM64/256; blue dash-dotted line, DMM64/256. Here, $u_\eta$ is the Kolmogorov velocity scale.

Figure 9

Figure 6. Probability density functions of the SGS dissipation, SGS stresses, strain rates and rotation rate (a posteriori test; LES32/128 and LES64/256 for $Re_L=149.09$ and 375.69, respectively, with $\bar \varDelta _{LES}/\eta =8.38$): (a) $Re_L=149.09$; (b) $Re_L=375.69$. In panel (a), $\blacksquare$, fDNS32/128; red line, NNVGM(32+64)/128; blue line, CSM32/128; blue dashed line, DSM32/128; blue dotted line, GM32/128; blue dash-dotted line, DMM32/128. In panel (b), $\blacksquare$, fDNS64/256; red $\circ$, NNVGM(64+128)/256; red line, NNVGM(32+64)/128; blue line, CSM64/256; blue dashed line, DSM64/256; blue dotted line, GM64/256; blue dash-dotted line, DMM64/256.

Figure 10

Table 5. NNVGMs and corresponding training data. Here, NNVGM128D and NNVGM256DD are the same as NNVGM(32+64)/128 and NNVGM(64+128)/256 discussed in § 3.2, respectively. A directory with the NNs (NNVGM128D, NNVGM(128D+256L), NNVMG(128D+512L), $\ldots$, NNVMG(128D+32768L)) and a customizable Jupyter notebook can be accessed at https://www.cambridge.org/S0022112024009923/JFM-Notebooks/files/Table_5/Table_5.ipynb. Here, the weights $W_{ij}^{(1)(2)}, W_{jk}^{(2)(3)}$ and $W_{kl}^{(3)(4)}$ in (2.21) are also accessible for NNVGM128D to NNVGM(128D+32768L). The SGS stresses $\tau _{ij}^r/U^2$ from NNVGMs are calculated with user's input values of $\bar \alpha _{ij} L/U$.

Figure 11

Table 6. Statistics from a priori test at $Re_L=375.69$ with $\bar \varDelta /\eta =16.76$: Pearson correlation coefficients $(R)$ of $\tau _{ij}^{r}$ and $\epsilon _{SGS}$, and magnitude of $\epsilon _{SGS}$.

Figure 12

Figure 7. Probability density functions of the SGS dissipation and stresses (a priori test at $Re_L=375.69$ with $\bar \varDelta /\eta =16.76$): $\blacksquare$, fDNS32/256; red $\circ$, NNVGM(128D+256D); red line, NNVGM(128D+256L); blue line, CSM32/256; blue dashed line, DSM32/256; blue dotted line, GM32/256; blue dash-dotted line, DMM32/256.

Figure 13

Figure 8. Three-dimensional energy spectra (a posteriori test at $Re_L=375.69$ with $\bar \varDelta _{LES}/\eta =16.76$; $N^3 = 32^3$): $\blacktriangle$, DNS256; $\blacksquare$, fDNS32/256; red $\circ$, NNVGM(128D+256D); red line, NNVGM(128D+256L); red dotted line, NNVGM(128D+1024L); blue line, CSM32/256; blue dashed line, DSM32/256; blue dash-dotted line, DMM32/256.

Figure 14

Figure 9. Probability density functions (a posteriori test at $Re_L=375.69$ with $\bar \varDelta _{LES}/\eta =16.76$; $N^3 = 32^3$): (a) SGS dissipation and stresses; (b) strain and rotation rates. $\blacksquare$, fDNS32/256; red $\circ$, NNVGM(128D+256D); red line, NNVGM(128D+256L); red dotted line, NNVGM(128D+1024L); blue line, CSM32/256; blue dashed line, DSM32/256; blue dash-dotted line, DMM32/256.

Figure 15

Figure 10. Three-dimensional energy spectra (a posteriori test at $Re_L=375.69$ using CD2 and box filter): (a) DNS256 (black line, spectral method; $\square$, CD2) and fDNS64/256 (dashed line, spectral method and cut-Gaussian filter; $\blacksquare$, CD2 and box filter); (b) a posteriori test with $N^3 = 32^3$; (c) a posteriori test with $N^3 = 64^3$. In panels (b) and (c), $\blacksquare$, fDNS; red line, NNVGM(128D+32765L); blue line, CSM; blue dashed line, DSM; blue dash-dotted line, DMM; dashed line, no SGS model (diverge with $N^3 = 32^3$).

Figure 16

Figure 11. Three-dimensional energy spectra from various NNVGMs ($N^3 = 64^3$): (a) $Re_L = 946.67$; (b) 6010.98; (c) 38167.31; (d) 242347.33. $\blacksquare$, filtered Kolmogorov energy spectrum, $E(k)=\frac {3}{2}{\epsilon }^{2/3} {k}^{-5/3} \exp (-k^2 \bar \varDelta ^2/12)$; red dotted line, NNVGM128D; red dash-dot-dotted line, NNVGM(128D+512L); red dash-dotted line, NNVGM(128D+2048L); red dashed line, NNVGM(128D+8192L); red line, NNVGM(128D+32768L).

Figure 17

Figure 12. Three-dimensional energy spectra at $Re_L = 375.69\unicode{x2013}242347.33$ from various SGS models ($N^3 = 64^3$): (a) NNVGM(128D+32768L); (b) CSM; (c) DSM; (d) GM; (e) DMM; ( f) no SGS model. The black dashed line denotes the Kolmogorov energy spectrum, $E(k)=\frac {3}{2}{\epsilon }^{2/3} {k}^{-5/3}$.

Figure 18

Figure 13. Illustration of the filter-size ranges of fDNS and fLES used to generate each NNVGM (FHIT), and the grid-size ranges required for the simulations of DHITs (Comte-Bellot & Corrsin 1971; Kang et al.2003). On the top of this figure (FHIT), each solid circle ($\bullet$) denotes the filter size of fDNS or fLES used for generating training data. For each NNVGM, the line connecting the first and last solid circles indicates the range of grid sizes for successful LES. On the bottom of this figure (DHIT), each solid square ($\blacksquare$) indicates the grid size normalized by the initial Kolmogorov length scale. As time goes by, the Kolmogorov length scale increases and thus $\bar {\varDelta }_{LES}/\eta$ decreases denoted as a thick dashed line.

Figure 19

Figure 14. LES of CBC DHIT with $N^3 = 32^3$: (a) resolved turbulent kinetic energy; (b) $E(k)$ at $tU_{0}/M=42$, $98$ and $171$. $\blacksquare$, filtered CBC data; red dotted line, NNVGM128D; red dashed line, NNVGM(128D+1024L); red line, NNVGM(128D+32768L); blue line, CSM; blue dashed line, DSM; blue dotted line, GM; blue dash-dotted line, DMM; dashed line, no SGS model.

Figure 20

Figure 15. LES of CBC DHIT with $N^3 = 64^3$: (a) resolved turbulent kinetic energy; (b) $E(k)$ at $tU_{0}/M=42$, $98$ and $171$. $\blacksquare$, filtered CBC data; red dotted line, NNVGM128D; red dashed line, NNVGM(128D+1024L); red line, NNVGM(128D+32768L); blue line, CSM; blue dashed line, DSM; blue dotted line, GM; blue dash-dotted line, DMM; dashed line, no SGS model.

Figure 21

Figure 16. LES of DHIT by Kang et al. (2003) with $N^3 = 32^3$: (a) resolved turbulent kinetic energy; (b) $E(k)$ at $tU_{0}/M= 20$, 30, 40 and $48$. $\blacksquare$, filtered experimental data; red dotted line, NNVGM128D; red line, NNVGM(128D+32768L); blue line, CSM; blue dashed line, DSM; blue dotted line, GM; blue dash-dotted line, DMM; dashed line, no SGS model.

Figure 22

Figure 17. LES of DHIT (Kang et al.2003) with $N^3 = 64^3$: (a) resolved turbulent kinetic energy; (b) $E(k)$ at $tU_{0}/M=20$, 30, 40 and $48$. $\blacksquare$, filtered experimental data; red dotted line, NNVGM128D; red line, NNVGM(128D+32768L); blue line, CSM; blue dashed line, DSM; blue dotted line, GM; blue dash-dotted line, DMM; dashed line, no SGS model.

Figure 23

Figure 18. Effects of NNVGMs on the prediction of DHIT (Kang et al.2003) with $N^3 = 64^3$: (a) resolved turbulent kinetic energy; (b) $E(k)$ at $tU_{0}/M= 48$. $\blacksquare$, filtered experimental data; red dotted line, NNVGM128D; red dash-dot-dotted line, NNVGM(128D+512L); red dash-dotted line, NNVGM(128D+2048L); red dashed line, NNVGM(128D+8192L); red line, NNVGM(128D+32768L).

Figure 24

Table 7. Amounts of CPU time (second) required for estimating the SGS stresses and advancing one computational time step, respectively. Simulations are performed using eight CPU cores (Intel(R) Core(TM) i9-11900KF CPU @ 3.50 GHz), and the amounts of CPU time are obtained by averaging over 50 computational time steps. In the present simulation, $\tau _{ij}$ was obtained using one GPU (GeForce RTX 3060) for NNVGM(128D+32768L), but, for comparison with traditional models, the amounts of CPU time using eight CPU cores are provided in this table.

Figure 25

Table 8. Cases with different activation functions and with/without the bias and batch normalization. In this table, the case of leReLUXX is the same as NNVGM32/128, ReLU and leaky ReLU correspond to $f(x) = \max [0, x]$ and $\max [0.02x, x]$, respectively, and O and X indicate with and without using corresponding function (or parameters), respectively.

Figure 26

Table 9. Statistics from a priori tests at $Re_L=149.09$ with $\bar \varDelta _{fDNS}/\eta =8.38$: Pearson correlation coefficients $(R)$ of $\tau _{ij}^{r}$ and SGS dissipation $\epsilon _{SGS} (=-\tau _{ij}^{r}\bar S_{ij})$, and magnitude of $\epsilon _{SGS}$.

Figure 27

Figure 19. Probability density functions of the SGS dissipation and SGS stresses; (a) a priori test with fDNS32/128; (b) a posteriori test with LES32/128. $\blacksquare$, fDNS32/128; blue dash-dotted line, ReLUOO; blue dashed line, leReLUOO; blue line, leReLUOX; red line, leReLUXX; green line, XXX.

Figure 28

Figure 20. Three-dimensional energy spectra (a posteriori test at $Re_L=149.09$; LES32/128) $\blacksquare$, fDNS32/128; blue dash-dotted line, ReLUOO; blue dashed line, leReLUOO; blue line, leReLUOX; red line, leReLUXX; green line, XXX.

Figure 29

Figure 21. Three-dimensional energy spectra (a posteriori test; LES64/32768): (a) FHIT ($Re_L=242347.33$; $N^3 = 64^3$); (b) DHIT at $tU_0/M = 42$, 98 and 171 (CBC; $N^3 = 32^3$); (c) DHIT at $tU_0/M = 20$, 30, 40 and 48 (Kang et al.2003; $N^3 = 32^3$). $\blacksquare$, filtered Kolmogorov energy spectrum (in panel a) or filtered experimental data (in panels b and c); blue line, $\textrm {FGR} = 1$; red line, $\textrm {FGR} = 2$.

Figure 30

Table 10. Probability functions for undersampling and corresponding numbers of each fDNS or fLES training data (i.e. fDNS64/128, fDNS32/128, fLES32/256, fLES32/512, etc.) during the recursive procedure. Here, NNVGM(128D+32768L) is used for the SGS model.

Figure 31

Figure 22. Three-dimensional energy spectra (a posteriori test with NNVGM(128D+32768L)): (a) FHIT ($Re_L=242347.33$; $N^3 = 64^3$); (b) DHIT at $tU_0/M = 42$, 98 and 171 (CBC; $N^3 = 32^3$); (c) DHIT at $tU_0/M = 20$, 30, 40 and 48 (Kang et al.2003; $N^3 = 32^3$). $\blacksquare$, filtered Kolmogorov energy spectrum (in panel a) or filtered experimental data (in panels b and c); dotted line, Pc; blue line, Ps1; blue purple line, Ps2; red purple line, Ps3; red line, Ps4; green line, Pl.

Supplementary material: File

Cho et al. supplementary material

Cho et al. supplementary material
Download Cho et al. supplementary material(File)
File 1.6 MB