CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Fluent UDF and Scheme Programming (
-   -   udf fluent (lookup_thread) (

amirhossein.faraji May 11, 2013 05:19

udf fluent (lookup_thread)

I write a simple udf as below to test the use of lookup_thread macro.
Before I compile my UDF also allocate the one memory location in the User-Defined
panel in FLUENT.
I also get the integer ID of the zone (boundary wall) by visiting the boundary condition
panel. It was 8.
But when i run my program and then go to Disply panel for seeing User Memory 0, all values of that is zero (not 200).

what is the proplem????:confused:
please help me.

#include "udf.h"
Domain *d;
Thread *tf;
face_t f;
d = Get_Domain(1);
tf= Lookup_Thread(d,8);


F_UDMI(f,tf,0)= 200.0;


All times are GMT -4. The time now is 14:57.