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

fatal error in udf

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 28, 2012, 18:28
Default fatal error in udf
  #1
New Member
 
Ch_Flame
Join Date: Apr 2012
Location: Iran
Posts: 13
Rep Power: 13
fatemeh chitgarha is on a distinguished road
Hi, the following UDF gives access violation fatal error during execution in FLUENT while running in interpreted mode.
my udf is interprted correctly but when it ( define_profile) hook in boundary condition( outlet) gives access violation fatal 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: ()

#include "udf.h"
#include "sg_mem.h"
DEFINE_INIT(my_uds0, domain)
{
cell_t c;
Thread *t;

/* loop over all cell threads in the domain */
thread_loop_c (t,domain)
{
/* loop over all cells */
begin_c_loop_all (c,t)
{
if (C_FMEAN(c,t)>0.06)

C_UDSI(c,t,0) = 1.0;
else
C_UDSI(c,t,0) = 0.0;
}
end_c_loop_all (c,t)
}
}
DEFINE_DIFFUSIVITY(diffu,c,t,i)
{
return (C_MU_T(c,t)) / 0.9;
}

DEFINE_PROFILE(scaler_outlet,t,i)
{
real s;
face_t f;
begin_f_loop(f,t)
{
s=C_UDSI(F_C0(f,t),THREAD_T0(t),0);
F_PROFILE(f,t,i) = 1.;
}
end_f_loop(f,t)
}

Thanks in advance ...
fatemeh chitgarha is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
fatal error during initialization after udf compilation rik Fluent UDF and Scheme Programming 36 February 21, 2020 16:42
UDF error - FLUENT received fatal signal (ACCESS_VIOLATION) Eliasjal Fluent UDF and Scheme Programming 1 March 7, 2012 12:11
UDF fatal error Srivatsan V. Rajagopalan FLUENT 6 October 3, 2005 13:43
UDF problems...FATAL ERROR! Paolo Lampitella FLUENT 1 September 8, 2005 11:07
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


All times are GMT -4. The time now is 22:11.