CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Wall function usage

Register Blogs Community New Posts Updated Threads Search

Like Tree50Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 17, 2019, 12:13
Question nutUSpaldingWallFunction
  #21
New Member
 
Join Date: May 2017
Posts: 6
Rep Power: 9
OliverB is on a distinguished road
Dear Kumar,



Have you found the answer to your question ?
I have the same question for a stirred tank for which the grid sensitivity study probably fails because of the decrease of y+ in combination with the standard wall function.


Thanks

Oliver
OliverB is offline   Reply With Quote

Old   January 7, 2024, 02:13
Default wallfunction
  #22
New Member
 
mahdisalehi
Join Date: Jan 2024
Posts: 1
Rep Power: 0
mahdi.salehabadi is on a distinguished road
Quote:
Originally Posted by G_German View Post
Since the documentation on the use of wall functions (or BCs for turbulence models in general) in OpenFOAM is rather small I tried to write up a little summary of what is posted in the internet (for kEpsilon, kOmegaSST & SA).
As this may also be interesting to other people and I would be interested in feedback, please find the summary below:

Basics:
If the grid near the wall is fine enough (~y+<1 everywhere and at least 4-5 nodes below y+=5) wall functions are not needed.
For kEpsilon a lowRe version is required, SA and kOmegaSST should be applicable also for low Re numbers (though this is under discussion for the OpenFOAM implementation: http://www.cfd-online.com/Forums/ope...penfoam-2.html).
For coarser grids (30<y+<100) wall functions exploit the universal logarithmic wall law to model the transition from the laminar near-wall flow to the fully developed turbulent flow.


Basically the type of wall function is chosen in the nut file by the nutxxx wall functions:
- nutWallFunction (seems to be the most basic wall function without further requirements): high-Re wall-function based on k.
- nutkWallFunction (standard for kEpsilon/kOmega, probably requires an equation for k...): nutkWallFunction sets the turbulent viscosity in the first node point based on the logarithmic law ( based on the turbulent kinetic energy close to the wall)
- nutUWallFunction: in comparison to nutkWallFunction this wall function calculates yPlus based on the velocity close to the wall (not k)
- nutUSpaldingWallFunction (standard for SA turbulence model, called nutSpalartAllmarasWallFunction in earlier version, original reference is doi:10.1115/1.3641728):
continuous wall-function which should cover the complete y+ range from O(1) to somewhere of O(10). Might be the best choice (together with low Re kEpsilon, kOmegaSST or SA, when y+ varies for different parts of the wall.
- nutLowReWallFunction (code comment: "Sets nut to zero, and provides an access function to calculate y+." ):
Dummy wall function required for the calculation of yPlusRAS in simulations which resolve the near wall flow (however, there are varying opinions about this in the internet).

For epsilon, omega, k, ... one uses the corresponding wall functions exist:
- epsilonWallFuncion for epsilon ( (fixed value e=0 or better e=1e-8(?) for lowRe calculations):
calculate (for each timestep) the first grid point value by using an algebraic expression derived from the classical logarithmic law-of the wall approach
- kqRWallFunction for k, q, R
in code: Boundary condition for turbulence k, Q, and R when using wall functions. Simply acts as a zero gradient condition.
(appears to be applicable down to yPlus~1, but one should use a fixed value with k=0 or a very small value for y+<1)
- omegaWallFunction for omega; Not really a wall function but the b.c. defined by Menter for Omega, i.e. should be used always for kOmega model, independent of y+)
omegawall=60*nu/(beta*y^2), with nu=kinematic viscosity at the wall, beta=0.075 and y=normal distance between the first fluid node and the nearest wall-> very large value for omega)
The "value" which is specified for the wall functions is only an initial conditions

To check my understanding I did some comparisons of simulations with OF 2.4/3.0 to Wieghardt's flat plate Cf measurements:
thanks for your description, I was wondering what would happen if I keep y+<10 and use wallfunction at the same time?
mahdi.salehabadi is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
whats the cause of error? immortality OpenFOAM Running, Solving & CFD 13 March 24, 2021 08:15
Enhanced Wall Treatment paduchev FLUENT 24 January 8, 2018 12:55
Radiation interface hinca CFX 15 January 26, 2014 18:11
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 14:06
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51


All times are GMT -4. The time now is 21:37.