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

Problem with DEFINE_ADJUST

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 15, 2008, 16:32
Default Problem with DEFINE_ADJUST
  #1
Anshul Mittal
Guest
 
Posts: n/a
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
  Reply With Quote

Old   July 15, 2008, 17:32
Default Re: Problem with DEFINE_ADJUST
  #2
umesh javiya
Guest
 
Posts: n/a
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)

}

}

  Reply With Quote

Old   July 17, 2008, 13:21
Default Re: Problem with DEFINE_ADJUST
  #3
Anshul Mittal
Guest
 
Posts: n/a
Thanks.

  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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem setting C_MU_T with DEFINE_ADJUST Andy FLUENT 2 July 30, 2014 05:05
DEFINE_ADJUST Problem Davis Yohanes Arifin FLUENT 11 June 16, 2014 04:08
Could I use DEFINE_ADJUST to set B.C ? pour FLUENT 0 May 22, 2008 13:07
About DEFINE_ADJUST sagga FLUENT 1 February 3, 2006 10:49
Problem setting C_MU_T with DEFINE_ADJUST sarah_ron FLUENT 1 February 24, 2005 13:11


All times are GMT -4. The time now is 13:37.