# What is y+ and why is it important?

In setting up cases for Reynolds averaged Navier-Stokes (RANS) analysis for CFD, we usually incorporate a prism layer along wall surfaces to capture boundary later effects in better detail. The technique in such cases would be to size the first layer of mesh for a target y+ value. The image above I got from here shows an example. When searching for y+ online, one commonly finds the definition:  can be found with empirical relations, for example by using the law, . Then, . The Reynolds number is usually evaluated with the characteristic length like chord for an airfoil. There are some snazzy websites where you can easily compute the cell length for your desired y+ value like here and here. These are all very well and good, but what exactly is this y+ we are calculating and what dictates it’s value?

Before we proceed, it would be timely to visit the post on RANS and the mixing length model as we will be using knowledge on both of them for our discussion later on.

RANS flow in a channel Suppose we have a two-dimensional pressure driven flow in a channel. The flow is steady and fully developed. This means that the and terms are all zero except for . The flow is also assumed to be parallel to the channel, so and . From this, we get for the direction RANS: In the direction, Differentiating the direction equation in , then integrating in , This is helpful because we can now integrate the equation in :

(1) Here we make the argument that the flow is symmetrical at . Imagine we have a mirror at that location, and a fluid particle is moving towards it from the bottom. There will be another particle approaching the mirror from the top, and the component velocities will cancel. This means at . Also, another more obvious observation is that at . Now since we defined our integration limits to an arbitrary , we can let it be : This is a very useful result since it helps us get rid of the pressure term in equation 1. Substituting the results into equation 1:

(2) Whew! After all these manipulations (and latex typing), we finally get an equation for our turbulent flow in a channel. Let’s zoom in into the case when is very close to the wall (i.e. ).

Laminar sublayer

As you can already guess, the first thing we can do is to neglect the term when we are close to the wall. This still does not give us anything useful. At the wall, our velocities go to zero. So we can also assume . This leaves us with: Dividing both sides by and introducing the nondimensional velocities and wall distances (as defined by the terms in the parenthesis): Integrating to an arbitrary as we did before: Finally, a useful result we get from all the math we did. What does this simple expression mean? Despite its simplicity, it is a powerful result – it tells us that no matter what flow conditions you are in or how large the channel is (i.e. it can extend to infinity and we essentially get a flat plate), the velocity profile close to the wall will always fall into this distribution. It is a universal result. Note that since we ignored the Reynolds stresses, this velocity profile holds for laminar flows too. So now the question is how far away from the wall can we get before the results breakdown? On the left, from a plot I got here, we see the dashed lines showing the different derived velocity profiles, while the solid line shows a blended velocity profile across all regions. In the diagram on the right, which I took from very a useful set of notes by Brennen, we see plots of actual results and pretty good match in results. Typically, the profile is valid for . Now we start to appreciate why we need to go through the trouble of sizing our prism layers properly.

Generally there are 2 approaches to RANS simulation: a “low y+” simulation or a “high y+” one. This corresponds to the nondimensional height of the first prism layer closest to the wall. For the “low y+” approach, we are calculating the entire laminar sublayer. To ensure that we capture the velocity profile properly, the guide is normally for for the first layer. However, this can result in a large cell count, which may be too expensive for some scenarios. Hence, turbulence modelers create wall functions such that the entire laminar sublayer up to the log law region is entirely modeled in the first prism layer, reducing the required mesh size. These typically require , which can be a bit tricky to achieve in simulations and might require some trial and error.

Log-law layer

Alright, let’s move further up the boundary layer into the turbulent zone. to see where the restriction of for the “high y+” simulation come from. In this region above the laminar sublayer, Prandtl assumed that there is constant shear stress across the boundary layer. Recall that total shear stress (laminar plus Reynolds shear stress) is: Constant shear stress means that the derivative of is zero, so,

(3) Now, applying the mixing length model, We have assumed that the variation of follows that of . Prandtl made one further assumption that , so we let where is a constant. Now substituting our results into equation 3 and integrating to an arbitrary , Nondimensionalizing the variables as usual, and absorbing the negative sign into , After integration, we finally obtain: Investigations with experimental results over the years have shown that and . They generally hold for , hence the restriction we have for “high y+” simulations. As a final note, I must mention that advances in CFD software is relaxing the constraint on these requirements, with options like enhanced wall functions in Ansys. However, they are mostly present in propriety software and might not be found in all codes.