Sunteți pe pagina 1din 9

Web

Email

: www.learncax.com
: info@learncax.com

Y+ Wall Function in CFD

Sanket Dange & Ganesh Visavale1


LearnCAx, CAx education division
Centre for Computational Technologies Pvt. Ltd., Pune, India

Before getting into the details of the turbulent models, let us first discuss an
important concept known as + and know how it is related to turbulence modeling,
mesh generation process and its effect to the CFD end result. It is important to know
about the concept of wall + or in general how the flow behaves near the wall, as it
is on the basis of + , the turbulence models are generally selected for solutions. The
behavior of flow near the wall is a complicated phenomenon and to distinguish the
different regions near the wall, the concept of wall + has been formulated. Thus
+ is a dimensionless quantity and is the distance from wall measured in terms of
viscous lengths.
Why we need + ?
One of the prime reasons for the need of + is to distinguish different regions near
the wall or in the viscous region, but how exactly it helps in turbulence modeling or
in general CFD modeling essentially needs to be well understood. Let us try to
explain this with an example. Imagine a fisherman using fishing net, a grid kind of
structure to trap fishes. Now if he is trying to catch medium sized fishes the grids in
the net he might use are supposed to be somewhat big, but if he is trying to trap
even small sized fishes then the grid size of the net should be small enough to
capture those. In this case even the large fishes are also captured. Similarly getting
back to our case if we intend to resolve the effects near the wall i.e., in the viscous
sub layer then the size of the mesh size should be small and dense enough near the
wall so that almost all the effects are captured. But in some cases if the wall effects
are negligible then there is option of including semi-empirical formulae to bridge
1

Dr. Ganesh Visavale (ganesh@cctech.co.in), LearnCAx, Centre for Computational Technologies Pvt. Ltd

1 Akshay Residency, 50 Anand Park, Aundh, Pune 411007, India

Copyrights : www.LearnCAx.com

Web
Email

: www.learncax.com
: info@learncax.com

between the viscosity affected region and fully turbulent region and in this case the
mesh size need not be small or dense enough near the wall i.e., coarse mesh works
sufficiently in this case.
Considering the first case i.e., near wall modeling it is well-known that the mesh
size should be small enough. However, one may wish to know exactly how small ?
Thus, here comes the concept of + and based on its value the first cell height can
be calculated. Also the near wall regions are meshed using the calculated first cell
height value with gradual growth in the mesh so that most of the effects are
captured avoiding heavy mesh count.
Let us now look at the + concept i.e., what exactly it is, in more detail. However,
before that let us revisit the concept of boundary layer, especially turbulent
boundary layer.
Boundary layer theory:
In a flow bounded by a wall, different scales and physical processes are dominant in
the inner portion near the wall, and the outer portion approaching the free stream.
These layers are typically known as the inner and outer layers. Considering the flow
over a smooth flat plate the boundary layer can be distinguished into two types
namely; laminar boundary layer and turbulent boundary layer. Typical boundary
layer structure over a flat plate is shown in the figure below. In between the laminar
and turbulent boundary layer there is a transition region. Typically for flow over a
flat plate the transition usually occurs around 5 105 .

(Reference : Y. Cengel, Fluid Mechanics: Fundamentals and Applications)

Since we have discussed about the turbulent flow characteristics in our previous
blog, Introduction to Turbulence, we shall not get into greater detail here and
directly discuss about the turbulent boundary layer. From the above figure it can be
seen that in turbulent boundary layer region flow near the wall has been analyzed
in terms of three layers:

The inner layer, or sublayer, where viscous shear dominates

The outer layer, or defect layer, where large scale turbulent eddy shear
dominates

1 Akshay Residency, 50 Anand Park, Aundh, Pune 411007, India

Copyrights : www.LearnCAx.com

Web
Email

: www.learncax.com
: info@learncax.com

The overlap layer, or log layer, where velocity profiles exhibit a


logarithmic variation

A still clear image of the above phenomena is shown below:

Reference: Applied Computational Fluid Dynamics by Andr Bakker

where 0 is the free stream velocity and is the boundary layer thickness, is the
vertical distance measured from the wall. Turbulent boundary layers are usually
described in terms of several non-dimensional parameters. The boundary layer
thickness, is the distance from the wall at which viscous effects become negligible
and represents the edge of the boundary layer.
Now let us discuss more about the above said regions. Owing to the presence of the
solid boundary the flow behavior and turbulent structure are considerably different
from free turbulent flows. Dimensional analysis has greatly assisted in correlating
the experimental data. In turbulent thin layer flows a Reynolds number based on
length scale in the flow direction is always very large. This implies that inertia
forces are greater than viscous forces at these scales. If we consider Reynolds
number on a distance y away from the wall Re y= U0y/, we see that if the value of
is of the order of the above argument holds well. Inertia force dominates far
away from the wall. As is decreased to zero, the Reynolds number based on also
decreases to zero. Just before reaches zero there will be a range of values of
for which is of the order 1. At this distance from the wall and closer, the viscous
forces will be equal in the order of magnitude to the inertia forces or large. To
conclude, in flows along solid boundaries there is usually substantial region of
inertia dominated flow far away from the wall and a thin layer within which viscous
effects are important.
Near to the wall the flow is influenced by the viscous effects and independent of
free stream parameters. However the mean flow velocity depends on (distance
from the wall), (fluid density), (viscosity) and w (wall shear stress).
Thus: U0 = f(y, ,, w)

1 Akshay Residency, 50 Anand Park, Aundh, Pune 411007, India

Copyrights : www.LearnCAx.com

Web
Email

: www.learncax.com
: info@learncax.com

Linear sub-layer :
At the solid surface the fluid is stationary and the turbulent eddying motion
must also stop very close to the wall. The fluid very close to the wall is
dominated by viscous shear in absence of the turbulent shear stress effects
( + < 5) and it can be assumed that the shear stress is almost constant and
equal to the wall shear stress throughout the layer.
Thus we have;
() =

Applying boundary conditions & manipulations we obtain:


+ = +

Now as can be seen from the expression above to be a linear, the fluid layer
adjacent to the wall is called as linear sub layer.
Log-law layer :

At some distance from the wall and outside the viscous sub-layer (30 < + <
500) a region exists where viscous and turbulent effects are both important.
Within this inner region the shear stress is assumed to be constant and equal
to wall shear stress and varying gradually with distance from the wall. The
relationship between + and + in this region is given as:
1
1
+ = ln + + = ln +

where , and are constants whose values are determined from


measurements. As the relationship between + and + is logarithmic, the
above expression is known as log-law and the layer where + takes the values
between 30 and 500 is known as log-law layer.
Outer layer:
According to experimental studies it is found that the log-law is valid in the

range 0.2 < < 0.2 and for higher values of the defect law is referred,

whereas in the overlap region the log-law and velocity defect law (law of
wake) are equal. Tennekes and Lumley (1972) proposed the following
logarithmic law for identifying the matched overlap region.

Buffer layer:

1
= +

In the buffer layer, between 5 and 30 wall units, neither law holds, such that:
For 5< + <30; + +
+

1
ln + +

With the largest variation from either law occurring approximately where the two
equations intercept, at y+=11. That is, before 11 wall units the linear
approximation is more accurate and after 11 wall units the logarithmic

1 Akshay Residency, 50 Anand Park, Aundh, Pune 411007, India

Copyrights : www.LearnCAx.com

Web
Email

: www.learncax.com
: info@learncax.com

approximation should be used, though neither are relatively accurate at 11 wall


units.
Schematic diagram of the above laws or in general law of wall is shown below. The
near-wall modeling significantly impacts the fidelity of numerical solutions,
inasmuch as walls are the main source of mean vorticity and turbulence. After all,
it is in the near-wall region that the solution variables have large gradients, and the
momentum and other scalar transports occur most vigorously. Therefore, accurate
representation of the flow in the near-wall region determines successful predictions
of wall-bounded turbulent flows.

Velocity profiles in turbulent wall flow

The k- models, the RSM, and the LES model are primarily valid for turbulent core
flows (i.e., the flow in the regions somewhat far from walls). Consideration
therefore needs to be given as to how to make these models suitable for wallbounded flows. The Spalart-Allmaras and k- models were designed to be applied
throughout the boundary layer, provided that the near-wall mesh resolution is
sufficient. The two approaches are schematically shown below.

1 Akshay Residency, 50 Anand Park, Aundh, Pune 411007, India

Copyrights : www.LearnCAx.com

Web
Email

: www.learncax.com
: info@learncax.com

Reference: Near-Wall Treatments in ANSYS FLUENT

In most high-Reynolds-number flows, the wall function approach substantially saves


computational resources, because the viscosity-affected near-wall region, in which
the solution variables change most rapidly, does not need to be resolved. The wall
function approach is popular because it is economical, robust, and reasonably
accurate. It is a practical option for the near-wall treatments for industrial flow
simulations.
The wall function approach, however, is inadequate in situations where the lowReynolds-number effects are pervasive in the flow domain in question, and the
hypotheses underlying the wall functions cease to be valid. Such situations require
near-wall models that are valid in the viscosity-affected region and accordingly
integrable all the way to the wall.
From above discussion it is clear that the placement of the first node in our nearwall inflation mesh is very important.

(Reference: Leap CFD)

From above image we need to be careful to ensure that our + values are not so
large that the first node falls outside the boundary layer region. If this happens,
then the Wall Functions used by our turbulence model may incorrectly calculate the
flow properties at this first calculation point which will introduce errors into our
pressure drop and velocity results.
Let us see steps to calculate first cell height.
1 Akshay Residency, 50 Anand Park, Aundh, Pune 411007, India

Copyrights : www.LearnCAx.com

Web
Email

: www.learncax.com
: info@learncax.com

Firstly, we should calculate the Reynolds number for our model based on the
characteristic scales of our geometry.

From the definition of +


+ =

+.

where is shear velocity. The target + value and fluid properties are known
a priori, so we need to calculate the frictional velocity as given above.
The wall shear stress, can be calculated from skin friction
coefficient, such that:
1
= 0 2
2
Thus to calculate we need to know , there are empirical formulae to
calculate which are given below.
For internal flows: = 0.079 0.25

For external flows: = 0.058 0.2


Thus with all these inputs we can insert the values in the above equation to
calculate .
When considering simple flows and simple geometry, we might find this correlation
is highly accurate. However, when considering complex geometry, refinement in
the boundary layer may be required to ensure the desired + value is achieved. In
such cases re-mesh has to be done or else mesh adaption techniques have to be used
to achieve the required value across the entire model.
Thus we have learnt that the wall function approach and + value required is
determined by the flow behavior and the turbulence model being used. If you have
an attached flow, then generally we can use a Wall Function approach, which means
a larger initial + value, smaller overall mesh count and faster run times. If one
expects flow separation and knows that the accurate prediction of the separation
point can have an impact the result, then it would be advised to resolve the
boundary layer all the way to the wall with a finer mesh. Unfortunately, as the
+ value is dependent on the local fluid velocity which varies across the wall
significantly for most industrial flow applications, it is not possible to know the exact
+ prior to running an initial simulation. For this reason, it is important that one
gets into the habit of checking the + values as part of normal post-processing to
ensure to be in the valid range for the problem flow physics and turbulence model
selection.
References:

http://www.computationalfluiddynamics.com.au/tips-tricks-turbulencewall-functions-and-y-requirements/

http://www.computationalfluiddynamics.com.au/tips-tricks-cfd-estimatefirst-cell-height/

INTRODUCTORY LECTURES on TURBULENCE Physics, Mathematics and


Modeling by J. M. McDonough

1 Akshay Residency, 50 Anand Park, Aundh, Pune 411007, India

Copyrights : www.LearnCAx.com

Web
Email

FLUENT user guide

http://www.bakker.org/dartmouth06/engs150/11-bl.pdf

http://en.wikipedia.org/wiki/Law_of_the_wall

1 Akshay Residency, 50 Anand Park, Aundh, Pune 411007, India

: www.learncax.com
: info@learncax.com

Copyrights : www.LearnCAx.com

Web
Email

: www.learncax.com
: info@learncax.com

LearnCAx Knowledge Base:


Courses offered by LearnCAx are designed to meet all
your needs. It has range of FREE and PREMIUM courses
which is designed to meet the industry requirements.
All the courses are self-contained with video lectures,
quiz, assignments and projects. Every course comes
with FAQs and discussion forums where you can get
answers to all your questions. Each course contains live
assistance from LearnCAx faculty where faculties will
guide you through online sessions and desktop sharing.

Blogs is the place where our coaches share their


knowledge through articles. This includes best
practices,
advance
techniques,
and
recent
development in respective field. LearnCAx is backed
with strong industrial consultancy team. This team does
projects for industries. As LearnCAx main focus is from
academics to industry, blogs gives us an opportunity
to share details about our industrial work. Its not only
about what is done, but also about how the project is
done. The objective is to give students more
knowledge about industrial project so that they feel
connected to the industry.

No matter what is the form of learning, an interaction


with experts is an inevitable part of every learning
process. LearnCAx faculty conducts webinars to share
the knowledge with you. Let it be knowhow of
software, introduction to a particular topics or
discussing fundamentals of a subject, all webinars are
targeted towards sharing the knowledge and getting
feedback about what your training needs are? Webinar
is also a place for our consultancy team to share their
work with you. All these live sessions would give an
opportunity to you to talk to the experts in the domain.

Create FREE LearnCAx account to access all the knowledge base

1 Akshay Residency, 50 Anand Park, Aundh, Pune 411007, India

Copyrights : www.LearnCAx.com

S-ar putea să vă placă și