CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   udf fluent (lookup_thread) (https://www.cfd-online.com/Forums/fluent-udf/117582-udf-fluent-lookup_thread.html)

amirhossein.faraji May 11, 2013 05:19

udf fluent (lookup_thread)
 
hi

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
Memory
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"
DEFINE_EXECUTE_AT_END(test_lookup)
{
Domain *d;
Thread *tf;
face_t f;
d = Get_Domain(1);
tf= Lookup_Thread(d,8);

begin_f_loop(f,tf)
{

F_UDMI(f,tf,0)= 200.0;

}
end_f_loop(f,tf)
}


All times are GMT -4. The time now is 03:31.