Hostname: page-component-66d9dcfd78-x2rqb Total loading time: 0.001 Render date: 2026-08-08T17:59:16.850Z Has data issue: false hasContentIssue false

Ensemble Kalman method for learning turbulence models from indirect observation data

Published online by Cambridge University Press:  29 September 2022

Xin-Lei Zhang
Affiliation:
The State Key Laboratory of Nonlinear Mechanics, Institute of Mechanics, Chinese Academy of Sciences, Beijing 100049, PR China School of Engineering Sciences, University of Chinese Academy of Sciences, Beijing 100049, PR China
Heng Xiao*
Affiliation:
Kevin T. Crofton Department of Aerospace and Ocean Engineering, Virginia Tech, Blacksburg, VA 24060, USA
Xiaodong Luo
Affiliation:
Norwegian Research Centre (NORCE), Nygårdsgaten 112, 5008 Bergen, Norway
Guowei He*
Affiliation:
The State Key Laboratory of Nonlinear Mechanics, Institute of Mechanics, Chinese Academy of Sciences, Beijing 100049, PR China School of Engineering Sciences, University of Chinese Academy of Sciences, Beijing 100049, PR China
*
Email addresses for correspondence: hengxiao@vt.edu, hgw@lnm.imech.ac.cn
Email addresses for correspondence: hengxiao@vt.edu, hgw@lnm.imech.ac.cn

Abstract

In this work, we propose using an ensemble Kalman method to learn a nonlinear eddy viscosity model, represented as a tensor basis neural network, from velocity data. Data-driven turbulence models have emerged as a promising alternative to traditional models for providing closure mapping from the mean velocities to Reynolds stresses. Most data-driven models in this category need full-field Reynolds stress data for training, which not only places stringent demand on the data generation but also makes the trained model ill-conditioned and lacks robustness. This difficulty can be alleviated by incorporating the Reynolds-averaged Navier–Stokes (RANS) solver in the training process. However, this would necessitate developing adjoint solvers of the RANS model, which requires extra effort in code development and maintenance. Given this difficulty, we present an ensemble Kalman method with an adaptive step size to train a neural-network-based turbulence model by using indirect observation data. To our knowledge, this is the first such attempt in turbulence modelling. The ensemble method is first verified on the flow in a square duct, where it correctly learns the underlying turbulence models from velocity data. Then the generalizability of the learned model is evaluated on a family of separated flows over periodic hills. It is demonstrated that the turbulence model learned in one flow can predict flows in similar configurations with varying slopes.

Information

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

Figure 1. Schematic of the ensemble-based learning with sparse velocity data, consisting of the following four steps: (a) sample the weights of the tensor basis neural network (NN); (b) construct the Reynolds stress by evaluating the neural-network-based turbulence model; (c) propagate the constructed Reynolds stress tensor to velocity by solving the RANS equations; (d) update the neural network weights by incorporating observation data.

Figure 1

Table 1. Summary of different approaches for learning turbulence models in terms of the cost function and update schemes. We compared the ensemble Kalman method with adaptive stepping (Luo et al.2015; Kovachki & Stuart 2019) with other related methods, including learning from direct data, i.e. the Reynolds stresses (Ling et al.2016), adjoint-based learning (Holland et al.2019; MacArt et al.2021; Michelén-Ströfer & Xiao 2021) and ensemble gradient learning (Michelén-Ströfer et al.2021b). The DNS mean velocities are used as example indirect data.

Figure 2

Table 2. Summary of the performance of different approaches for learning turbulence models in two different cases, i.e. flow in a square duct and flow over periodic hills. We compare the present method (Luo et al.2015; Kovachki & Stuart 2019) with other related methods, including learning from direct data (Ling et al.2016), adjoint-based learning (Holland et al.2019; MacArt et al.2021; Michelén-Ströfer & Xiao 2021) and ensemble gradient learning (Michelén-Ströfer et al.2021b). The square duct case uses the prediction from Shih's quadratic model (Shih 1993) as training data, while the periodic hill case uses the DNS results as training data.

Figure 3

Figure 2. Contour plots of input features of the reference data for the square duct case and periodic hill case. (a) Square duct, $\theta _1$. (b) Square duct, $|\theta _1|-|\theta _2|$. (c) Periodic hills, $\theta _1$. (d) Periodic hills, $\theta _2$. (e) Periodic hills, $|\theta _1|-|\theta _2|$.

Figure 4

Table 3. Summary of the configurations and the training data.

Figure 5

Figure 3. Plots of the velocity vector and components $u_{x}$ and $u_y$ in the square duct predicted from the models learned by the adjoint (dg) and ensemble (hk) methods, compared against the ground truth (ac). The velocity vectors are plotted along with contours of the in-plane velocity $u_y$ scaled by a factor of 1000. The error contour is plotted based on $\|\boldsymbol {u} - \boldsymbol {u}^{truth}\|$ normalized by the maximum magnitude of $\boldsymbol {u}^{truth}$.

Figure 6

Figure 4. Plots of Reynolds shear stresses $\tau _{xy}$ and $\tau _{yz}$, normal stress $\tau _{yy}$, and normal stresses imbalance $\tau _{yy}-\tau _{zz}$, in the square duct predicted from the models learned by the adjoint (ei) and ensemble (jn) methods, compared against the ground truth (ad). The error contour is plotted based on $\|\boldsymbol {\tau } - \boldsymbol {\tau }^{truth}\|$ normalized by the maximum magnitude of $\boldsymbol {\tau }^{truth}$.

Figure 7

Table 4. Comparison of the estimation error and time cost between adjoint-based and ensemble-based learning.

Figure 8

Figure 5. (a) Contours of scalar invariant $\theta _1$ and $|\theta _1|-|\theta _2|$, with comparison among the adjoint-based learned model, the ensemble-based learned model, and the truth. (b) Kernel density plot of $\theta _1$ from the truth and the estimation with the ensemble-based learned model. The circle indicates the $30\,\%$ quantile (i.e. $30\,\%$ of the cells have $\theta _1$ smaller than this value). The probability densities of the truth and the estimation are plotted on the margins.

Figure 9

Figure 6. Comparison plots of the functional mapping between the scalar invariant and the tensor coefficient $g$ among the truth, the baseline $k$$\varepsilon$ model, and the models learned with adjoint and ensemble methods: (a) $g^{(1)}$, (b) $g^{(2)} - 0.5 g^{(3)} + 0.5 g^{(4)}$, (c) $g^{(2)}$, (d) $g^{(3)}$, and (e) $g^{(4)}$.

Figure 10

Figure 7. Contour plots of the velocity with the direct learned model, the ensemble-based learned model, and DNS for the periodic hill case. Note that the plots are from in-sample tests.

Figure 11

Figure 8. Comparison of velocity and the friction coefficient $c_f$ at the bottom wall along profiles among the $k$$\varepsilon$ model, the direct learned model, the ensemble-based learned model, and the DNS for the periodic hill case. Note that the plots are from in-sample tests. (a) Horizontal velocity, $u_x$. (b) Vertical velocity, $u_y$. (c) Friction coefficient, $c_f$.

Figure 12

Table 5. Comparison of the estimation error and time cost between the direct and ensemble-based learning methods for the periodic hill case.

Figure 13

Figure 9. (a) Contour plots of $\theta _1$, $\theta _2$ and $|\theta _1|-|\theta _2|$, with comparison among the direct learned model, the ensemble-based learned model and the DNS. (b,c) Kernel density plots of $\theta _1$ and $\theta _2$ from the truth and the model estimation for periodic hill case, respectively. The round circles in (b,c) indicate the values of the $30\,\%$ quantiles (i.e. $30\,\%$ of the cells have $\boldsymbol {\theta }$ larger than this value in the magnitude). The probability densities of the truth and the model estimation are plotted on the margins.

Figure 14

Figure 10. Plots of the mapping between the scalar invariants $\boldsymbol {\theta }$ and the tensor coefficient $\boldsymbol {g}$, with comparison among the baseline model, the direct learned model and the ensemble-based learned model for the periodic hill case. (a,d) Model functions of $g^{(1)}$ and $g^{(2)}$, respectively, where the blue surface represents the ensemble-based learned model, and the green surface represents the direct learned model. (b,c,e,f) Curve plots of the model function at specific planes. For the direct learned model, the plots indicate the learned function at $\theta /\theta _{max}=0.25$ and $0.75$. For the baseline and the ensemble-based learned model, the plots show only the learned function at $\theta /\theta _{max}=0.25$, since they are almost constant in the entire function space.

Figure 15

Figure 11. Comparison of (a) turbulence kinetic energy, and (b) the deviatoric part of Reynolds stress $b_{xy}$, along profiles among the $k$$\varepsilon$ model, the direct learned model, the ensemble-based learned model and the DNS, for the periodic hill case.

Figure 16

Figure 12. Results of generalizability tests on configurations with different slopes ($\alpha =0.5, 0.8, 1.2, 1.5$). (ad) Velocity profiles for $\alpha =0.5, 0.8, 1.2, 1.5$, respectively, with comparison among the $k$$\varepsilon$ model, the direct learned model, the ensemble-based learned model and the DNS. (e,f) Plots of the prediction error over the entire field and recirculation region, respectively. The shadow in (f) indicates the recirculation region for error calculations. The results of the direct learned model are not shown for the configuration with $\alpha =0.5$, since the solver diverges in that case.

Figure 17

Table 6. Comparison of the maximum values of input features in flow configurations with different slopes $\alpha$.

Figure 18

Figure 13. Detailed schematic of ensemble-based model-consistent training of the tensor basis neural network: (a) generate samples of neural network weights; (b) extract input features; (c) evaluate Reynolds stress based on tensor basis neural network; (d) propagate the Reynolds stress to velocities; (e) update weights of neural networks based on ensemble Kalman method.

Figure 19

Table 7. Sensitivity of predictive performance to network architecture and observation data for the square duct case.

Figure 20

Table 8. Sensitivity of predictive performance to network architecture for the periodic hill case.