CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Problem with DEFINE_ADJUST (http://www.cfd-online.com/Forums/fluent/48788-problem-define_adjust.html)

Anshul Mittal July 15, 2008 16:32

Problem with DEFINE_ADJUST
 
Hi,

I am using a UDF in Define_Adjust to do some calculations. My UDF is as follows:

DEFINE_ADJUST(Adju,d) {

real density;

Thread *t;

cell_t c;

density = C_R(c,t);

}

I interpret it but when I iterate then it gives error. 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: ()

Kindly suggest, why I am getting this error and how this problem can be solved. Thanks Anshul Mittal

umesh javiya July 15, 2008 17:32

Re: Problem with DEFINE_ADJUST
 
I hope you doing loop over the 'Thread' like as follow

DEFINE_ADJUST(Adju,d) {

real density;

Thread *t;

cell_t c;

thread_loop_c(t,d)

{

begin_c_loop(c,t)

density = C_R(c,t);

end_c_loop(c,t)

}

}


Anshul Mittal July 17, 2008 13:21

Re: Problem with DEFINE_ADJUST
 
Thanks.



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