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

fatal signal (ACCESS_VIOLATION)

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By pakk

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 14, 2014, 08:08
Default fatal signal (ACCESS_VIOLATION)
  #1
Senior Member
 
Moha
Join Date: Mar 2013
Location: EU
Posts: 103
Rep Power: 0
ahvz is on a distinguished road
Hi all,

I have been faced with this error when I do the run right after the first time step:
Error:
C:\PROGRA~1\ANSYSI~1\v145\fluent\fluent14.5.0
tx86\2ddp\fl1450s.exe 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: #f


Code:
/***********************************************************************
udfexample.c 
UDF for specifying the heater 
 ************************************************************************/


#include "udf.h"

#include "math.h"

real q=1.866043e+07;
DEFINE_EXECUTE_AT_END(tsensor)  
{

Domain *d;
Thread *t;
cell_t c;

CX_Cell_Id *cx_cell;
real NV_VEC(pt);
float pos[3];
float posd[3];
real xmin=0.00332165;
real ymin=0.4; 
real zmin=0.36; 

 NV_D(pt,=,xmin,ymin,zmin);
 pos[0]=xmin;
 pos[1]=ymin;
 pos[2]=zmin;




SV_locate_point(pos,cx_cell);
 c=cx_cell->ct.c;
t=cx_cell->ct.t;

 
 message("%en",C_T(c,t)); 
 if (C_T(c,t)<=297.15)
 {
 q=1.866043e+07;
 }
 else
 {
 q=0.0;
 }


}

DEFINE_SOURCE(heater_generation,c,t,dS,eqn)
{
real source;
source=q;
dS[eqn]=0.0;
return source;
}
ahvz is offline   Reply With Quote

Old   June 14, 2014, 09:13
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
I guess your problem might be in the following two lines:

real NV_VEC(pt);
NV_D(pt,=,xmin,ymin,zmin);

I have no clue what your intention for variable "pt" was, but this is definitely a wrong way to define it. And you never use it... So either just delete those lines, or if you think you need it, change these lines into what it should be and use it.
ahvz likes this.
pakk is offline   Reply With Quote

Old   June 15, 2014, 08:50
Default
  #3
Senior Member
 
Moha
Join Date: Mar 2013
Location: EU
Posts: 103
Rep Power: 0
ahvz is on a distinguished road
thanks for your reply,

I was tested the case file with another computer( a LINUX system with installed Fluent 14.0 )and the case has been compiled without any error and the calculation completed.

I am wondering, why the error arises only when I do compiling in my system installed Fluent 14.5 windows 7-64bit.

regarding to your doubts,

I am doing a 3D-transient analysis, tend to get temperature of a point for each time step and immediately giving the comment (in regard to the set temperature point) to the heat source in order to be ON or OFF.


regards,
ahvz 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove the error:FLUENT received a fatal signal (SEGMENTATION VIOLATION). Conan FLUENT 9 December 20, 2019 12:31
FLUENT received fatal signal (ACCESS_VIOLATION) osamaghani FLUENT 2 March 31, 2012 16:15
FLUENT received fatal signal (ACCESS_VIOLATION)??? Jinfeng Fluent UDF and Scheme Programming 1 October 19, 2009 11:03
fatal signal (ACCESS_VIOLATION) manu FLUENT 0 December 10, 2007 06:10
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 15:16


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