CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Accessing wall shear stress using UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 17, 2005, 06:53
Default Accessing wall shear stress using UDF
  #1
Robert
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
  Reply With Quote

Old   November 4, 2011, 11:28
Default C_STORAGE_R(f,t,SV_WALL_YPLUS_UTAU)
  #2
New Member
 
Join Date: Feb 2011
Posts: 7
Rep Power: 15
Gold is on a distinguished road
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
Gold is offline   Reply With Quote

Old   July 31, 2013, 09:34
Default 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
n.phililipova is on a distinguished road
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
n.phililipova 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
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


All times are GMT -4. The time now is 12:49.