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

Error in ON_DEMAND macro

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 1, 2014, 23:14
Post Error in ON_DEMAND macro
  #1
New Member
 
ashish
Join Date: Dec 2014
Posts: 24
Rep Power: 11
ashish_kumar388 is on a distinguished road
Hey,
I'm trying to compute temperature gradient by following UDF.
#include "udf.h"
DEFINE_ON_DEMAND(Temp_grad)
{
Domain *d;
cell_t c;
Thread *t;
d = Get_Domain(1);

thread_loop_c(t,d)
{
begin_c_loop(c,t)
{

C_UDMI(c,t,1) = NV_MAG(C_T_G(c,t));

}
end_c_loop(c,t)
}

}









But still i'm getting error when i',m executing ... as follows
in windows it is showing Fatal error( Asses Violation)
and in Linux displaying below mention





Received signal 11 [time 12/2/14 9:26:3]
0: /export/apps/ansys_inc/v140/fluent/fluent14.0.0/lnamd64/2ddp_node/fluent_mpi.14.0.0() [0x150db21]
0: /export/apps/ansys_inc/v140/fluent/fluent14.0.0/lnamd64/2ddp_node/fluent_mpi.14.0.0() [0x1511a5c]
0: /lib64/libc.so.6() [0x3bb0e329a0]
0: libudf/lnamd64/2ddp_node/libudf.so(Temp_grad_ondemand+0x45) [0x7f776c3f1371]

Received signal 11 [time 12/2/14 9:26:3]
1: /export/apps/ansys_inc/v140/fluent/fluent14.0.0/lnamd64/2ddp_node/fluent_mpi.14.0.0() [0x150db21]
1: /export/apps/ansys_inc/v140/fluent/fluent14.0.0/lnamd64/2ddp_node/fluent_mpi.14.0.0() [0x1511a5c]
1: /lib64/libc.so.6() [0x3bb0e329a0]
1: libudf/lnamd64/2ddp_node/libudf.so(Temp_grad_ondemand+0x45) [0x7f0a20a53371]

Error [node 1] [time 12/2/14 9:26:4] Abnormal Exit!
1: /export/apps/ansys_inc/v140/fluent/fluent14.0.0/lnamd64/2ddp_node/fluent_mpi.14.0.0(monitor_exit_handler+0x29) [0x701339]
1: /export/apps/ansys_inc/v140/fluent/fluent14.0.0/lnamd64/2ddp_node/fluent_mpi.14.0.0() [0x14d9cff]
1: /export/apps/ansys_inc/v140/fluent/fluent14.0.0/lnamd64/2ddp_node/fluent_mpi.14.0.0() [0x14da082]
1: /lib64/libpthread.so.0() [0x3bb1a079d1]
1: /lib64/libc.so.6(clone+0x6d) [0x3bb0ee8b6d]

Error [node 0] [time 12/2/14 9:26:4] Abnormal Exit!
0: /export/apps/ansys_inc/v140/fluent/fluent14.0.0/lnamd64/2ddp_node/fluent_mpi.14.0.0(monitor_exit_handler+0x29) [0x701339]
0: /export/apps/ansys_inc/v140/fluent/fluent14.0.0/lnamd64/2ddp_node/fluent_mpi.14.0.0() [0x14d9cff]
0: /export/apps/ansys_inc/v140/fluent/fluent14.0.0/lnamd64/2ddp_node/fluent_mpi.14.0.0() [0x14da082]
0: /lib64/libpthread.so.0() [0x3bb1a079d1]
0: /lib64/libc.so.6(clone+0x6d) [0x3bb0ee8b6d]

Error [node 999999] [time 12/2/14 9:26:4] Abnormal Exit!
999999: /export/apps/ansys_inc/v140/fluent/fluent14.0.0/lnamd64/2ddp_host/fluent.14.0.0(At_Exit+0x21) [0x6a5d21]
999999: /lib64/libc.so.6(exit+0xe2) [0x3bb0e35e22]
999999: /export/apps/ansys_inc/v140/fluent/fluent14.0.0/lnamd64/2ddp_host/fluent.14.0.0(mpt_read+0x13c) [0x126a3a1]
999999: /export/apps/ansys_inc/v140/fluent/fluent14.0.0/lnamd64/2ddp_host/fluent.14.0.0(mpt_tcpip_crecv_raw+0x65) [0x126bb3c]
999999: /export/apps/ansys_inc/v140/fluent/fluent14.0.0/lnamd64/2ddp_host/fluent.14.0.0(mpt_tcpip_crecv_all+0x56) [0x126aa72]
999999: /export/apps/ansys_inc/v140/fluent/fluent14.0.0/lnamd64/2ddp_host/fluent.14.0.0(MPT_crecv_int+0x4a1) [0x12487bb]
999999: /export/apps/ansys_inc/v140/fluent/fluent14.0.0/lnamd64/2ddp_host/fluent.14.0.0(MPT_hflush+0x308) [0x1264750]
999999: /export/apps/ansys_inc/v140/fluent/fluent14.0.0/lnamd64/2ddp_host/fluent.14.0.0(Print_Compute_Node_Messages+0x17) [0x696147]
999999: /export/apps/ansys_inc/v140/fluent/fluent14.0.0/lnamd64/2ddp_host/fluent.14.0.0() [0x64578f]
999999: /export/apps/ansys_inc/v140/fluent/fluent14.0.0/lnamd64/2ddp_host/fluent.14.0.0(eval+0x7cc) [0x12c880c]
999999: /export/apps/ansys_inc/v140/fluent/fluent14.0.0/lnamd64/2ddp_host/fluent.14.0.0(eval+0x768) [0x12c87a8]
999999: /export/apps/ansys_inc/v140/fluent/fluent14.0.0/lnamd64/2ddp_host/fluent.14.0.0(eval+0x125b) [0x12c929b]
999999: /export/apps/ansys_inc/v140/fluent/fluent14.0.0/lnamd64/2ddp_host/fluent.14.0.0(eval+0x906) [0x12c8946]
999999: /export/apps/ansys_inc/v140/fluent/fluent14.0.0/lnamd64/2ddp_host/fluent.14.0.0() [0x12c9dd8]
999999: /export/apps/ansys_inc/v140/fluent/fluent14.0.0/lnamd64/2ddp_host/fluent.14.0.0(eval_errprotect+0x32) [0x12c9e62]
ashish_kumar388 is offline   Reply With Quote

Old   December 2, 2014, 08:46
Default
  #2
Senior Member
 
ghost82's Avatar
 
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 26
ghost82 will become famous soon enough
Why don't you use C_UDMI(c,t,0)?Did you set 1 user defined memory?
__________________
Google is your friend and the same for the search button!
ghost82 is offline   Reply With Quote

Old   December 4, 2014, 02:02
Post
  #3
New Member
 
ashish
Join Date: Dec 2014
Posts: 24
Rep Power: 11
ashish_kumar388 is on a distinguished road
I tried (c,t,0).. and yes I set memory to 1. not got anything from so I'm asking here.
regards
ashish_kumar388 is offline   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



All times are GMT -4. The time now is 09:44.