A Turbulence Model Based On Deep Neural Network Co
A Turbulence Model Based On Deep Neural Network Co
Abstract There exists continuous demand of improved ity models (LEVM) assume a linear relationship be-
turbulence models for the closure of Reynolds Averaged tween the Reynolds stress anisotropy tensor and the
Navier-Stokes (RANS) simulations. Machine Learning local mean strain rate:
(ML) offers effective tools for establishing advanced em-
aij = −2νT S̄, (1)
pirical Reynolds stress closures on the basis of high fi-
delity simulation data. This paper presents a turbu- where aij is the Reynolds anisotropy tensor with aij =
lence model based on the Deep Neural Network(DNN) < ui uj > − 32 kδij and S̄ the mean strain rate. The
which takes into account the non-linear relationship be- velocity co-variance < ui uj > is the Reynolds stress
tween the Reynolds stress anisotropy tensor and the tensor and k the turbulent kinetic energy. Classical one-
local mean velocity gradient as well as the near-wall equation models (e.g. the turbulent-kinetic-energy model
effect. The construction and the tuning of the DNN- [1] and the Spalart-Allmaras model [2]) and two-equation
turbulence model are detailed. We show that the DNN- models (e.g. the k-ε model [3] and the k-ω model [4])
turbulence model trained on data from direct numer- based on the turbulent viscosity hypothesis mainly dif-
ical simulations yields an accurate prediction of the fer in the modeling of the turbulent viscosity νT . The
Reynolds stresses for plane channel flow. In particu- models with a linear stress-strain relationship do not
lar, we propose including the local turbulence Reynolds capture the correct anisotropy of the Reynolds stresses
number in the model input. in many flows including e.g. pipe flow with a contrac-
tion [5].
Keywords turbulence modeling · machine learning ·
near-wall effect · plane channel flow Nonlinear turbulent viscosity models have also been
developed for the closure problem of the RANS simula-
tions, the general nondimensional form of which is given
1 Introduction as [6]:
bij = Bij (S,
b Ω),
b (2)
Turbulent flows involve a range of spatial and tem-
poral scales, a complete resolving of which is compu- where bij is the Reynolds anisotropy tensor nondimen-
tationally expensive. Reynolds-averaged Navier-Stokes sionalized by k. The mean strain rate and mean ro-
(RANS) simulation, which solves equations for mean tation rate tensors nondimensionalized by a turbulent
quantities, is a feasible concept widely used in indus- time scale are denoted by S b and Ω,
b respectively. The
trial turbulent flow problems. The Reynolds stresses turbulent time scale can be constructed by means of
are unknowns in the RANS equations and must be de- the local turbulent dissipation rate ε and the turbulent
termined by a turbulence model. Linear eddy viscos- kinetic energy k, as suggested by Pope [6]. The explicit
∗
expressions of equation (2) have been proposed in a va-
Corresponding Author: Hao Chen
School of Mechanics and Engineering,
riety of different forms with examples found in [6, 7, 8,
Southwest Jiaotong University, Chengdu 610031, China 9]. Generally, the classical nonlinear viscosity models
Tel.: +0086-28-87600797 yield more accurate predictions of the Reynolds stress
E-mail: [email protected] anisotropy and allow the calculation of secondary flows,
2 Muyuan Liu et al.
yet are not widely used due to the inconsistent perfor- tensor S b and rotation rate tensor Ω b as input features
mance improvement [5, 10]. [10, 16, 17]. In addition to S
b and Ω,b Zhang et al. [17]
It is well known that the turbulence modeling in the selected the wall units y + as an input feature, which
near-wall region should take the effect of the fluid vis- takes into account the near-wall effect. Zhang et al.
cosity into account, because the local turbulence Reynolds [17] showed that DNN with this additional input fea-
number ReL = k 2 /(εν) tends to zero approaching the ture yields an improvement on the prediction of the
wall, where ν denotes the kinematic viscosity of the Reynolds anisotropy tensor in plane channel flows. Al-
fluid. Classically, the near-wall effect is accommodated ternatively, we propose to select the turbulence Reynolds
by means of damping functions applied to the modeled number (ReL = k 2 /(εν)) as an additional quantity in
isotropic turbulent viscosity νT . As an example given the input, in order to take into account the viscosity
by Jones and Launder [11], in association with the k-ε effect near the wall. We select the turbulence Reynolds
model the turbulent viscosity is given as number as the additional input feature, because the tur-
bulence Reynolds number is a local quantity, which can
k2
νT = fµ Cµ , (3) be easily constructed with available turbulent kinetic
ε
energy k and turbulent dissipation rate ε. Instead of S b
with a calibrated constant Cµ = 0.09 and a damping and Ω, equivalently, we select the nondimensionalized
b
function local velocity gradient for the input, because the strain
−2.5 rate and rotation rate tensors are a decomposition of
fµ = exp( ). (4)
1 + ReL /50 the velocity gradient and using the velocity gradient
reduces the number of items in the input.
Equation (3) reduces to the standard k-ε formulation
The objective of this paper is to present a turbu-
away from the wall.
lence model based on DNN, which distinguishes from
Alongside with the growing popularity of applying
previous works mainly in the introduction of the local
machine learning methods in turbulence simulations (a
Reynolds number as an additional input feature. The
recent review is given by Brunton et al. [12]), deep neu-
DNN used in this paper is trained and tested on data
ral networks (DNN) have been introduced for devel-
obtained from direct numerical simulations of plane chan-
oping RANS turbulent models in the past years. Deep
nel flows. The organization of this paper is as follows.
neural network establishes a transformation of input
We first detail the structure of the DNN for the tur-
features through multiple nonlinear interactions to an
bulence modeling and the corresponding tuning pro-
output, which enables the learning of nonlinear turbu-
cess. Then, we evaluate the predicted Reynolds stress
lence models from high fidelity simulation data, i.e. data
anisotropy given by the DNN-turbulence model followed
from direct numerical simulations (DNS) or large eddy
by a conclusion.
simulations (LES). Deep neural networks have gained
attention in turbulence modeling partially due to its
overwhelming performance in other research fields in- 2 Deep Neural Network
cluding e.g. image classification [13] and speech recog-
nition [14]. Zhang and Duraisamy [15] predicted a cor- Deep neural networks are composed of multiple layers
rection factor for the turbulent production term using of nodes (or neurons), with each node connected to all
neural networks. Ling et al. [10] designed a DNN ar- nodes in neighboring layers, as shown schematically in
chitecture to model the turbulence closure which en- Fig. 1. The input layer at the far left is provided with an
ables the reproduction of secondary flows in duct flow. input x which is then linearly transformed by means of
Weatheritt et al. [16] applied DNN in turbulence mod- a weight matrix W represented by the connecting lines
elling. Their model applied to jets in crossflow yields an in Fig. 1 and a bias vector b. The outcome Wx + b
improvement on the prediction of the Reynolds stress is passed to the nodes in the first hidden layer, with
anisotropy over the model based on the linear relation- each of the components then treated by means of a
ship. Zhang et al. [17] predicted the Reynolds stress so-called activation function and serves as the input for
anisotropy in channel flows using DNN. the next layer. This procedure applies to the subsequent
Given an appropriate input, a nonlinear turbulence layers and terminates after giving an output vector y
model based on DNN predicts the non-dimensionalized in the output layer. A common activation function f =
Reynolds-stress anisotropy tensor bij . One major con- max(0,x), which is called Rectified Linear Unit (ReLU)
cern of using DNN for turbulence modeling is the se- [18], is applied in this work.
lection of the input features. In consistence with the The objective of DNN is to learn a mapping f :
classical non-linear turbulence models, almost all DNN- X → Y on a training dataset constructed with values
turbulence models select so far the local strain rate sampled from the input space X and correspondingly
A turbulence model based on deep neural network considering the near-wall effect 3
nl nn = 10 20 30
3 0.0263 0.0234 0.0206
4 0.0252 0.0222 0.0202
5 0.0266 0.0204 0.0195
6 0.0235 0.0215 0.0198
7 0.0255 0.0209 0.0198
References