Wall Treatments and Wall Functions
Wall Treatments and Wall Functions
Wall Treatments and Wall Functions
A wall treatment is the set of near-wall modelling assumptions for each turbulence model. Three
types of wall treatment are provided in FLUENT, although all three might not always be available,
depending on the turbulence model:
• The high-y+ wall treatment implies the wall function type approach in which it is assumed that the
near-wall cell lies within the logarithmic region of the boundary layer.
• The low-y+ wall treatment is suitable only for low Reynolds number turbulence models in which it
is assumed that the viscous sub-layer is properly resolved.
• The all-y+ wall treatment is a hybrid treatment that attempts to emulate the high- wall treatment
for coarse meshes and the low-y+ wall treatment for fine meshes. It is also formulated with the
desirable characteristic of producing reasonable answers for meshes of intermediate resolution (that
is, when the wall-cell centroid falls within the buffer region of the boundary layer).
The wall functions are a set of semi empirical functions used to satisfy the physics of the flow in the
near wall region. Turbulence is affected in many ways by the presence of the wall through the non
slip condition that must be satisfied at the wall. Four areas in the near wall region are defined, the
laminar sub-layer, the blending region, the log law region and the outer region. Each region has a
different effect on turbulence and a particular care must be taken to the y+ position of the first cell in
the boundary layer. A different set of equations will be used depending on the size of this cell but
however this one must not be comprised between y+=5 and y+=30 because no turbulent model is
available in this area. Instead of not resolving the entire boundary layer for a y+ comprised in the
viscous sub-layer and buffer layer, wall functions are used to bridge the viscosity-affected region
between the wall and the fully-turbulent region.
Pervasive low-Reynolds-number or near-wall effects (e.g., flow through a small gap or highly
viscous, low-velocity fluid flow)
Strong body forces (e.g., flow near rotating disks, buoyancy-driven flows)
High three-dimensionality in the near-wall region (e.g., Ekman spiral flow, strongly skewed
3D boundary layers)
The standard wall functions are made of the momentum equation which leads to the law of the wall
for the temperature and depends on the y*.
Y*<Yt*: linear law for the thermal conduction sublayer where conduction is important.
Y*>Yt*: logarithmic law for the turbulent region where effects of turbulence dominate
conduction.
The pressure P is computed from the formula given by Jayatilleke and the Yt* is computed as the
Y* reach the linear law and the logarithmic law intersect. Depending on the Y* value at the near-wall
cell, either the linear or the logarithmic profile is applied to compute the wall temperature Tw or
heat flux q.
A model for flows in which chemical reactions occur is available and is known as the species
transport equation but is not investigated in this report.
The turbulence model is the k-ε model where the k equation is computed over the all domain
including the adjacent wall region with a boundary condition defined as follow:
Then using this profiles it is possible to calculate the production and dissipation terms of k with the
following equations.
and
The ability of the Non-Equilibrium function account for the effect of pressure gradients and
departure from non equilibrium make this model more accurate and more robust for complex flows
such as separated flows, reattached flows or impinging flows.
Enhanced wall functions
The enhanced function in FLUENT are used to achieve near wall modelling approach having the
accuracy of the standard two layer approach for fine meshes and at the same time not degrading the
results for the wall function meshes. In order to do so the enhanced wall functions are combined
with the two layer model.
The two layer model is defined as a near wall model which resolves the entire boundary layer until
the viscous sub-layer. The all domain is devised in two regions, a viscosity-affected region and a fully-
turbulent region and the separation is determined by a wall distance defined from a Reynolds
number based on y.
In the fully turbulent region the - model is used whereas in the viscosity-affected near-wall
region the one-equation model of Wolfstein is employed. This one equation model uses the same
formulation for k and the momentum equation but the turbulent viscosity is computed, depending
on the region in which the calculation is performed, from:
Kader function is used to be able to build a model which still valid throughout the near wall region,
this formulation blends together the laminar and log law formulation in order to do so.
Hence the law of the wall for the fully turbulent region is derived in the form:
where
And the law of the wall for the laminar region is:
In the same way the thermal wall function are derived by blending together the laminar and
logarithmic profiles.
In order to investigate the effects of wall treatments, the pressure coefficient has been calculated
with FLUENT over the ONERA M6 wing. These results have been compared with experimental data in
the above plots for a set of seven sections. The three wall treatments which have been investigated
are the standard wall functions, the non equilibrium wall functions and the enhanced wall functions.
The sections are taken on the wing along the span wise direction, the values of Z at which the data
are compared are shown below.
Section N° Z/b in % Z in m
1 0,2 0,23926
2 0,44 0,526372
3 0,65 0,777595
4 0,8 0,95704
5 0,9 1,07667
6 0,95 1,136485
7 0,99 1,184337
To understand the flow patterns over the wing a plane offset has been created at a short distance
from the wall (0.0005m) since no velocity can be capture at the wall due to the no-slip condition. This
transformed plane enables to visualize the velocities near the wall and so to capture the shock
position and pattern. The stream lines have also been plotted to give an idea of the flow migration.
Z Y
X
velocity-magnitude
420
380
340
320
283.62
278.963
277.908
276.97
276.653
275.507
274.87
274.524
274.392
273.423
272.11
271.832
269.152
260
252.069
240
200
181.664
180.198
174.269
170.896
166.76
160.083
159.856
155.456
147.209
125.9
120
117.215
102.403
97.4665
96.5486
90.4575
60
20
From this plot it is possible to see that a lambda shock forms on the upper surface and coalesces into
a normal shock at about 80% of the span close to the tip. This is reflected in the Cp plots in which we
can clearly see the two shocks for section 1, 2, 3 and 4 (Figure 1, Figure 3, Figure 4, Figure 5). For
these sections, the flow is accelerated at the leading edge until they encounter the first swept shock
which reduces the flow velocity. The flow then again accelerates because of the airfoil curvature and
is decelerated by the second shock. For section 5, 6 and 7 (Figure 6, Figure 7 and Figure 8) the flow is
accelerated around the leading edge and encounters a normal shock which is much stronger that the
swept shock and strongly reduces the velocity. It is very likely that this shock generates separation of
the flow but this is not seen in the results. The other data present on this figure are the stream traces
and it is possible to see that in the root region the stream traces follow the x axis direction whereas
when moving toward the tip the traces are distorted and form an S shape due to flow migration span
wise. Toward the tip the flow migration from the lower surface to the upper surface induced by the
difference in pressure lead to high 3D effect in the boundary layer at the tip and might lead to
difficulties for resolving the boundary layer.
experimental data Experimental data
Enhanced wall treatment Enhanced wall treatment
Non equilibrium wall functions Non equilibrium wall function
Standard wall treatment -1.2 Standard wall functions
-1
-1
-0.8
Pressure coefficient
Pressure coefficient
-0.5 -0.6
-0.4
-0.2
0
0
0.2
0.4
0.5
0.6
0.8
0 0.2 0.4 0.6 0.8 1 0.2 0.4 0.6 0.8 1
x/c x/c
Figure 2: Pressure coefficient comparison for section 1 Figure 3: Pressure coefficient comparison for section 2
-1 -1
-0.8 -0.8
Pressure coefficient
Pressure coefficient
-0.6 -0.6
-0.4 -0.4
-0.2 -0.2
0 0
0.2 0.2
0.4 0.4
0.6 0.6
0.8 0.8
0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1
x/c x/c
Figure 4: Pressure coefficient comparison for section 3 Figure 5: Pressure coefficient comparison for section 4
-1 -1
-0.8 -0.8
Pressure coefficient
Pressure coefficient
-0.6 -0.6
-0.4 -0.4
-0.2 -0.2
0 0
0.2 0.2
0.4 0.4
0.6 0.6
0.8
0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1
x/c x/c
Figure 6: Pressure coefficient comparison for section 5 Figure 7: Pressure coefficient comparison for section 6
Experimental data
Enhanced wall treatment
Non equilibrium wall functions
Standard wall functions
-1.2
-1
-0.8
Pressure coefficient
-0.6
-0.4
-0.2
0.2
0.4
0.6
0.2 0.4 0.6 0.8 1
x/c
The calculation done with the three different wall treatment yields to very similar result in pressure
coefficient and no conclusion can be drawn from this analysis. Although the results are in accordance
with the experiment it is possible to see that for section 3 the FLUENT calculation does not capture
clearly the two pattern shock, the solution is quite diffusive. For section 1, 2 and 3 the region in-
between the shocks is no really well predicted. The Cp in this region is slightly higher than the
experimental data which means that more suction is generated than in reality.
A mean of explaining this observation is to say that the wall functions are active in the viscous
regions hence the boundary layer. Those functions will have an effect on the prediction of the
velocity profile within the boundary layer and so will affect the displacement thickness and the
viscous shears. Differences in the displacement thickness for each wall treatment are less important
than the differences in shear stress and that is why no difference can be seen between the different
functions. However this difference in displacement thickness can modify the camber line of the airfoil
section and so modify the Cp distribution. In this particular case it seems that the boundary layer
displacement thickness is underestimated and so the camber of the airfoil is not reduced as it is in
reality resulting in a higher suction region. This explanation would explain in the same way the
difference in recovery pressure at the trailing edge which is higher than in the experimental data.
Indeed if the velocity profile is mist calculated the wake will differ and in this case will be thinner
allowing for a better recovery in pressure.
The velocity profile mist calculation can be explained by the poor grid resolution close to the wall
which doesn’t match the requirements for wall treatments. This can be seen in the Y+ plot for each
section of the wing and it is clearly remarkable that the wall unit for a majority of the chord is
comprised between Y+=5 and Y+=30 (Figure 9) which is the blending region. The FLUENT user’s guide
advice to make sure that wall units are over 30 or under 5 for a good resolution of the boundary
layer because no model is available for the blending region and so a resolution in this region will yield
wrong results of the velocity profiles. As none of the Y+ is under 5 then the viscous sub layer is not
resolved.
120
100 section1
section2
section3
Log law region section4
section5
80 section6
section7
60
y-plus
40
Y+=30
20 Blending region
Y+=5
0
Laminar sub-layer
-20
-0.2 0 0.2 0.4 0.6 0.8 1 1.2
X
As nearly no differences can be seen between the three wall treatment the shocks positions are the
same for each one of them and are summarized in the table below with the experimental data.
0.005
0.005
0.004
0.004
0.003 0.003
0.002 0.002
0.001 0.001
0 0.2 0.4 0.6 0.8 1 0.2 0.4 0.6 0.8 1
x/c x/c
Figure 10: Skin friction coefficient for section 1 Figure 11: Skin friction coefficient for section 2
0.007
0.007
Enhanced wall functions Enhanced wall functions
Non equilibrium wall functions Non equilibrium wall functions
0.006 Standard wall functions Standard wall functions
0.006
Skin friction coefficient
0.005
0.005
0.004
0.004
0.003 0.003
0.002 0.002
0.001 0.001
0.2 0.4 0.6 0.8 1 0.2 0.4 0.6 0.8 1
x/c x/c
Figure 12: Skin friction coefficient for section 3 Figure 13: Skin friction coefficient for section 4
0.008
0.008
0.007
Enhanced wall functions Enhanced wall functions
0.007 Non equilibrium wall functions Non equilibrium wall functions
Standard wall functions Standard wall functions
0.006
Skin friction coefficient
0.006
0.005
0.005
0.004
0.004
0.003
0.003
0.002
0.002
0.001
0.001
Figure 14: Skin friction coefficient for section 5 Figure 15: Skin friction coefficient for section 6
0.01
0.009
Enhanced wall functions
Non equilibrium wall functions
Standard wall functions
0.008
0.006
0.005
0.004
0.003
0.002
The skin friction coefficient is a good indicator to observe the shock and boundary layer interaction.
As separation occurs the velocity goes to zero and so does the skin friction coefficient, however in
this case no separation occurs. For section 5, 6 and 7 closer to the tip it is possible to see that the skin
friction coefficient drops rapidly after the shock and is very close to zero, the flow is at the edge of
separation. As there are no experimental data to be compared with the CFD calculations it is not easy
to tell which wall treatment is the more accurate. Nevertheless it is known that after a strong normal
shock the flow is likely to separate and so the model which predicts this behaviour in the better way
is the enhanced wall treatment because the skin friction drops close to zero. Then the standard
function and the non equilibrium functions are less accurate respectively. This result is a bit
surprising because the non equilibrium treatment was expected to yield better results than the
standard functions since it is made to capture with a better accuracy complex flows, however this
can be due to the poor resolution of the mesh in the near wall region.
Velocity distribution
0.4investigate the shock and boundary layer interaction across the span wise direction of the
In order to
wing and to compare the differences between the different wall treatments the velocity distribution
has been plotted for the sections 1, 3 and 6.
0.2
Y
0.4
0
Figure 17: Velocity distribution over the airfoil for section 1 for the enhanced wall treatment
0.2
-0.2
Y
Figure 18: Velocity distribution over the airfoil for section 1 for the non equilibrium wall treatment
0.2
-0.2
0 X
Figure 19: Velocity distribution over the airfoil for section 1 for the standard wall treatment
It is possible to see that after each shock the boundary layer thicken but none of the wall treatment
-0.2
predicts separation. The models predict very similar shock and boundary layer interactions with a
small thickening of the boundary layer after the first shock which tend to prove that the first shock is
weak. The second shock generates a greater thickening which means that the shock is stronger.
0.4
Figure 20: Velocity distribution over the airfoil for section 3 for the enhanced wall treatment
0.2
Y
Figure 21: Velocity distribution over the airfoil for section 3 for the non equilibrium wall treatment
0.2
Figure 22: Velocity distribution over the airfoil for section 3 for the standard wall treatment
For section 3 which is situated at 65% of the span there are still two shocks but they are much closer
and interaction is more important. Now the first shock is stronger than for section 1 and the
thickening
-0.2of the boundary layer is greater. In between the two shocks the favourable pressure
0.4 of the boundary0.6
gradient reduces the thickness layer which increases0.8rapidly just after the second
shock. In this section no separation is observableXand the three models predict the same pattern of
shock and boundary layer interaction.
0.2
0
0.2
Figure 23: Velocity distribution over the airfoil for section 6 for the enhanced wall treatment
Y
0.6 0.8 1
X
0
0.2
Figure 24: Velocity distribution over the airfoil for section 6 for the non equilibrium wall treatment
Y
0.6 0.8 1
X
0
Figure 25: Velocity distribution over the airfoil for section 6 for the standard wall treatment
For section 6 only one shock remains, this shock is a strong normal shock situated at the 25% of the
chord. It generates a high thickening of the boundary layer which spread toward the trailing edge; it
0.6 0.8 1
is possible to see that the boundary layer is at the edge of separation but does not actually separates.
X
The three treatments yield the same results and no significant differences can be noticed.
Conclusion
This study has enable to investigate the pressure distribution of an ONERA M6 wing at a Mach
number of 0.83 for an angle of attack of 4° and compare it to experimental data. This study has also
focused on the shock position and shock boundary layer interaction highlighting a lambda shock
pattern with no induced separation. Three wall treatments have been used in order to define the
best model for this particular problem and the main difference has been observed in the skin friction
coefficient.
The CFD results have yield results in accordance with theory, however the grid resolution in the near
wall region is not really optimised because it is situated in the 5<y+<30 region in which the models
are not very accurate. For this case the model which gives the best results is the enhanced wall
treatment.