# Near-wall treatment for k-omega models

### From CFD-Wiki

Marcolovatto (Talk | contribs) |
|||

Line 1: | Line 1: | ||

- | {{ | + | ==Standard wall function approach== |

+ | There are two possible ways of implementing wall functions in a finite volume code: | ||

+ | * Additional source term in the momentum equations. | ||

+ | * Modification of turbulent viscosity in cells adjacent to solid walls. | ||

+ | |||

+ | The source term in the first approach is simply the difference between logarithmic and linear interpolation of velocity gradient multiplied by viscosity (the difference between shear stresses). The second approach does not attempt to reproduce the correct velocity gradient. Instead, turbulent viscosity is modified in such a way as to guarantee the correct shear stress. | ||

+ | |||

+ | Using the compact version of log-law | ||

+ | <table width="70%"><tr><td> | ||

+ | <math> | ||

+ | \frac{U}{u_\tau} = \frac{1}{\kappa} \ln E y^{+} | ||

+ | </math></td><td width="5%">(1)</td></tr></table> | ||

+ | where <math>E=9.8</math> is equivalent to additive constants, and and using <math>\tau_w = \rho u_\tau^2</math> we obtain: | ||

+ | :<math> | ||

+ | \tau_w = \frac{\rho u_\tau \kappa U}{\ln Ey^{+}}, | ||

+ | </math> | ||

+ | On the other hand, the linear interpolation for shear stress, rembembering that <math>U|_{y=0}=0</math>, is: | ||

+ | :<math> | ||

+ | \tau_w = (\nu_t + \nu)\frac{U_p}{y_p}. | ||

+ | </math> | ||

+ | |||

+ | Comparing the above equations we obtain an expression for turbulent viscosity can be obtained: | ||

+ | <table width="70%"><tr><td> | ||

+ | <math> | ||

+ | \nu_t = \nu\left( \frac{y^{+}\kappa}{\ln Ey^{+}} - 1\right). | ||

+ | </math> </td><td width="5%">(3)</td></tr></table> | ||

+ | Note that <math>u_\tau</math> has been been incorporated in <math>y^+</math>. The latter remains the only unknown in the equation and has to be estimated for the current velocity field. In the standard approach this cannot be done explicitly and instead an implicit way of obtaining <math>y^{+}</math> has to be employed. | ||

+ | |||

+ | After multiplying log law (1) by <math>y_p/\nu</math> and after reorganising some terms we get: | ||

+ | <table width="70%"><tr><td> | ||

+ | <math> | ||

+ | \frac{\kappa U_p y_p}{\nu} = y^{+}\ln{Ey^{+}}. | ||

+ | </math></td><td width="5%">(3)</td></tr></table> | ||

+ | This equation can be solved numerically with respect to <math>y^+</math> for example via root searching algorithms e.g. Newton method for specified <math>U_p</math>, <math>y_p</math> and <math>\nu</math>. One iteration in a Newton method for (3) is | ||

+ | :<math> | ||

+ | y^{+}_{n+1} = \frac{\frac{\kappa U_p y_p}{\nu} + y^{+}_{n}}{1 + \ln E y_n^{+}}. | ||

+ | </math> | ||

+ | Thus obtained <math>y^{+}</math> is then substituted to (2) Eventually the estimated <math>u_\tau</math> serves also to define the values of turbulent quantities in the cell adjacent to the wall: | ||

+ | :<math> | ||

+ | k_p = \frac{u_\tau^2}{\sqrt{C_\mu}} | ||

+ | </math> | ||

+ | :<math> | ||

+ | \omega_p = \frac{\sqrt{k_p}}{{C_\mu^{1/4}}\kappa y_p}, | ||

+ | </math> | ||

+ | which are the values for <math>k</math> and <math>\omega</math> according to Wilcox2006 asymptotic analysis of log layer. These wall functions for <math>k</math> and <math>\omega</math> are the results of the solution of model equation for the logarithmic layer. | ||

+ | |||

+ | The above methodology is known to produce spurious results in separated flows, where, by definition, <math>u_\tau = 0</math>. Many extension of this approach has been proposed. | ||

+ | |||

+ | |||

+ | |||

+ | ==FLUENT== | ||

Both k- omega models (std and sst) are available as low-Reynolds-number models as well as high-Reynolds-number models. <br> | Both k- omega models (std and sst) are available as low-Reynolds-number models as well as high-Reynolds-number models. <br> | ||

## Revision as of 12:22, 31 October 2011

## Standard wall function approach

There are two possible ways of implementing wall functions in a finite volume code:

- Additional source term in the momentum equations.
- Modification of turbulent viscosity in cells adjacent to solid walls.

The source term in the first approach is simply the difference between logarithmic and linear interpolation of velocity gradient multiplied by viscosity (the difference between shear stresses). The second approach does not attempt to reproduce the correct velocity gradient. Instead, turbulent viscosity is modified in such a way as to guarantee the correct shear stress.

Using the compact version of log-law

(1) |

where is equivalent to additive constants, and and using we obtain:

On the other hand, the linear interpolation for shear stress, rembembering that , is:

Comparing the above equations we obtain an expression for turbulent viscosity can be obtained:

(3) |

Note that has been been incorporated in . The latter remains the only unknown in the equation and has to be estimated for the current velocity field. In the standard approach this cannot be done explicitly and instead an implicit way of obtaining has to be employed.

After multiplying log law (1) by and after reorganising some terms we get:

(3) |

This equation can be solved numerically with respect to for example via root searching algorithms e.g. Newton method for specified , and . One iteration in a Newton method for (3) is

Thus obtained is then substituted to (2) Eventually the estimated serves also to define the values of turbulent quantities in the cell adjacent to the wall:

which are the values for and according to Wilcox2006 asymptotic analysis of log layer. These wall functions for and are the results of the solution of model equation for the logarithmic layer.

The above methodology is known to produce spurious results in separated flows, where, by definition, . Many extension of this approach has been proposed.

## FLUENT

Both k- omega models (std and sst) are available as low-Reynolds-number models as well as high-Reynolds-number models.

The wall boundary conditions for the k equation in the k- omega models are treated in the same way as the k equation is treated when enhanced wall treatments are used with the k- epsilon models.

This means that all boundary conditions for

- **wall-function meshes** will correspond to the wall function approach, while for the

- **fine meshes**, the appropriate low-Reynolds-number boundary conditions will be applied.

In Fluent, that means:

If the **Transitional Flows option is enabled **in the Viscous Model panel, low-Reynolds-number variants will be used, and, in that case, mesh guidelines should be the same as for the enhanced wall treatment

*(y+ at the wall-adjacent cell should be on the order of y+ = 1. However, a higher y+ is acceptable as long as it is well inside the viscous sublayer (y+ < 4 to 5).)*

If **Transitional Flows option is not active**, then the mesh guidelines should be the same as for the wall functions.

*(For [...] wall functions, each wall-adjacent cell's centroid should be located within the log-law layer, 30 < y+ < 300. A y+ value close to the lower bound y+ = 30 is most desirable.)*

Reference:
FLUENT 6.2 Documentation, 2006