|
[Sponsors] |
April 10, 2007, 15:34 |
DEFINE_ON_DEMAND
|
#1 |
Guest
Posts: n/a
|
hi I attached udf file with interpreted method I received this error when I run "execute on demand". Error: FLUENT received fatal signal (ACCESS_VIOLATION) 1. Note exact events leading to error. 2. Save case/data under new name. 3. Exit program and restart to continue. 4. Report error to your distributor. Error Object: () my udf is : # include "udf.h" DEFINE_ON_DEMAND(store_gradx) { Domain *domain; cell_t c; Thread *t; domain=Get_Domain(1); thread_loop_c (t,domain) { begin_c_loop (c,t) { C_UDMI(c,t,0) = C_T_G(c,t)[1]; } end_c_loop (c,t) } }
thanks your attention |
|
April 10, 2007, 18:00 |
Re: DEFINE_ON_DEMAND
|
#2 |
Guest
Posts: n/a
|
have you defined a new memory location in the fluent UDF menu BEFORE running the execute on demand command?
|
|
April 13, 2007, 05:01 |
Re: DEFINE_ON_DEMAND
|
#3 |
Guest
Posts: n/a
|
Dear Phil Thank you for attention. I have defined a new memory location in the fluent UDF menu BEFORE running the Execute on demand command. Best regards
|
|
April 16, 2007, 03:50 |
Re: DEFINE_ON_DEMAND
|
#4 |
Guest
Posts: n/a
|
you get this error because the temperature gradient is not yet allocated. try like this:
# include "udf.h" DEFINE_ON_DEMAND(store_gradx) { Domain *domain; cell_t c; Thread *t; domain=Get_Domain(1); thread_loop_c (t,domain) { if (T_STORAGE_R_NV(t,SV_T_G)!=NULL){ begin_c_loop (c,t) { C_UDMI(c,t,0) = C_T_G(c,t)[1]; } end_c_loop (c,t) }else Message("temperature gradient not yet allocated\n"); } } |
|
April 19, 2007, 05:34 |
Re: DEFINE_ON_DEMAND
|
#5 |
Guest
Posts: n/a
|
Hi dear
I received this error when I run "execute on demand". Error: Chip: internal error: invalid builtin -1: pc=121 Error Object: () best regards |
|
|
|