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

Problem with DEFINE_ADJUST

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
DEFINE_ADJUST Problem Davis Yohanes Arifin FLUENT 14 February 29, 2020 04:37
Problem setting C_MU_T with DEFINE_ADJUST Andy FLUENT 3 June 22, 2018 02:53
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 09:49
Problem setting C_MU_T with DEFINE_ADJUST sarah_ron FLUENT 1 February 24, 2005 12:11


All times are GMT -4. The time now is 06:39.