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

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   February 17, 2005, 05: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

 


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 18:20
Natural convection in a closed domain STILL NEEDING help! Yr0gErG FLUENT 4 December 2, 2019 00:04
Problems with wall shear stress. xiexiehezuo FLUENT 1 September 22, 2009 12:26
Re: About wall shear stress Mike FLUENT 9 November 17, 2003 14:41
Wall shear stress in a UDF Jafri FLUENT 3 December 6, 2002 17:29


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