Hostname: page-component-6766d58669-nf276 Total loading time: 0 Render date: 2026-05-14T14:20:22.517Z Has data issue: false hasContentIssue false

Toward neural-network-based large eddy simulation: application to turbulent channel flow

Published online by Cambridge University Press:  05 March 2021

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 fully connected neural network (NN) is used to develop a subgrid-scale (SGS) model mapping the relation between the SGS stresses and filtered flow variables in a turbulent channel flow at $Re_\tau = 178$. A priori and a posteriori tests are performed to investigate its prediction performance. In a priori test, an NN-based SGS model with the input filtered strain rate or velocity gradient tensor at multiple points provides highest correlation coefficients between the predicted and true SGS stresses, and reasonably predicts the backscatter. However, this model provides unstable solution in a posteriori test, unless a special treatment such as backscatter clipping is used. On the other hand, an NN-based SGS model with the input filtered strain rate tensor at single point shows an excellent prediction capability for the mean velocity and Reynolds shear stress in a posteriori test, although it gives low correlation coefficients between the true and predicted SGS stresses in a priori test. This NN-based SGS model trained at $Re_\tau = 178$ is applied to a turbulent channel flow at $Re_\tau = 723$ using the same grid resolution in wall units, providing fairly good agreements of the solutions with the filtered direct numerical simulation (DNS) data. When the grid resolution in wall units is different from that of trained data, this NN-based SGS model does not perform well. This is overcome by training an NN with the datasets having two filters whose sizes are bigger and smaller than the grid size in large eddy simulation (LES). Finally, the limitations of NN-based LES to complex flow are discussed.

Information

Type
JFM Papers
Copyright
© The Author(s), 2021. Published by Cambridge University Press
Figure 0

Figure 1. Schematic diagram of the present NN with two hidden layers (128 neurons per hidden layer). Here, $\boldsymbol {q}\ ({=}[q_1, q_2,\ldots , q_{N_q}]^\textrm {T})$ is the input of NN, $N_q$ is the number of input components (see table 1) and $\boldsymbol {s}\ ({=}[s_1,s_2,\ldots ,s_6]^\textrm {T})$ is the output of NN.

Figure 1

Table 1. Input variables of NN models.

Figure 2

Figure 2. Training error and correlation coefficient by NN1–NN5: ($a$) training error versus epoch; ($b$) correlation coefficient. In ($a$), red solid line, NN1; blue solid line, NN2; red dashed line, NN3; blue dashed line, NN4; green solid line, NN5. In ($b$), gray and black bars are the correlation coefficients for training and test datasets, respectively, where the number of test data is the same as that of the training data (${N}_{data} = 1\,241\,600$ (§ 2.2)).

Figure 3

Table 2. Computational parameters of DNS. Here, the superscript $+$ denotes the wall unit and $\Delta T$ is the sampling time interval of the instantaneous DNS flow fields for constructing the input and output database.

Figure 4

Figure 3. Mean SGS shear stress and dissipation predicted by NN1–NN5 (a priori test at $Re_\tau =178$): ($a$) mean SGS shear stress $\langle \tau _{xy} \rangle$; ($b$) mean SGS dissipation $\langle \varepsilon _{SGS} \rangle$. ${\bullet }$, fDNS; red solid line, NN1; blue solid line, NN2; red dashed line, NN3; blue dashed line, NN4; green solid line, NN5; $+$, DSM; $\triangledown$, SSM.

Figure 5

Table 3. Correlation coefficients between the true and predicted $\tau _{xy}$ and $\varepsilon _{SGS}$.

Figure 6

Figure 4. Mean SGS transport and backward SGS dissipation predicted by NN1–NN5 (a priori test at $Re_\tau =178$): ($a$) mean SGS transport $\langle T_{SGS} \rangle$; ($b$) mean backward SGS dissipation (backscatter) $\langle \varepsilon _{SGS}^{-} \rangle$. ${\bullet }$, fDNS; red solid line, NN1; blue solid line, NN2; red dashed line, NN3; blue dashed line, NN4; green solid line, NN5; $+$, DSM; $\triangledown$, SSM.

Figure 7

Figure 5. Statistics from a priori test at $Re_\tau =723$: ($a$) mean SGS shear stress $\langle \tau _{xy} \rangle$; ($b$) mean SGS dissipation $\langle \varepsilon _{SGS} \rangle$; ($c$) mean SGS transport $\langle T_{SGS} \rangle$; ($d$) mean backscatter $\langle \varepsilon _{SGS}^{-} \rangle$. ${\bullet }$, fDNS; red solid line, NN1; blue solid line, NN2; red dashed line, NN3; blue dashed line, NN4; green solid line, NN5; $+$, DSM; $\triangledown$, SSM. Here, NN1–NN5 are trained with fDNS at $Re_\tau =178$.

Figure 8

Table 4. Computational parameters of LES. Here, the computations are performed at constant mass flow rates (i.e. $Re_b = 5600$ and 27 600) and $Re_\tau$ given in this table are the results of LESs. For $Re_b = 5600$ and 27 600, the domain sizes in $x$ and $z$ directions are $2 {\rm \pi}\delta \times {\rm \pi}\delta$ and ${\rm \pi} \delta \times 0.5{\rm \pi} \delta$, respectively. $\Delta y^+_{min} = 0.4$ for all simulations, and $\Delta y^+_{min}$, $\Delta x^+$ and $\Delta z^+$ in this table are computed with $u_\tau$ from DNS (table 2).

Figure 9

Figure 6. Mean velocity profiles from LES178 (a posteriori test): ($a$) without clipping the backscatter; ($b$) with clipping the backscatter. ${\bullet }$, fDNS; red solid line, NN1; blue solid line, NN2; red dashed line, NN3; blue dashed line, NN4; green solid line, NN5; $+$, DSM; $\triangledown$, SSM; $\circ$, no SGS model. LESs with NN3–NN5 and SSM without clipping diverged.

Figure 10

Figure 7. Turbulence statistics from LES178 (a posteriori test): ($a$) rms velocity fluctuations; ($b$) Reynolds shear stress; ($c$) mean SGS shear stress; ($d$) mean backscatter; ($e$) mean SGS transport; $(f)$ mean SGS dissipation. $\bullet$, fDNS; red solid line, NN1; blue solid line, NN2; red dashed line, NN3; blue dashed line, NN4; green solid line, NN5; $+$, DSM; $\triangledown$, SSM; $\circ$, no SGS model. Note that the results of NN3–NN5 and SSM are obtained with clipping the backscatter.

Figure 11

Figure 8. Instantaneous vortical structures from LES178 (a posteriori test): ($a$) DNS; ($b$) fDNS; ($c$) NN1; ($d$) DSM; ($e$) no SGS model. For the visual clarity, the vortical structures from fDNS and LES are plotted at the same grid resolutions in $x$ and $z$ directions as those of DNS by padding high wavenumber components of the velocity with zeros.

Figure 12

Figure 9. One-dimensional energy spectra of the velocity fluctuations at $y^+ = 30$ from LES178 (a posteriori test): ($a$) streamwise wavenumber; ($b$) spanwise wavenumber. $\bullet$, fDNS; red solid line, NN1; $+$, DSM.

Figure 13

Figure 10. Turbulence statistics from LES723 (a posteriori test): ($a$) mean velocity; ($b$) r.m.s. velocity fluctuations; ($c$) Reynolds shear stress. $\bullet$, fDNS; red solid line, NN1; $+$, DSM; $\circ$, no SGS model.

Figure 14

Figure 11. One-dimensional energy spectra of the velocity fluctuations at $y^+=30$ from LES723 (a posteriori test): ($a$) streamwise wavenumber; ($b$) spanwise wavenumber. $\bullet$, fDNS; red solid line, NN1; $+$, DSM.

Figure 15

Figure 12. Changes in the turbulence statistics due to different grid resolutions (LES178c and LES178f) (a posteriori test): ($a$) mean velocity; ($b$) r.m.s. velocity fluctuations; ($c$) Reynolds shear stress. $\circ$, fDNS; solid line, NN1 without clipping the backscatter; dashed line, NN1 with clipping the backscatter; $+$, DSM; black lines and symbols are from LES178c; and red lines and symbols are from LES178f.

Figure 16

Table 5. NN1 trained with different fDNS datasets. Here, fDNS$_N$ denotes the fDNS data with the number of grid points $N$ (${=} N_x = N_z$). Note that the numbers of grid points ($N_x \times N_z$) for LES178c and LES178f are $12 \times 12$ and $24 \times 24$, respectively, as listed in table 4.

Figure 17

Figure 13. Turbulence statistics from LES178c (a posteriori test): ($a$) mean velocity; ($b$) r.m.s. velocity fluctuations; ($c$) Reynolds shear stress. $\bullet$, fDNS; black solid line, $\text {NN}_{16}$; blue solid line, $\text {NN}_{12}$; red solid line, $\text {NN}_{8,16}$; $+$, DSM.

Figure 18

Figure 14. Turbulence statistics from LES178f (a posteriori test): ($a$) mean velocity; ($b$) r.m.s. velocity fluctuations; ($c$) Reynolds shear stress. $\bullet$, fDNS; black solid line, $\text {NN}_{16}$; blue solid line, $\text {NN}_{24}$; red solid line, $\text {NN}_{16,32}$; $+$, DSM.

Figure 19

Figure 15. Effects of the number of hidden layers ($N_{hl}$) on the mean SGS shear stress (a priori test) and Reynolds shear stress (a posteriori test; LES178): ($a$) NN1; ($b$) NN3; ($c$) NN5. $\bullet$, fDNS; black solid line, $N_{hl} = 1$; blue solid line, $N_{hl} = 2$; red solid line, $N_{hl} = 3$.