Y+ Calculator | Y+ Wall Distance Calculator (2024)

This y+ calculator will assist you in determining the necessary wall distance for your CFD analysis. The fluid flow near the wall is a complicated phenomenon. Several models and approximations are suggested to estimate the fluid flow parameters in the vicinity of a surface or wall. A CFD package utilizes such approximations and solutions to give us an overall impression of fluid flow around an object or along a surface.

Parameters like skin friction coefficient, y+ wall thickness, and shear stress are crucial to any fluid flow computation. Establishing a reasonably small mesh sizing strategy is necessary, especially infinite element-based tools like ANSYS FLUENT, OpenFOAM, Simscale, or XFlow. The mesh should be small enough in the proximity of walls for the resolution of the boundary layer phenomenon but coarse enough to be solved on the available computational resources.

A structured meshing is used to maintain this delicate balance between the boundary layer resolution and computation time. It is refined near the crucial areas like walls and surfaces, but coarse as we move away from it. But despite localized mesh strategy, often the computational time is very high. The y+ wall thickness method is often used in the case of turbulent flows to solve the near-wall flow problems. This method does not require a very fine mesh and is more effective in turbulent fluid flows that are not fully developed.

Read on to understand how this y+ wall distance is estimated.

What is boundary layer?

Before we get into the modeling of the boundary layer, let's understand what the boundary layer is? Consider a case of fluid flowing over an object, say, a flat plate. The edges of the plate in contact with the fluid are known as boundaries. When a fluid, let's say, air, is flowing over the plate, certain particles will stick to the boundary. In that case, the velocity of those particles in the vicinity of the boundary would be the same as the boundary. In some cases, even zero, if the boundary is at rest.

This very narrow region of fluid particles near the boundary is called the boundary layer. The boundary layer consists primarily of 3 subregions or layers:

  1. Laminar boundary layer
  2. Transition region
  3. Turbulent boundary layer
Y+ Calculator | Y+ Wall Distance Calculator (1)

As one moves away from the boundary, we can find the velocity of the particle will be governed by the gradient, dudy\frac{du}{dy}dydu which is ultimately increasing up to the fluid velocity or otherwise known as free stream velocity. This velocity gradient causes shear resistance and forms a very thin layer of fluid near the boundary. The thickness of the boundary layer begins from zero at an edge and increases as one moves away from it.

The region where the thickness is very small is known as the laminar boundary layer. It is only considered up to the point where the flow is laminar. The type of flow can be identified using Reynold's number (refer reynolds number calculator, for more information). Past this point of the laminar boundary layer, the retarded fluid flow increases the thickness of the boundary layer to such a point that it becomes unstable and leads to the irregular motion of fluid particles. This layer is known as the turbulent boundary layer.

The zone between the two layers where the transition occurs is known as the transition zone. The y+ wall thickness or wall functions approach or modeling strategy is primarily used to find the approximate solution to the behavior of fluid particles in the near-wall region of the turbulent boundary layer by computing the shear stress (see shear stress calculator) along the wall.

Y+ wall functions approach

The wall function approach is introduced because one of the most common turbulence models, kϵk- \epsilonkϵ, is only valid when the turbulent flow is fully developed. The wall functions are introduced to solve for the fluid flow in the near-wall or boundary region. They are used to connect the fluid flow in the near-wall region with fully developed turbulent flow. This method also helps reduce elements in the wall region, assisting in reducing computation time.

Y+ Calculator | Y+ Wall Distance Calculator (2)

The boundary layer is usually meshed with prism shape cells to capture the boundary layer and its viscous sublayer effectively. In CFD solvers, this method is often known as inflation layer meshing. An example of inflation layer meshing is shown in the figure below.

Y+ Calculator | Y+ Wall Distance Calculator (3)

The viscous sublayer is often so thin that it is not possible to resolve it using mesh. Therefore, the y+ wall function method is used. Now, what is y+? — The y+ parameter is known as the dimensionless wall thickness parameter, which is used to implement the wall functions approach. The formula to estimate y+ is:

y+=yρuμ\qquady^+ = \frac{y \ \rho \ u_*}{\mu}y+=μyρu

where yyy, uu_*u, ρ\rhoρ, and μ\muμ are the wall distance, friction velocity, density of the fluid, and dynamic viscosity, respectively. The friction velocity can be estimated using the wall shear stress, τw, using the equation:

u=τwρ\qquad u_* = \sqrt {\frac{\tau_w}{\rho}}u=ρτw

The wall shear stress, τw\tau_wτw, is calculated using the skin friction coefficient, CfC_fCf, and free stream velocity, UfU_fUf.

τw=Cf12ρUf2\qquad \tau_w = C_f \ \frac{1}{2} \ \rho U_{f}^2τw=Cf21ρUf2

The skin friction coefficient is a crucial parameter to obtaining the wall distance especially because there are several approximation solutions coined by different researchers since Prandtl (explore prandtl number calculator, which also named after him). The approximations available in the calculator are:

  • Prandtl (1927) — 0.074Rex0.20.074 \ Re_{x}^{-0.2}0.074Rex0.2
  • Granville (1977) — 0.0776[log10Rex1.88]2+60Rex10.0776 \ [{\log_{10} Re_{x}} - 1.88]^{-2} + 60Re_{x}^{-1}0.0776[log10Rex1.88]2+60Rex1
  • Schlichting — [2log10Rex0.65]2.3[{2\log_{10} Re_{x}} - 0.65]^{-2.3}[2log10Rex0.65]2.3
  • Kempf-Karman (1951) — 0.055Rex0.1820.055 \ Re_{x}^{-0.182}0.055Rex0.182
  • Schultz-Grunov (1940) — 0.427[log10Rex0.407]2.640.427 \ [{\log_{10} Re_{x}} - 0.407]^{-2.64}0.427[log10Rex0.407]2.64

where RexRe_xRex is the Reynold's number, is given by the formula:

Rex=ρUfLμ\qquad Re_x = \frac{\rho \ U_f \ L}{\mu}Rex=μρUfL

where LLL is the length of boundary of layer. Also, note that the above approximations are valid with Reynold's number, Rex<109Re_x < 10^9Rex<109.

How to calculate wall distance?

To calculate wall distance:

  1. Enter freestream velocity, Uf.
  2. Insert the density of fluid, ρ.
  3. Fill in the dynamic viscosity, μ.
  4. Enter the length of boundary layer, L.
  5. Give in the dimensionless distance, y+.
  6. The y+ calculator will return the Reynold's number.
  7. Select the approximation for skin friction coefficient from the list.
  8. The wall y+ calculator will determine the following parameters:
    • Wall shear stress, 𝜏w;
    • Friction velocity, U*; and
    • Wall distance, y.

Example: Using the wall y+ calculator

Estimate the wall thickness, y based on the fluid flow over a flat plate having freestream velocity, 10 m/s with boundary layer being 1 m long. Take the y+ value as 1 and fluid to be air.

  1. Enter freestream velocity, UfU_fUf = 10 m/s.
    The density and dynamic viscosity of the air are pre-filled for you.
  2. Enter the length of boundary layer, L.
  3. Give in the dimensionless distance, y+.
  4. The Reynold's number, RexRe_xRex is:

Rex=ρUfLμ=1.2051011.805105=667590\scriptsize\qquad\begin{align*}Re_x &= \frac{\rho \ U_f \ L}{\mu} \\ \\&= \frac{1.205 * 10 * 1}{1.805 * 10^{-5}} = 667590\end{align*}Rex=μρUfL=1.8051051.205101=667590

  1. Select the approximation for skin friction coefficient from the list. Let's use the default Schlichting approximation for this example.
  2. The y+ calculator will determine the following parameters:

Wall sheat stress:

τw=Cf12ρUf2=0.0040260.51.205102=0.2426\scriptsize\qquad \qquad\begin{align*}\tau_w &= C_f \ \frac{1}{2} \ \rho U_{f}^2 \\ &= 0.004026 * 0.5 * 1.205 *10^2 \\&= 0.2426\end{align*}τw=Cf21ρUf2=0.0040260.51.205102=0.2426

Friction velocity:

u=τwρ=0.24261.205=0.4487m/s\scriptsize\qquad \qquad\begin{align*}u_* &= \sqrt {\frac{\tau_w}{\rho}} \\&= \sqrt {\frac{0.2426}{1.205}} \\&= 0.4487 \ \text{m/s}\end{align*}u=ρτw=1.2050.2426=0.4487m/s

Wall distance:

y=y+μρu=11.805×1051.2050.4487=3.3×105m1000=0.033mm\scriptsize\qquad \qquad\begin{align*}y &= \frac{y^+ \mu}{\rho u_*} \\&= \frac{1 * 1.805 \times 10^{-5}}{1.205 * 0.4487} \\&= 3.3 \times 10^{-5} \ \text{m} * 1000 \\&= 0.033 \ \text{mm}\end{align*}y=ρuy+μ=1.2050.448711.805×105=3.3×105m1000=0.033mm

FAQ

What is y+ wall distance?

The y+ wall distance is defined as the dimensionless thickness or thickness of the wall as a function of Reynold's number. It can also be written as local Reynold's number.

How do I calculate skin friction coefficient?

To calculate skin friction using Prandtl approximation:

  1. Find Reynold's number, Rex.
  2. Evaluate the expression Rex-0.2.
  3. Multiply the result by 0.074 to obtain the skin friction coefficient.

How to calculate wall shear stress?

To obtain wall shear stress:

  1. Find the square of freestream velocity.
  2. Multiply it with the density of fluid and skin friction coefficient.
  3. Divide the resultant by 2.

How do I calculate y wall distance?

To calculate wall distance, y:

  1. Multiply dimensionless thickness, y+, by dynamic viscosity.
  2. Divide the product by the density of the fluid.
  3. Divide the result by friction velocity.
Y+ Calculator | Y+ Wall Distance Calculator (2024)
Top Articles
Latest Posts
Article information

Author: Amb. Frankie Simonis

Last Updated:

Views: 6502

Rating: 4.6 / 5 (76 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Amb. Frankie Simonis

Birthday: 1998-02-19

Address: 64841 Delmar Isle, North Wiley, OR 74073

Phone: +17844167847676

Job: Forward IT Agent

Hobby: LARPing, Kitesurfing, Sewing, Digital arts, Sand art, Gardening, Dance

Introduction: My name is Amb. Frankie Simonis, I am a hilarious, enchanting, energetic, cooperative, innocent, cute, joyous person who loves writing and wants to share my knowledge and understanding with you.