Hostname: page-component-77f85d65b8-8wtlm Total loading time: 0 Render date: 2026-03-28T20:07:37.446Z Has data issue: false hasContentIssue false

Large eddy simulation of flow over a circular cylinder with a neural-network-based subgrid-scale model

Published online by Cambridge University Press:  27 March 2024

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

Abstract

A neural-network-based large eddy simulation is performed for flow over a circular cylinder. To predict the subgrid-scale (SGS) stresses, we train two fully connected neural network (FCNN) architectures with and without fusing information from two separate single-frame networks (FU and nFU, respectively), where the input variable is either the strain rate (SR) or the velocity gradient (VG). As the input variables, only the grid-filtered variables are considered for the SGS models of G-SR and G-VG, and both the grid- and test-filtered variables are considered for the SGS models of T-SR and T-VG. The training data are the filtered direct numerical simulation (fDNS) data at $Re_d=3900$ based on the free-stream velocity and cylinder diameter. Using the same grid resolution as that of the training data, the performances of G-SR and G-VG (grid-filtered inputs) and T-SR-FU and T-VG-FU (grid- and test-filtered inputs with fusion) are better than those of the dynamic Smagorinsky model and T-SR-nFU and T-VG-nFU (grid- and test-filtered inputs without fusion). These FCNN-based SGS models are applied to untrained flows having different grid resolutions from that of training data. Although the performances of G-SR and G-VG are degraded, T-SR-FU and T-VG-FU still provide good performances. Finally, T-SR-FU and T-VG-FU trained at $Re_d = 3900$ are applied to higher-Reynolds-number flows ($Re_d = 5000$ and 10 000) and their results are also in good agreements with those of fDNS and previous experiment, indicating that adding the test-filtered variables and fusion increases the prediction capability even for untrained Reynolds number flows.

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

Figure 1. Computational domain, coordinate system and grid distributions for DNS and LES: (a) computational domain and coordinate system; (b) grid distributions near the circular cylinder. In (b), ‐‐‐‐ (black), DNS3900; ‐‐‐‐ (red), DNS5000; —— (black), LES3900; —— (blue), LES3900c; —— (red), LES3900f and LES5000; —— (green), LES10000.

Figure 1

Figure 2. Turbulence statistics from DNS ($Re_d = 3900$): (a) mean streamwise velocity; (b) r.m.s. streamwise velocity fluctuations. —— (red), Present DNS; $\bullet$, experiment (Parnaudeau et al.2008); —— (blue), DNS (Ma et al.2000). Here, the bracket $\langle {\cdot } \rangle$ denotes the averaging over the spanwise direction and in time.

Figure 2

Table 1. Flow quantities at $Re_d=5000$ from present DNSs, together with those from previous experiments and DNS. Here, $L_r$ is the mean recirculation length measured from the base point of the cylinder, $\langle C_{p_b} \rangle$ is the mean base pressure coefficient, $U_{min}$ is the maximum mean negative velocity along the centreline and $\langle C_D \rangle$ is the mean drag coefficient.

Figure 3

Figure 3. Turbulence statistics from present DNSs ($Re_d=5000$): (a) mean streamwise velocity along the centreline; (b) r.m.s. streamwise velocity fluctuations along the centreline; (c) mean streamwise velocity in the wake; (d) r.m.s. streamwise velocity fluctuations in the wake. Present DNSs (—— (red), $N_x\times N_y\times N_z = 2049 \times 1001 \times 128$; $\bullet$ (red), $2049 \times 1001 \times 192$; + (red), $3073 \times 1281 \times 128$); $\bullet$ (black), experiment (Norberg 1998); —— (blue), DNS (Aljure et al.2017).

Figure 4

Figure 4. Spatiotemporal extraction of the training data: (a) time histories of the drag and lift coefficients (DNS); (b) contours of the instantaneous SGS shear stress $\tau _{xy}$. In (b), the dashed box denotes the $(x,y)$ plane where training data are extracted.

Figure 5

Table 2. Model architectures and input variables for NNs.

Figure 6

Figure 5. Schematic diagrams of the present NNs: (a) NN with two hidden layers (denoted as nFU architecture); (b) NN with two and one hidden layers before and after fusion (subtraction), respectively (denoted as FU architecture). Here, $\bar {\boldsymbol {q}}$ and $\tilde {\bar {\boldsymbol {q}}}$ are the grid- and test-filtered inputs, respectively, $N_q$ is the number of input components (see table 2), and $\boldsymbol {s}$ is the output.

Figure 7

Figure 6. Statistics of the SGS variables at three streamwise locations in the wake from a priori tests ($Re_d=3900$ (left) and 5000 (right)): (a) mean SGS shear stress $\langle\tau_{xy}\rangle$; (b) mean SGS dissipation $\langle\epsilon_{SGS}\rangle$; (c) mean backscatter $\langle\epsilon^-_{SGS}\rangle$. $\bullet$, fDNS; —— (blue), G-SR; ‐‐‐‐ (blue), G-VG; —— (green), T-SR-nFU; ‐‐‐‐ (green), T-VG-nFU; —— (red), T-SR-FU; ‐‐‐‐ (red), T-VG-FU; $+$, DSM.

Figure 8

Figure 7. Robustness of the NN-based SGS models under the inputs without and with noise (equation 4.1) ($Re_d=3900$): (a) $\langle\tau_{xx}\rangle$; (b) $\langle\tau_{xy}\rangle$; (c) $\langle\tau_{yy}\rangle$; (d) $\langle\tau_{zz}\rangle$. —— (blue), G-SR without noise; ‐‐‐‐ (blue), G-SR with noise; —— (green), T-SR-nFU without noise; ‐‐‐‐ (green), T-SR-nFU with noise; —— (red), T-SR-FU without noise; ‐‐‐‐ (red), T-SR-FU with noise.

Figure 9

Table 3. Computational parameters for LESs and simulation results. Here, $L_r$ is the mean recirculation length measured from the base point of the cylinder, $\langle C_{p_b} \rangle$ is the mean base pressure coefficient, $U_{min}$ is the maximum mean negative velocity along the centreline and $\langle C_D \rangle$ is the mean drag coefficient.

Figure 10

Figure 8. Flow statistics from LES3900 (a posteriori test): (a) mean streamwise velocity; (b) r.m.s. streamwise velocity fluctuations. $\bullet$, fDNS; —— (blue), G-SR; ‐‐‐‐ (blue), G-VG; —— (green), T-SR-nFU; ‐‐‐‐ (green), T-VG-nFU; —— (red), T-SR-FU; ‐‐‐‐ (red), T-VG-FU; +, DSM; $\circ$, no SGS model.

Figure 11

Figure 9. Contours of the instantaneous vorticity magnitude in the near-wake behind the cylinder ($Re_d = 3900$). The contour levels are from $|\omega |d/U= 0$ to 30 by increments of 3. An inset for the case of T-SR-FU is the result of applying a hybrid scheme ($\textrm {QUICK} + \textrm {CD}2$; Yun et al.2006) to the convection terms of the Navier–Stokes equations.

Figure 12

Figure 10. Flow statistics from LES3900c and LES3900f (coarser and finer grid resolutions than that of training data, respectively; a posteriori test): (a) mean streamwise velocity (LES3900c); (b) r.m.s. streamwise velocity fluctuations (LES3900c); (c) mean streamwise velocity (LES3900f); (d) r.m.s. streamwise velocity fluctuations (LES3900f). $\bullet$, fDNS; —— (blue), G-SR; ‐‐‐‐ (blue), G-VG; —— (red), T-SR-FU; ‐‐‐‐ (red), T-VG-FU; $+$, DSM; $\circ$, no SGS model.

Figure 13

Table 4. Averaged relative magnitudes of finite-differencing errors, evaluated for filter sizes of $\varDelta (\textrm {LES})/\varDelta (\textrm {DNS})=2$ (for $Re_d = 3900$, the size of LES grids in each direction is about two times that of DNS grids; see table 3). The information on LES3900cc (Gcc-64) and LES390ccc (Gccc-64) are given in table 5.

Figure 14

Table 5. Numbers of grid points used for a posteriori test at $Re_d = 3900$. Note that the grid distributions of G-64, Gf-64 and Gc-64 in this table are the same as those of LES3900, LES3900f and LES3900c in table 3, respectively.

Figure 15

Figure 11. Instantaneous vortical structures coloured with the contours of the instantaneous pressure from T-SR-FU: (a) $Re_d=3900$ (LES3900); (b) $Re_d=10\,000$ (LES10000).

Figure 16

Figure 12. Flow statistics from LES5000 (a posteriori test): (a) mean streamwise velocity; (b) r.m.s. streamwise velocity fluctuations. $\bullet$, fDNS; —— (red), T-SR-FU; ‐‐‐‐ (red), T-VG-FU; $+$, DSM; $\circ$, no SGS model.

Figure 17

Figure 13. Flow statistics from LES10000 (a posteriori test): (a) mean streamwise velocity; (b) r.m.s. streamwise velocity fluctuations. $\bullet$, experiment (Dong et al.2006); —— (red), T-SR-FU; ‐‐‐‐ (red), T-VG-FU; $+$, DSM; $\circ$, no SGS model.

Figure 18

Figure 14. Effect of the number of training data on the mean SGS shear stress (a priori test; $Re_d = 3900$): (a) $N_t=25$ (——, black), $N_t=13$ (——, blue) and $N_t=50$ (——, red) with $N_s=4$; (b) $N_s=4$ (——, black), $N_s=2$ (——, blue) and $N_s=8$ (——, red) with $N_t=25$. $\bullet$, fDNS.

Figure 19

Figure 15. Effect of the domain size of extracting training data on the mean streamwise velocity and r.m.s. streamwise velocity fluctuations (a posteriori test; $Re_d = 3900$): (a) mean streamwise velocity; (b) r.m.s. streamwise velocity fluctuations. $\bullet$, fDNS; —— (black), present domain ($-1 \le x/d \le 6, -1.5 \le y/d \le 1.5$); —— (blue), smaller domain ($-1 \le x/d \le 4, -1 \le y/d \le 1$); —— (red), larger domain ($-1 \le x/d \le 8, -2 \le y/d \le 2$).

Figure 20

Figure 16. Effects of the numbers of the hidden layers ($N_{hl}$) and nodes ($N_{nd}$) in G-SR on the flow statistics (a posteriori test; $Re_d=3900$): (a) mean streamwise velocity; (b) r.m.s. streamwise velocity fluctuations. $\bullet$, fDNS; —— (black), $(N_{hl},N_{nd})=(2,128)$; —— (red), $(N_{hl},N_{nd})=(1,128)$; ‐‐‐‐ (red), $(N_{hl},N_{nd})=(3,128)$; —— (blue), $(N_{hl},N_{nd})=(2,64)$; ‐‐‐‐ (blue), $(N_{hl},N_{nd})=(2,256)$.

Figure 21

Figure 17. Turbulence statistics in the wake from different grid distributions ($Re_d = 3900$): (a) mean streamwise velocity; (b) r.m.s. streamwise velocity fluctuations. Here, the results for (G-**) are plotted at $y/d \le 0$, and those for (Gc-**) and (Gf-**) are plotted at $y/d \ge 0$. $\bullet$ (black), fDNS (G-64); $\bullet$ (blue), fDNS (Gc-64); $\bullet$ (red), fDNS (Gf-64); —— (black), T-SR-FU (G-64); ‐‐‐‐ (black), T-SR-FU (G-48); ‐$\,\cdot\, $$\,\cdot\, $$\,\cdot $ (black), T-SR-FU (G-80); —— (blue), T-SR-FU (Gc-64); —— (green), T-SR-FU (Gcc-64, with ad hoc clipping); —— (cyan), T-SR-FU (Gccc-64, with ad hoc clipping); ‐‐‐‐ (blue), T-SR-FU (Gc-48); —— (red), T-SR-FU (Gf-64); ‐‐‐‐ (red), T-SR-FU (Gf-80); $+$ (black), DSM (G-64); $+$ (blue), DSM (Gc-64); $+$ (red), DSM (Gf-64). LESs with Gcc-64 and Gccc-64 without ad hoc clipping diverged.

Figure 22

Figure 18. Turbulence statistics in the wake from coarser grids ($Re_d=5000$ and 10000): (a) mean streamwise velocity; (b) r.m.s. streamwise velocity fluctuations. Here, the results for $Re_d = 5000$ and 10000 are plotted in $y/d \le 0$ and $y/d \ge 0$, respectively. $\bullet$, fDNS (LES5000 $(=\textrm{Gf-64})$ and LES10000); —— (black), T-SR-FU (LES5000 $(=\textrm{Gf-64})$ and LES10000); —— (blue), T-SR-FU (G-64 for $Re_d=5000$ and Gf-64 for $Re_d=10000$); —— (red), T-SR-FU (Gc-64 for $Re_d=5000$ and G-64 for $Re_d=10000$); $+$ (black), DSM (LES5000 $(=\textrm{Gf-64})$ and LES10000). $+$ (blue), DSM (G-64 for $Re_d=5000$ and Gf-64 for $Re_d=10000$); $+$ (red), DSM (Gc-64 for $Re_d=5000$ and G-64 for $Re_d=10000$).

Figure 23

Figure 19. LESs of turbulent channel flow at $Re_{\tau}=178$ with grids of $16\times49\times16$ (LES178, left) and $12\times49\times12$ (LES178c, right): (a) mean streamwise velocity; (b) r.m.s. velocity fluctuations; (c) Reynolds shear stress. The training data (fDNS) have the grids of $16\times49\times16$ from DNS with $96\times97\times96$. $\bullet$, fDNS; —— (blue), G-SR; —— (red), T-SR-FU; $+$, DSM; $\circ$, no SGS model. In the right column of this figure, the results from LES ($12 \times 49 \times 12$) using G-SR trained with two datasets of fDNS data ($16 \times 49 \times 16$ and $8 \times 49 \times 8$, respectively) are given with $\vartriangle$ (Park & Choi 2021). Here, $\langle\cdot\rangle$ denotes the averaging over the streamwise and spanwise directions and in time.

Figure 24

Table 6. Amounts of CPU time (seconds) required for estimating the SGS stresses and advancing one computational timestep, respectively.