Advanced Turbulence1
Advanced Turbulence1
G. E. P. Box
TUR-1
The turbulent world around us
What is turbulence?
Due to its complexity, a definition does not work properly for turbulence, instead
of it, it’s better to explain its characteristics.
Tennekes and Lumley [1] in their book called “A First Course in Turbulence”, list
the characteristics of turbulence:
• Irregularity
• Diffusivity
• Dissipation
• Large Reynolds numbers
• Three Dimensional Vorticity fluctuations
• Continuum
• Feature of a flow, not fluid
TUR-2
[1] H. Tennekes and J. L. Lumley. A first course in turbulence, MIT Press, 1972.
The turbulent world around us
TUR-3
The turbulent world around us
What is turbulence?
• For the purpose of this training, let us state the
following:
• Turbulence is an unsteady, aperiodic motion in
which all three velocity components fluctuate in
space and time.
QOI
• Every transported quantity shows similar
fluctuations (pressure, temperature, species,
concentration, and so on)
• Turbulent flows contains a wide range of eddy
sizes (scales):
• Large eddies derives their energy from the Time
Von Karman vortices created when prevailing winds sweeping Von Karman Vortex Streets in the northern Pacific Photographed from
east across the northern Pacific Ocean encountered Alaska's the International Space Station
Aleutian Islands Photo credit: NASA
Photo credit: USGS EROS Data Center Satellite Systems Branch. Copyright on the images is held by the contributors. Apart from Fair Use,
Copyright on the images is held by the contributors. Apart from Fair permission must be sought for any other purpose.
Use, permission must be sought for any other purpose.
TUR-6
The turbulent world around us
TUR-7
The turbulent world around us
Flow visualization over a spinning spheroid Flow around an airfoil with a leading-edge slat
Photo credit: Y. Kohama. Photo credit: S. Makiya et al.
Copyright on the images is held by the contributors. Apart from Fair Use, Copyright on the images is held by the contributors. Apart from Fair Use,
permission must be sought for any other purpose. permission must be sought for any other purpose.
TUR-8
The turbulent world around us
TUR-10
Turbulence, does it matter?
Vortex shedding past square cylinder
TUR-11
Turbulence, does it matter?
Vortex shedding past square cylinder
References:
Lyn, D.A. and Rodi, W., The flapping shear layer formed by flow separation from the forward corner of a square cylinder. J. Fluid Mech., 267, 353, 1994.
Lyn, D.A., Einav, S., Rodi, W. and Park, J.H., A laser-Doppler velocimetry study of ensemble-averaged characteristics of the turbulent near wake of a square
cylinder. Report. SFB 210 /E/100.
TUR-12
Turbulence, does it matter?
Vortex shedding past square cylinder
TUR-13
Introduction to turbulence modeling
Turbulence modeling
• The majority of natural and engineering flows are turbulent, hence the necessity of
modeling turbulence.
• The objective of turbulence modeling is to develop equations that predict the time
averaged velocity, pressure, temperature fields without calculating the complete
turbulent flow pattern as a function of time.
• Turbulence can be wall bounded or free shear. Depending of what you want to
simulate, you will need to choose an appropriate turbulence model.
• There is no universal turbulence model, hence you need to know the capabilities and
limitations of the turbulence models.
• Due to the multi-scale and unsteady nature of turbulence, modeling it is not an easy
task.
• Simulating turbulent flows in any general CFD solver (e.g., OpenFOAM®, SU2,
Fluent, CFX, Star-CCM+) requires selecting a turbulence model, providing initial
conditions and boundary conditions for the closure equations of the turbulent model,
selecting a near-wall modeling, and choosing runtime parameters and numerics.
TUR-14
Introduction to turbulence modeling
t+T
¯(x, t) = 1 (x, t)dt, T1 << T << T2
T t
• We have defined turbulence as an unsteady, aperiodic motion in which velocity components and
every transported quantity fluctuate in space and time.
• For most engineering application it is impractical to account for all these instantaneous
fluctuations.
• Therefore, we need to somehow remove those small scales by using models. TUR-15
Introduction to turbulence modeling
• Turbulence has a direct effect on the velocity profiles and mixing of transported quantities.
• The turbulent case shows two regions. One thin region close to the walls with very large velocity
gradients, and a region far from the wall where the velocity profile is nearly uniform.
• In the illustration, the velocity profile of the turbulent case has been averaged (in reality there are
fluctuations). TUR-16
Introduction to turbulence modeling
• In this case, a laminar boundary layer starts to form at the leading edge.
• As the flow proceeds further downstream, large shear stresses and velocity gradient develop within the
boundary layer. At one point the flow becomes turbulent.
• The turbulent motion increases the mixing and the boundary layer mixing.
• What is happening in the transition region is not well understood. The flow can become laminar again or can
become turbulent.
• As for the pipe flow, the velocity profiles in the laminar and turbulent regions are different. TUR-19
Introduction to turbulence modeling
Thermal boundary layer vs. Viscous boundary layer Thermal boundary layer in function of Prandtl number (Pr)
Forced convection
• The Reynold number in this case is 100, for these conditions the flow still is laminar.
• We are in the presence of the Von Karman vortex street, which is the periodic shedding of vortices caused by
the unsteady separation of the fluid around blunt bodies.
• Vorticity is not a direct indication of turbulence.
• However, turbulent flows are rotational, they exhibit vortical structures. TUR-21
Introduction to turbulence modeling
Convective effects UL
ReL = where L = x, d, dh , etc
µ Viscous effects
Redh 2300
• Notice that other factors such as free-stream turbulence, surface conditions, blowing, suction,
roughness and other disturbances, may cause transition to turbulence at lower Reynolds
number.
• If you are dealing with natural convection and buoyancy, turbulent flows occurs when
Ra
109
Pr
TUR-23
Introduction to turbulence modeling
• These scales are indicative of the smallest eddies, that is, the scale at which the
energy is dissipated.
For a complete derivation please refer to:
[1] H. Tennekes and J. L. Lumley. A first course in turbulence, MIT Press, 1972.
[2] S. Pope. Turbulent Flows, Cambridge University Press, 2000.
[3] D. Wilcox. Turbulence Modeling for CFD, DCW Industries ,Inc., 2010. TUR-24
Introduction to turbulence modeling
u 1 u
= and Re = =1
k 3/2 k k 1/2 l0
• Where l0 = , ⌧0 = t =
" , and ReT ⌘ is the turbulence Reynolds number
" ⌫
Integral scales (length and time) TUR-25
Introduction to turbulence modeling
Cell size
This cell is resolving the eddies
dk
"=
dt
• The turbulent power spectrum represents the distribution of the turbulent kinetic energy across
the various length scales. It is a direct indication of how energy is dissipated with eddies size.
• The mesh resolution determines the fraction of the energy spectrum directly resolved.
• Eddies cannot be resolved down to the molecular dissipation limit. TUR-29
Introduction to turbulence modeling
• The energy-containing eddies are denoted by L0; L1 and L2 denotes the size of the eddies in
the inertial subrange such that L2 < L1 < L0; LN is the size of the dissipative eddies.
• The large, energy containing eddies transfer energy to smaller eddies via vortex stretching.
• Smallest eddies convert kinetic energy into thermal energy via viscous dissipation.
• Large eddies derive their energy from the mean flow.
• The size and velocity of large eddies are on the order of the mean flow
TUR-30
Introduction to turbulence modeling
k 1.5 k 0.5
l0 = or l0 = where Cµ = 0.09
✏ Cµ !
• The ratio of integral length scale to grid length scale Rl can be computed as follows,
l0 p
3
Rl = where can be approximated as follows ⇡ cell volume
This approximation is accurate if the aspect
ratios are modest (less than 1.2)
Under-resolved area
• To identify integral length scales and grid length scales you can plot contours of these quantities
at different locations/planes in the domain.
• The lowest limit of Rl can be clipped so that the well resolved areas do not appear. In this
case we are clipping (showing) 0 < Rl < 5 .
• Under-resolved areas (the areas shown), will need finer meshes or local mesh adaption.
• Near-wall regions always pose challenges. In these areas is better to quantify the y+ value.
TUR-34
Introduction to turbulence modeling
Y
+ y + or wall distance units is a very
important concept when dealing
with turbulence modeling,
Viscous sublayer Buffer Log-law layer
Layer remember this definition as we are
going to use it a lot.
Inner region Outer region
TUR-35
Introduction to turbulence modeling
18
16
14
12
+
U 10
u+ = y +
8
6
4
0
-1 0 1 2 3
10 10 10 10 10
+
Y
Outer region
Boundary layer
Log-law layer
30 < y+ < 300
Buffer layer
10 < y+ < 30
Viscous sublayer
y+ < 10
Wall
TUR-37
Introduction to turbulence modeling
Log-law layer
30 < y+ < 300
Buffer layer
10 < y+ < 30
Viscous sublayer
Wall Function
y+ < 10
Wall
TUR-38
Introduction to turbulence modeling
TUR-39
Introduction to turbulence modeling
• We have seen that turbulent flows are characterize by instantaneous fluctuations of velocity,
pressure, and all transported quantities.
• In most engineering applications is not of interest resolving the instantaneous fluctuations.
• To remove the instantaneous fluctuations or small scales, two methods can be used:
• Reynolds averaging
• Filtering
• Both methods introduce additional terms that must be modeled for closure. TUR-41
Introduction to turbulence modeling
• Both methods introduce additional terms in the governing equations that must be
modeled.
• The final goal of turbulence modeling is to find the closure equations to model the
additional terms (usually a stress tensor).
TUR-42
Introduction to turbulence modeling
MODEL
URANS
complexity
Unsteady Reynolds-Averaged Navier-Stokes equations
SAS
Scale Adaptive Simulations
Scale-Resolving Simulations
DES
SRS
LES
Large Eddy Simulations
DNS
Direct Numerical Simulations
TUR-43
Introduction to turbulence modeling
@ ⇤ ⇤
⇢ + ⇢r · (ū) = ⌧ R :rū ⇢! + r · [(µ + µT ) r]
@t
@! !
⇢ + ⇢r · (ū!) = ↵ ⌧ R :rū ⇢! 2 + r · [(µ + µT ) r!]
@t
· (u) = 0
u p 2
+ · (uu) = + u
t
· (ū) = 0
ū p̄ 2 1 R
+ · (ūū) = + ū ·
t
Note: if you drop the time derivative we call it RANS (steady equations), and if you retain the time derivative we call it
URANS (unsteady equations). TUR-46
Introduction to turbulence modeling
• By substituting the previous equations into our starting equations, using the previous
averaging rules, and doing some algebra, we arrive to the incompressible
URANS/RANS equations,
· (ū) = 0
ū p̄ 2 1 R
+ · (ūū) = + ū ·
t
If we retain this term we talk about URANS equations and if we drop it we talk about RANS equations TUR-47
Introduction to turbulence modeling
uu uv uw
R
= uu = vu vv vw
wu wv ww
R 2 h i 2
R T
⌧ = ⇢ u0 u0 = 2µT D ⇢kI = µT ru + (ru) ⇢kI
<latexit sha1_base64="YqNja42N83bFvTpUDFxdRrLkkIA=">AAAC4nicdVJNj9MwEHXC11K+Chy5jKjQLkJbJQUJOCCtgAPcFtSyK9Xd4jhOa9WJI3uMqKJcuXAAxJVfxY2/wgmnDV8tjGRp9Oa9meexk1JJi1H0LQhPnT5z9tzO+c6Fi5cuX+levfbKame4GHGttDlOmBVKFmKEEpU4Lo1geaLEUbJ40tSP3ghjpS6GuCzFJGezQmaSM/TQtPudInMnL+ER7FMz10CVyHAPqPaipmdFE63Syu263boGauRsjrc9ewA0d9MhrMu/6U/r2nfbB5pmhvFqUFd361XjRUt9Xnt1q21mjQFowRLFtlo5P/AO/HL0f1Lr6oSieIvV8Ccw2bABGz6m3V7Uj1YB20ncJj3SxuG0+5WmmrtcFMgVs3YcRyVOKmZQciXqDnVWlIwv2EyMfVqwXNhJtXqjGm55JIVMG38KhBX6p6JiubXLPPHMnOHcbtYa8F+1scPswaSSRelQFHw9KHMKUEPz4JBKIziqpU8YN9J7BT5nfivov0XHLyHevPJ2Mhr0H/bjF/d6B4/bbeyQG+Qm2SMxuU8OyDNySEaEB6+Dd8GH4GMowvfhp/DzmhoGreY6+SvCLz8AG9HnyA==</latexit>
3 3
1
• In the previous equation, R
D̄ = ( u+ uT ) denotes the strain-rate tensor.
2
• I is the identity matrix.
• µT is the turbulent eddy viscosity.
1 0 0
• k=
2
u ·u is the turbulent kinetic energy.
• At the end of the day we want to determine the turbulent eddy viscosity.
• The turbulent eddy viscosity is not a fluid property, it is a property needed by the
turbulence model.
TUR-49
Introduction to turbulence modeling
t+T
¯(x) = lim 1 (x, t) dt where (x, t) = ¯(x) + (x, t)
T + T t
XN
1
¯(x, t) = lim (x, t) where (x, t) = ¯(x, t) + (x, t)
N !1 N
<latexit sha1_base64="qV4Y5lGc+Dum6yRf2LPCNGzUfVQ=">AAACXXicbVHBSgMxFMyuWrWtWvXgwUuwCApSdkVQDwXRiydRsFZoasmmWRuazS7JW7GE/Ulv4sVPMa091NYHgWFm3svLJMqkMBAEn56/tLxSWl1bL1eqG5tbte2dJ5PmmvEWS2WqnyNquBSKt0CA5M+Z5jSJJG9Hw5ux3n7j2ohUPcIo492EvioRC0bBUb1aTiKqLckGojgiUSr79r04geMmkSLpWZJQGDAq7V2BCaSYCBXDyOFYU2bDYtbgWJO7HtEMi5c/wmT87PSiV6sHjWBSeBGEU1BH07rv1T5IP2V5whUwSY3phEEGXUs1CCZ5USa54RllQ/rKOw4qmnDTtZN4CnzomD6OU+2OAjxhZzssTYwZJZFzjrc289qY/E/r5BBfdK1QWQ5csd+L4lxil9Q4a9wXmjOQIwco08LtitmAuujA/UjZhRDOP3kRtE4bl43w4ax+dT1NYw3towN0hEJ0jq7QLbpHLcTQl+d5Za/iffslv+pv/lp9b9qzi/6Uv/cDiXW3yA==</latexit>
i=1
• For ensemble average the number of experiments of the ensemble must be large
enough to eliminate effects of fluctuations. This type of averaging can be applied to
any flow (steady or unsteady).
TUR-50
Introduction to turbulence modeling
TUR-51
Introduction to turbulence modeling
@k ⇤ ⇤
⇢ + ⇢r. (ūk) = ⌧ R : rū ⇢k! + r. [(µ + µT ) rk]
<latexit sha1_base64="AxBYNhxJssL1YFGt8u3bamsWk/c=">AAACvHicbVFda9RAFJ3Ej9b1a9VHXy4uQlVcEhGqBbHoi49VurawSdebySQ7ZiYJ81FYQv6k+OK/cfKxalsvDBzOPWfOzL1JLbg2QfDL869dv3FzZ/fW5Padu/fuTx88/Korqyhb0EpU6jRBzQQv2cJwI9hprRjKRLCTpPjY9U/OmdK8Ko/NpmaxxLzkGadoHLWa/ozUuoIozRTSJqpRGY4CivYvNi28gEFVYiIQ5hAJlpk9iJJKpE2UoGps20LhVDxfm2fwDiKD9uwLHGw9vWjQd9KXjmAGz54PFztnJVmOXdCFjOU2Sdqup3kue5O0q2OAP3mjafuAeDWdBfOgL7gKwhHMyFhHq+mPKK2olaw0VKDWyzCoTdx0E6CCtZPIalYjLTBnSwdLlEzHTT/9Fp46JoWsUu6UBnr2X0eDUuuNTJxSolnry72O/F9vaU32Jm54WVvDSjoEZdZtpIJulZByxagRGweQKu7eCnSNbpHGLXzihhBe/vJVsHg1fzsPP7+eHX4Yp7FLHpMnZI+EZJ8ckk/kiCwI9Q68bx73vvvvfeYXvhykvjd6HpEL5Z//BtSj1Sg=</latexit>
@t
@! ! R
⇢ + ⇢r. (ū!) = ↵ ⌧ : rū ⇢! 2 + r. [(µ + µT ) r!]
@t k
<latexit sha1_base64="nTUl99UXxw8Y1ld54+d/1eQ4W/U=">AAAC4HicbVJLi9RAEO7E1zq+Rj16aRyEFXFIFsEHCItePK6y4y5MZ4ZKp5M004/Q3RGGkJsXDype/Vne/Cce7WQy6z4sCHz5quqrL1VJK8Gti6LfQXjp8pWr13auj27cvHX7zvjuvY9W14ayGdVCm+MULBNcsZnjTrDjyjCQqWBH6eptlz/6xIzlWh26dcUSCYXiOafgPLUc/yGm1JhkuQHakAqM4yAw0ZIV0P4jXIuf4E2pglQAnmIiWO52MUm1yBqSgmnqth06fSkvSvcYv8YERFXCyYRBeOUrHdSLD/jVVrGX2Kh1Qk89wRwMQ/u2xV5n4sz8+daFrLuc5YWE7mV5iPGJie2A09aS5XgSTaM+8EUQD2CChjhYjn+RTNNaMuWoAGvncVS5pOkWRAVrR6S2rAK6goLNPVQgmU2a/kItfuSZDOfa+Ec53LOnOxqQ1q5l6isluNKez3Xk/3Lz2uUvkoarqnZM0c2gvPYH07g7N864YdSJtQdADfdeMS3Bn8L5n2LklxCf/+SLYLY3fTmN3z+b7L8ZtrGDHqCHaBfF6DnaR+/QAZohGiyCz8HX4FtIwy/h9/DHpjQMhp776EyEP/8Cw8nlMQ==</latexit>
• These are the closure equations of the turbulence problem using Reynolds average.
• These are not physical quantities. They kind of represent the generation and
destruction of turbulence.
• In the k ! model, the turbulent eddy viscosity can be computed as follows,
⇢k
µt =
!
<latexit sha1_base64="ldb+0qL2C6qJC0Afa3qlDtnD+AU=">AAACBnicbVBNS8NAEN34WetX1KMgi0XwVBIR1INQ9OKxgrGFJoTNZtMu3c2G3Y1QQm5e/CtePKh49Td489+4bXPQ1gcDj/dmmJkXZYwq7Tjf1sLi0vLKam2tvr6xubVt7+zeK5FLTDwsmJDdCCnCaEo8TTUj3UwSxCNGOtHweux3HohUVKR3epSRgKN+ShOKkTZSaB/4PA81vIR+nEiEC18OBByWhS846aMytBtO05kAzhO3Ig1QoR3aX34scM5JqjFDSvVcJ9NBgaSmmJGy7ueKZAgPUZ/0DE0RJyooJn+U8MgoMUyENJVqOFF/TxSIKzXikenkSA/UrDcW//N6uU7Og4KmWa5JiqeLkpxBLeA4FBhTSbBmI0MQltTcCvEAmTy0ia5uQnBnX54n3knzounenjZaV1UaNbAPDsExcMEZaIEb0AYewOARPINX8GY9WS/Wu/UxbV2wqpk98AfW5w8yaJka</latexit>
TUR-52
Introduction to turbulence modeling
u⌧ u2⌧ u⌧
U= lny + C k=p ⇤ !=p ⇤ ky
<latexit sha1_base64="W9A1Meli38lDHRoAkqxjVuyVauw=">AAACFXicbVDJSgNBEO1xN25Rj14agyCCYUYE9SCIXjxGMCpkYqjp1MQmPYvdNUIY5iu8+CtePKh4Fbz5N3aWg9uDgsd7VVTVC1IlDbnupzM2PjE5NT0zW5qbX1hcKi+vXJgk0wLrIlGJvgrAoJIx1kmSwqtUI0SBwsuge9L3L+9QG5nE59RLsRlBJ5ahFEBWapW3/STCDvBD7rdDDSLPWrlPkBVF7ptbTbkfIMH1VsG7vFe0yhW36g7A/xJvRCpshFqr/OG3E5FFGJNQYEzDc1Nq5qBJCoVFyc8MpiC60MGGpTFEaJr54K2Cb1ilzcNE24qJD9TvEzlExvSiwHZGQDfmt9cX//MaGYX7zVzGaUYYi+GiMFOcEt7PiLelRkGqZwkILe2tXNyATYdskiUbgvf75b+kvlM9qHpnu5Wj41EaM2yNrbNN5rE9dsROWY3VmWD37JE9sxfnwXlyXp23YeuYM5pZZT/gvH8BPYyfow==</latexit>
• These equations are here referred to as the standard wall function for the k !
method. They relate the local wall shear stress (through the shear velocity u⌧ ) to
the mean velocity, turbulence kinetic energy k, and rate of dissipation !.
• A small implicit system must be solved in an iterative way in order to compute the
friction velocity u⌧ .
• First we compute the friction velocity, then we compute k, and then we find !.
• By adopting a mesh where the first cell center is located in the logarithmic layer, it is
possible to use the law-of-the-wall to specify the boundary condition for the
dependent variables (u, k, and !) so that the turbulence model equations are not
solved close to the wall.
• Each turbulence model formulation has different wall function equations. TUR-53
Introduction to turbulence modeling
U1 10U1 10 5 U1
2 2
0.1U1
< !f arf ield < < kf arf ield <
L L ReL ReL
✓ ◆ 1
⇢k µt 3
!f arf ield = kf arf ield = (U I)2
<latexit sha1_base64="CjOO40KMHpXvsnD88Mx5ox+EvsI=">AAACNnicbVBNb9NAEF2XfoRQ2gBHLqtGSOmByK4qQQ9IEVw4oVRqSKQ4tdbrcbLKrtfaHSNFlv8VF/5Gb+XCARDX/oRuEoMg4UkjPb03o5l5cS6FRd+/9XYe7O7tHzQeNh8dPj46bj15+tHqwnAYcC21GcXMghQZDFCghFFugKlYwjCev1v6w09grNDZFS5ymCg2zUQqOEMnRa0PoVYwZVGZMpMKkElF39AwSQ3jZWhmms6rMlRFRUMJKXb+WKqI8LdjxHSGp9fly6CKWm2/669At0lQkzap0Y9aN2GieaEgQy6ZtePAz3FSMoOCS6iaYWEhZ3zOpjB2NGMK7KRc/V3RF05JaKqNqwzpSv17omTK2oWKXadiOLOb3lL8nzcuMH09KUWWFwgZXy9KC0lR02WINBEGOMqFI4wb4W6lfMZcMOiibroQgs2Xt8ngrHvRDS7P2723dRoN8pyckA4JyCvSI+9JnwwIJ5/JV/Kd/PC+eN+8n96vdeuOV888I//Au7sHsn2tPA==</latexit>
µ µ 2
TUR-54
Introduction to turbulence modeling
6⌫
!wall = 10 2 kwall = 0
y
where = 0.075 and y is the distance to the first cell center normal to the wall.
https://turbmodels.larc.nasa.gov/
• You can also visit our website and use the calculator to estimate turbulence
quantities,
http://www.wolfdynamics.com/tools.html?id=110
TUR-55
Introduction to turbulence modeling
This is a two equation model. Very robust and widely used despite the known limitations of the
model. Performs poorly for complex flows involving severe pressure gradient, separation, strong
Standard k–epsilon streamline curvature. Suitable for initial iterations, initial screening of alternative designs, and
parametric studies. Can be only used with wall functions.
This is a two equation model. Suitable for complex shear flows involving rapid strain, moderate
swirl, vortices, and locally transitional flows (e.g. boundary layer separation, massive separation,
Realizable k–epsilon and vortex shedding behind bluff bodies, stall in wide-angle diffusers, room ventilation). It
overcome the limitations of the standard k-epsilon model.
This is a two equation model. Superior performance for wall-bounded boundary layer, free
shear, and low Reynolds number flows compared to models from the k-epsilon family. Suitable
Standard k–omega for complex boundary layer flows under adverse pressure gradient and separation (external
aerodynamics and turbomachinery).
This is a two equation model. Offers similar benefits as the standard k–omega. Not overly
sensitive to inlet boundary conditions like the standard k–omega. Provides more accurate
SST k–omega prediction of flow separation than other RANS models. Can be used with and without wall
functions. Probably the most widely used RANS model.
TUR-56
Introduction to turbulence modeling
TUR-57
Turbulence modeling in OpenFOAM®
• LRR • kEpsilon
• LamBremhorstKE • kOmega
• LaunderSharmaKE • kOmegaSST
• LienCubicKE • kOmegaLM
• LienLeschziner • kOmegaSSTSAS
• RNGkEpsilon • kkLOmega
• SSG • qZeta
• ShihQuadraticKE • realizableKE
• SpalartAllmaras • v2f
TUR-58
Turbulence modeling in OpenFOAM®
• DeardorffDiffStress • WALE
• Smagorinsky • dynamicKEqn
• SpalartAllmarasDDES • dynamicLagrangian
• SpalartAllmarasDES • kEqn
• SpalartAllmarasIDDES • kOmegaSSTDES
• And if you are interested in doing laminar simulations (simulations with no turbulence
model or what some people call DNS), you can use the following model:
• laminar (DNS)
• cubeRootVolDelta • PrandtlDelta
• IDDESDelta • SmoothDelta
• maxDeltaxy • vanDriestDelta
• In you are working with LES dynamic turbulence models, you will find the following
filter functions:
• anisotropicFilter
• laplaceFilter
• simpleFilter
TUR-60
Turbulence modeling in OpenFOAM®
• You can find the turbulence models hardwired for multiphase flows (dispersed flows),
in the following directories:
• $WM_PROJECT_DIR/src/TurbulenceModels/phaseCompressible/RAS
• $WM_PROJECT_DIR/src/TurbulenceModels/phaseCompressible/LES
TUR-61
Turbulence modeling in OpenFOAM®
TUR-62
Turbulence modeling in OpenFOAM®
• You have the source code, so take your time and try to read it.
TUR-63
Turbulence modeling in OpenFOAM®
• alphatWallFunction • kLowReWallFunction
• epsilonWallFunction • nutWallFunction
• fWallFunction • omegaWallFunction
• kqRWallFunction • v2WallFunction
• The source code of the wall functions is located in the following directories:
• $WM_PROJECT_DIR/src/TurbulenceModels/turbulenceModels/derivedFvPatc
hFields/wallFunctions
• $WM_PROJECT_DIR/src/TurbulenceModels/compressible/turbulentFluidThe
rmoModels/derivedFvPatchFields/wallFunctions
• $WM_PROJECT_DIR/src/TurbulenceModels/incompressible/turbulentTransp
ortModels/derivedFvPatchFields/wallFunctions
• $WM_PROJECT_DIR/src/regionModels/surfaceFilmModels/derivedFvPatchFi
elds/wallFunctions
TUR-64
Turbulence modeling in OpenFOAM®
• nutkAtmRoughWallFunction • nutURoughWallFunction
• nutkRoughWallFunction • nutUSpaldingWallFunction
• nutkWallFunction • nutUTabulatedWallFunction
• nutLowReWallFunction • nutUWallFunction
• The source code of the nut wall functions is located in the following directories:
• $WM_PROJECT_DIR/src/TurbulenceModels/turbulenceModels/derivedFvPatc
hFields/wallFunctions/nutWallFunctions
• You will find the following turbulent thermal diffusivity boundary conditions:
• alphatJayatillekeWallFunction
• alphatWallFunction
• The source code of the nut wall functions is located in the following directories:
• $WM_PROJECT_DIR/src/TurbulenceModels/compressible/turbulentFluidThe
rmoModels/derivedFvPatchFields/wallFunctions/alphatWallFunctions
TUR-65
Turbulence modeling in OpenFOAM®
3
k = (U I)2
2
• The initial value for the specific rate of dissipation ! can be found as follows
✓ ◆ 1
⇢k µt
!=
<latexit sha1_base64="XVPPQdsSUhAH6XbcJ0B/bXiGr58=">AAACK3icbVDLSgNBEJz1bXxFPXoZDIIeDLsiqAch6MWjglEhG8PspDcZMrOzzPQKYdkP8uKvCOJBxav/4SRG8VXQUFR1090VpVJY9P1nb2x8YnJqema2NDe/sLhUXl65sDozHOpcS22uImZBigTqKFDCVWqAqUjCZdQ7HviXN2Cs0Mk59lNoKtZJRCw4Qye1ysehVtBh9JCG7dgwnoemq2mvyEOVFTSUEOPml6WyFn46RnS6uHWdbwdFq1zxq/4Q9C8JRqRCRjhtlR/CtuaZggS5ZNY2Aj/FZs4MCi6hKIWZhZTxHutAw9GEKbDNfPhsQTec0qaxNq4SpEP1+0TOlLV9FblOxbBrf3sD8T+vkWG838xFkmYICf9YFGeSoqaD5GhbGOAo+44wboS7lfIuc8Ggy7fkQgh+v/yX1HeqB9XgbLdSOxqlMUPWyDrZJAHZIzVyQk5JnXByS+7JE3n27rxH78V7/Wgd80Yzq+QHvLd34MeoOg==</latexit>
µ µ
µt /µ 1 10 100
TUR-67
Turbulence modeling in OpenFOAM®
30 y + 300
• Use scalable wall functions, this only applies with the k ! SST model:
1 y + 300
y+ 6
TUR-68
Turbulence modeling in OpenFOAM®
kwall = k or kwall = 1e 10
• For ! you can use the wall function omegaWallFunction with the following value:
6⌫
!wall = 10 2 or the free-stream value
y
where = 0.075 and y is the distance to the first cell center normal to the
wall.
To avoid potential erroneous arithmetic operations, it is recommended to use a small
value instead of 0
TUR-69
Turbulence modeling in OpenFOAM®
kwall = 1e 10
• For ! you should use the wall function omegaWallFunction with the following value:
6⌫
!wall = 10 2 or the free-stream value
y
where = 0.075 and y is the distance to the first cell center normal to the
wall.
• To avoid potential erroneous arithmetic operations, it is recommended to use a small
value instead of 0 TUR-70
Turbulence modeling in OpenFOAM®
kwall = 1e 10
!wall = 1e 10
• To avoid potential erroneous arithmetic operations, we like to use a small value
instead of 0.
• To properly resolve the boundary layer, it is recommended to cluster at least 10 layers
close to the walls.
TUR-71
Turbulence modeling in OpenFOAM®
Setting nut boundary conditions for the k ! Turbulence model
• $WM_PROJECT_DIR/src/TurbulenceModels/turbulenceModels/de
rivedFvPatchFields/wallFunctions/nutWallFunctions
TUR-72
Turbulence modeling in OpenFOAM®
Setting nut boundary conditions for the k ! Turbulence model
• If you are using the k ! SST turbulence model and you are interested in using
continuous wall functions, you need to use the following wall function:
• nutUSpaldingWallFunction
• nutUSpaldingWallFunction is a generic wall function that uses U instead of k. It
can be used with all low-Re and high-Re turbulence models.
• A low-Re turbulence model solves the boundary layer ( y + 6 ).
• A high-Re turbulence model uses wall functions ( 30 y + 300 ).
• Other nut wall function options are:
• nutkRoughWallFunction (high-Re)
• nutkWallFunction (high-Re)
• nutLowReWallFunction (low-Re)
• nutUWallFunction (high-Re)
TUR-73
Turbulence modeling in OpenFOAM®
Typical wall functions boundary conditions
• Remember, you can only use wall functions if the primitive patch (the patch
type defined in the boundary dictionary), is of type wall.
nutUSpaldingWallFunction** or
nut(–)WallFunction* or
nut nutLowReWallFunction or
nutUSpaldingWallFunction**
fixedValue 0 (or a small number)
kqRWallFunction or kLowReWallFunction or
k, q, R
kLowReWallFunction fixedValue 0 (or a small number)
epsilonWallFunction or
epsilon epsilonWallFunction zeroGradient or fixedValue 0
(or a small number)
omegaWallFunction** or
omega omegaWallFunction
fixedValue 0 (or a small number)
* $WM_PROJECT_DIR/src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/nutWallFunctions
** For scalable wall functions TUR-74
Turbulence modeling in OpenFOAM®
y + wall distance units
+
• We never know a priori the y value (because we do not know the friction velocity)
• What we usually do is to run the simulation for a few time-steps or iterations, and then
+
we get an estimate of the y value.
• After determining where we are in the boundary layer (viscous sub-layer, buffer layer
or log-law layer), we take the mesh as a good one or we modify it if is deemed
necessary.
• It is an iterative process and it can be very time consuming.
+
• Have in mind that it is quite difficult to get a uniform y value at the walls.
+
• Usually, try to get a y mean value as close as possible to your target.
+
• Also check that you do not get very high maximum values of y (more than a 1000)
+
• Use common sense when accessing y value.
TUR-75
Turbulence modeling in OpenFOAM®
⇢⇥U ⇥L
1. Re =
µ
(Skin friction coefficient of a flat plate, there are
2. Cf = 0.058 ⇥ Re 0.2
similar correlations for pipes)
1
3. 2
⌧w = ⇥ C f ⇥ ⇢ ⇥ U 1
2
r
⌧w
4. U⌧ =
⇢
µ ⇥ y+ You desired value
5. y=
⇢ ⇥ U⌧
TUR-76
Turbulence modeling in OpenFOAM®
TUR-78
Some applications using OpenFOAM®
TUR-79
Some applications using OpenFOAM®
Iso-surfaces of Q criterion.
http://www.wolfdynamics.com/training/turbulence/image13.gif
TUR-80
Final remarks – General guidelines
References
• Turbulent Flows
S. B. Pope
• Turbulence Modeling for CFD
D. C. Wilcox
• Turbulence: An Introduction for Scientists and Engineers
P. A. Davidson
• Large Eddy Simulation for Incompressible Flows
P. Sagaut
• A First Course in Turbulence
H. Tennekes and J. L. Lumley
• Boundary-Layer Theory
H. Schlichting
• https://turbmodels.larc.nasa.gov/
TUR-81