
[Sponsors] 
May 17, 2015, 06:27 
How to implement wall function in my code?

#1 
New Member
dengli
Join Date: Mar 2015
Posts: 22
Rep Power: 11 
Hello,everyone.I'm new to wall functions,since I don't have a thorough understanding of turbulent theory or boundary layer,I want to someone to help me about how to use the wall functions. The problem is I don't know how to use the wall shear stress and the wall heat loss.
Let me introduce my own understanding of the process of wall function. First,using velocity at the first point P near the wall to compute the friction velocity u_star(either the log law in the log region or the linear law in the viscous sublayer, depend on the y_plus). Second,after finding the friction velocity,we can calculate the wall shear stress as well as wall heat loss.This is my question,after getting these two parameters,how should I do with them?For the kepsilon equations,we can get k using its original equation, and epsilon can be calculated by a simple algebraic formulation. and for other flow variables, such as rho,u,v,w,p, Are they computed from the Ns equations? Can someone give me some ideas,or give me a flow chart of implement the wall function,thank you very much. 

May 17, 2015, 09:06 

#2 
Member
garry
Join Date: Oct 2013
Posts: 41
Rep Power: 13 
It should be implemented in the turbulence model subroutine. Read some paper and it is not difficult.
Good luck! yzeyue 

May 17, 2015, 10:51 

#3 
New Member
dengli
Join Date: Mar 2015
Posts: 22
Rep Power: 11 

May 20, 2015, 07:32 

#4 
Senior Member

For what concerns velocity and temperature, the wall shear stress and heat flux computed by the wall function just need to supersede the viscous term toward the wall.
For turbulence variables, instead, wall functions are usually used to fix them in the first cell near the wall 

May 20, 2015, 23:42 

#5  
New Member
dengli
Join Date: Mar 2015
Posts: 22
Rep Power: 11 
Quote:
As for adiabatic wall,the wall heat flux was zero,for the isothermal wall ,we usually specify the Tw, and the heat flux can be derived from wall function,right? Another question for the solution of turbulence variable k ,I read some papers and fluent's manual,one is solving k directly  from a simple algebraic formulation,another is specifying the production term of K from wall function,and solve this parameter as in outer layer. Are they different approaches to get the turbulence parameters?I'm confused by the papers. 

May 21, 2015, 04:57 

#6 
Senior Member

You are right for the temprature: if you know the heat flux you don't need the wf at all; if you know Tw then you solve the temerature wall function after the velocity one (so that you know u_tau, which is probably needed in your temerature wall function).
I'm not very expert on the turbulence variables (i usually work in LES ), but i guess that following the Fluent references would not be bad. Another option is to check OpenFOAM or Code_Saturne implementation. 

Tags 
turbulence, wall function 
Thread Tools  Search this Thread 
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
[Commercial meshers] Fluent3DMeshToFoam  simvun  OpenFOAM Meshing & Mesh Conversion  50  January 19, 2020 16:33 
Radiation interface  hinca  CFX  15  January 26, 2014 18:11 
Problem with rhoSimpleFoam  matteo_gautero  OpenFOAM Running, Solving & CFD  0  February 28, 2008 07:51 
WALL FUNCTION: Implement process  boling2002  Main CFD Forum  2  June 8, 2004 10:32 
Wall function in adverse pressure gradients  stephane baralon  Main CFD Forum  11  September 2, 1999 05:05 