CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

fatal error while execute on demand...

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

LinkBack Thread Tools Display Modes
Old   July 28, 2013, 15:49
Default fatal error while execute on demand...
New Member
Join Date: Apr 2012
Location: Iran
Posts: 13
Rep Power: 7
fatemeh chitgarha is on a distinguished road
hi,i'm try to execute my udf file through execute on demand while the following errors occured:

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: ()

Before that, the interpreting goes well without any errors until reach execute on demand where it yield the above errors.
I try defined for the user defined memory before execute on demand but the same errors occurred again. Before that, the solution also has been iterated as well. The following is my source code. Can anyone tells me what is the causes of the errors?
#include "udf.h"
#include "sg_mem.h"
#include "outlet.h"
return (C_MU_T(c,t)) / 0.055;
real s;
face_t f;
F_PROFILE(f,t,i) = s;
Domain *d; /* declare domain pointer since it is not passed as an
argument to the DEFINE macro */
Thread *t;
cell_t c;
real x;
real y;
real z;
d = Get_Domain(1); /* Get the domain using ANSYS FLUENT utility */
/* Loop over all cell threads in the domain */
/* Loop over all cells */
if (0.055 < C_FMEAN(c,t) )
x = 1;
x = 0;
C_UDMI(c,t,0) = x;
if (0.055 < C_FMEAN(c,t) && C_FMEAN(c,t) < 0.099 )
y = 1;
y = 0;
C_UDMI(c,t,1) = y;
if (0.055 < C_FMEAN(c,t) && C_FMEAN(c,t) < 0.077 )
z = 1;
z = 0;
C_UDMI(c,t,2) = z;
C_UDMI(c,t,3) = C_UDMI(c,t,0) + C_UDMI(c,t,1) + C_UDMI(c,t,2);
if (C_UDMI(c,t,0) + C_UDMI(c,t,1) + C_UDMI(c,t,2) == 0.)
C_UDMI(c,t,3) = 0.01;
fatemeh chitgarha is offline   Reply With Quote

Old   July 29, 2013, 02:44
Senior Member
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 725
Rep Power: 16
vasava will become famous soon enough
I think you dont need #include "sg_mem.h" and #include "outlet.h". Try ignoring them.
vasava is offline   Reply With Quote


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
Cannot Execute on Demand Denis Fluent UDF and Scheme Programming 2 April 19, 2013 09:19
execute udf in ss & transient simulation hosseinhgf FLUENT 0 December 1, 2010 09:41
error while execute on demand Anderson Main CFD Forum 4 October 17, 2008 11:48
execute on demand pourak FLUENT 0 April 20, 2007 06:24
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 05:45.