|
[Sponsors] |
February 17, 2005, 06:53 |
Accessing wall shear stress using UDF
|
#1 |
Guest
Posts: n/a
|
Hi
I am trying to access the wall shear stress/forces using an UDF. I know that this topic have been discussed here on this forum previously. But I can however not solve my problem using the information in these posts. In order to keep things simple I am runing 2D axy-symetric pipe flow. My grid is 3x20. My UDF looks as follows and are intended to return the wall shear forces #include "udf.h" #include "storage.h" DEFINE_ON_DEMAND(output) { Domain *domain; Thread *f_thread; face_t f; int ID=4; /* from the BC panel */ real wallshear[ND_ND]; domain = Get_Domain(1); f_thread=Lookup_Thread(domain,ID); begin_f_loop(f,f_thread){ NV_V(wallshear,=,C_STORAGE_R_NV(f,f_thread,SV_WALL _SHEAR)); printf("%2.10e %2.10e\n",wallshear[0],wallshear[1]); } end_f_loop(f,f_thread) } When it is executed it returns two columns with 20 values each. You would expect these two to be the wall shear forces in the radial and axial direction respectively. What happens is that I get a non zero value on every third row. I expected to get zeros in the first column and non zero values in the second collumn. Any suggestions to what might be wrong? There is obviusly something wrong when I try to access the vector wallshear. I have noticed that the non zero values when divided by the area of the wall face are identical to the wall shear stresses in the axial direction reported by Fluent. So I guess that I am not that far off. Best Regards Robert |
|
November 4, 2011, 11:28 |
C_STORAGE_R(f,t,SV_WALL_YPLUS_UTAU)
|
#2 |
New Member
Join Date: Feb 2011
Posts: 7
Rep Power: 15 |
Dear All
i want to write a udf that stores the yplus in a UDMI for using that and get the USTAR at the boundaries, i dont know how use SV_WALL_YPLUS_UTAU; d = Get_Domain(1); thread_loop_c(t,d) { begin_c_loop(c,t) { C_UDMI(c,t,1)=C_STORAGE_R(f,t,SV_WALL_YPLUS_UTAU); } end_c_loop(c,t) } could you please give me an idea about that please thanks |
|
July 31, 2013, 09:34 |
How to calculate and represent Statistical wall shear stress map in UDF, Fluent
|
#3 |
New Member
Nina Philipova
Join Date: Jul 2012
Posts: 11
Rep Power: 14 |
I am not so well acquainted with UDF macros. I need help how to make Fluent to represent Statistical wall shear stress map. For example to calculate area of WSS for which WSS<0.5 Pa.
Thank you so much for your help in advance! Nina Philipova |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for shear stress at wall in laminar flow | Jafri | FLUENT | 1 | April 6, 2020 19:20 |
Natural convection in a closed domain STILL NEEDING help! | Yr0gErG | FLUENT | 4 | December 2, 2019 01:04 |
Problems with wall shear stress. | xiexiehezuo | FLUENT | 1 | September 22, 2009 13:26 |
Re: About wall shear stress | Mike | FLUENT | 9 | November 17, 2003 15:41 |
Wall shear stress in a UDF | Jafri | FLUENT | 3 | December 6, 2002 18:29 |