CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Help with UFD (http://www.cfd-online.com/Forums/fluent/42283-help-ufd.html)

Blas September 11, 2006 12:43

Help with UFD
 
Hi, can anybody help me out with this simple UDF. It compiles and loads fine but I keep getting the ACCESS VIOLATION error.

The UDF is as follows:

#include "udf.h" DEFINE_ADJUST(temp_cell, d) {

Thread *t;

cell_t c;

thread_loop_c(t,d)

{

begin_c_loop(c,t)

{

C_UDMI(c,t,0) = C_T(c,t);

printf("temp pared [C] = %f\n", C_UDMI(c,t,0));

}

end_c_loop(c,t)

} }

Thanks

Adriano September 17, 2006 16:20

Re: Help with UFD
 
maybe some of the variables do not exist when UDF run! try to verify this.

regards



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