|
[Sponsors] |
October 4, 2005, 04:32 |
MACRO FOR DIMENSIONLESS WALL DISTANCE Y+ ?
|
#1 |
Guest
Posts: n/a
|
Dear respected Fluent users, could you please inform me about how to get the dimesionless wall distance value Y+. Is there a macro in Fluent to get it directly. Thanks in advance Wael
|
|
October 4, 2005, 08:06 |
Re: MACRO FOR DIMENSIONLESS WALL DISTANCE Y+ ?
|
#2 |
Guest
Posts: n/a
|
Do you need to get it in a UDF?
If so use F_STORAGE_R(f,tf,SV_WALL_YPLUS_UTAU) where f and tf are face index and thread repectively |
|
October 4, 2005, 09:32 |
Re: MACRO FOR DIMENSIONLESS WALL DISTANCE Y+ ?
|
#3 |
Guest
Posts: n/a
|
Or if you're just looking for the values, you can see them using Display->Contours (or Plot->XY Plot, or Report->Surface Integrals, etc.)... y+ values are available under "Turbulence"
Hope this helps, and good luck, Jason |
|
October 4, 2005, 23:03 |
Re: MACRO FOR DIMENSIONLESS WALL DISTANCE Y+ ?
|
#4 |
Guest
Posts: n/a
|
Daer Alec Eiffel and Jason, Thank you very much. Yes I want to use Y+ in UDF for a low Re K-e turbulence model. I have to use the value in equauation like -------- real f_mu(cell_t c, Thread *t) { return 1.-pow(1+abs((1-n)/(1+n))*SV_WALL_YPLUS_UTAU(c,t),2),........;} ------------ Can I use it in this way? Thanks for your help Wael
|
|
October 5, 2005, 08:37 |
Re: MACRO FOR DIMENSIONLESS WALL DISTANCE Y+ ?
|
#5 |
Guest
Posts: n/a
|
it cant be used in that way. you fist need to get the face index and thread for the boundary faces that you would let to get the y+ value for. Then store the y+ in a variable. You will need something like
real y_plus; y_plus = F_STORAGE_R(f,tf,SV_WALL_YPLUS_UTAU); return 1.-pow(1+abs((1-n)/(1+n))*y_plus,2) |
|
October 5, 2005, 13:52 |
Re: MACRO FOR DIMENSIONLESS WALL DISTANCE Y+ ?
|
#6 |
Guest
Posts: n/a
|
Thanks a lot Mr Alec Eiffel for your concern and valuable information. I want to use Y+ values in the fluid zone for each cell every iteration. As you know the k-e model equations and the turbulent viscocity will use Y+ via f_mu . Could you please inform me how I can define the index and thread (like Thread *t; and cell_t c; !) . This is the 1st time for me to use the F_STORAGE..... Thanks in advance and my best regards. Wael
|
|
October 5, 2005, 14:04 |
Re: MACRO FOR DIMENSIONLESS WALL DISTANCE Y+ ?
|
#7 |
Guest
Posts: n/a
|
Wall y+ is only available at wall boundaries. It has a value of zero at all internal cells in the fluid zone. If you display contours of y+ on any model you will notice that it only has a value in cells adajacent to wall boundaries.
|
|
October 6, 2005, 05:24 |
Re: MACRO FOR DIMENSIONLESS WALL DISTANCE Y+ ?
|
#8 |
Guest
Posts: n/a
|
Dear Mr Alec Eiffel, You are absolutly right.In the model I want use (Nagano-Hishida 1987) Y+ is defined as Y+=Utau*y/nu and it is used anywhere in the fluid domain. So, now I have to use that equation to calculate Y+ not the value of Fluent (IS THAT RIGHT?). If so, the peoblem will be in Utau=sqrt(Tau_wall/roh), I do not know how to get Tau_wall from Fluent. Please advise. Your help is appreciated too much. My best regards. Wael
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
About dimensionless wall distance | L1011 | Main CFD Forum | 24 | June 9, 2014 09:45 |
Macro to set Wall Shear Stress | Satish | FLUENT | 4 | November 26, 2003 15:46 |
Macro accessing the Wall shear stress? | Li Jingping | FLUENT | 0 | April 2, 2003 00:22 |
Distance to the nearest wall... | Michal | FLUENT | 6 | February 13, 2001 15:49 |
Wall functions | Abhijit Tilak | Main CFD Forum | 6 | February 5, 1999 02:16 |