CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

DEFINE_ON_DEMAND

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 10, 2007, 14:34
Default DEFINE_ON_DEMAND
  #1
pourak
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
  Reply With Quote

Old   April 10, 2007, 17:00
Default Re: DEFINE_ON_DEMAND
  #2
Phil
Guest
 
Posts: n/a
have you defined a new memory location in the fluent UDF menu BEFORE running the execute on demand command?
  Reply With Quote

Old   April 13, 2007, 04:01
Default Re: DEFINE_ON_DEMAND
  #3
pourak
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

  Reply With Quote

Old   April 16, 2007, 02:50
Default Re: DEFINE_ON_DEMAND
  #4
Bogdan
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"); } }

  Reply With Quote

Old   April 19, 2007, 04:34
Default Re: DEFINE_ON_DEMAND
  #5
pourak
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

  Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



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