CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Help on UDF: access to wall shear stress (https://www.cfd-online.com/Forums/fluent/33768-help-udf-access-wall-shear-stress.html)

Zhihua Li May 20, 2004 00:21

Help on UDF: access to wall shear stress
 
Hi,

I am doing an unsteady simulation. I wish to report the time averaged pressure coefficient and friction coefficient around a cylinder. I am considering using UDF to store the local pressure values at each time step and take an average on time at the end of my simulation.

Can anybody tell me how to store an array of data at each time step and read it out later? I am also wondering if anybody knows how to access the wall shear stress and heat transfer coefficient in UDF.

Thank you very much and I appreciate your help!

Zhihua

Ajay May 21, 2004 22:29

Re: Help on UDF: access to wall shear stress
 
include storage.h header file

define real wallshear[ND_ND];

face = face variable ;

tf= face thread

NV_V (wallshear, =, C_STORAGE_R_NV(face,tf,SV_WALL_SHEAR));

this will give you the wall_shear_force multiplying by the area vector would give you the wall_shear_stress.

Hope this helps ,

Ajay


Zhihua Li May 26, 2004 11:55

Re: Help on UDF: access to wall shear stress
 
Thank you very much, Ajay!


All times are GMT -4. The time now is 05:16.