CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   DEFINE_EXECUTE_AT_END( ) error (http://www.cfd-online.com/Forums/fluent/41392-define_execute_at_end-error.html)

jim June 15, 2006 03:05

DEFINE_EXECUTE_AT_END( ) error
 
hi

i want to accumulated value according time step

so i used...C_UDMI

i heard about DEFINE_EXECUTE_AT_END()macro

i heard this macro execute at the end of a time step

but explanation of DEFINE_EXECUTE_AT_END()macro is not in my fluent manual

my fluent version is 6.0.12

what kind of macro i can use insteady of DEFINE_EXECUTE_AT_END() macro

my udf is...

/************************************************

#include "udf.h"

DEFINE_EXECUTE_AT_END(execute)

{

Domain *d;

Thread *t;

cell_t c;

real temp;

d = Get_Domain(1);

thread_loop_c(t,d)

{

begin_c_loop(c,t)

{

temp = C_T(c,t);

C_UDMI(c,t,0) += temp;

}

end_c_loop(c,t)

}

} '/*********************************************

i try to interprete this UDF, error message is generated

please help me



All times are GMT -4. The time now is 10:28.