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

Fatal signal stopped the DPM simulation

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 27, 2015, 04:29
Default Fatal signal stopped the DPM simulation
  #1
Member
 
S. Morichika
Join Date: Aug 2014
Posts: 62
Rep Power: 11
Saidul is on a distinguished road
Hello All,
I Compile my UDF without any error or warning and run the simulations but it stopped the simulations with a fatal signal(Image attached). How can I fix the problem ? Looking for help badly.....
/************************************************** ************************************/
/* UDF for computing cell co-ordinates */
/************************************************** ************************************/

#include "udf.h"
#include "sg.h"
#include "dpm.h"
#define WALL_ID 8

DEFINE_DPM_SCALAR_UPDATE(particle_coords, c, ct, initialize, p)
{
real A[ND_ND];
int n;
face_t f;
Thread *ft;
c_face_loop(c, ct, n)
{
f=C_FACE(c, ct,n);
ft=C_FACE_THREAD(c, ct, n);
if (NNULLP(ft))
{
if (THREAD_ID(ft)== WALL_ID)
{
p->user[0] = p->state.pos[0];
p->user[1] = p->state.pos[1];
p->user[2] = p->state.pos[2];

}
}

}
}

DEFINE_DPM_OUTPUT(Particle_coords_output, header, fp, p, thread, plane)
{
char name[10];
if (header)
{
if (NNULLP(thread))
par_fprintf_head(fp,"(%s %d)\n", thread->head->dpm_summary.sort_file_name,3);
else
par_fprintf_head(fp,"(%s %d)\n", plane->sort_file_name,3);

par_fprintf_head(fp,"(%10s %10s %10s)\n","X", "Y", "Z");
}
else
{
sprintf(name,"%s:%d", p->injection->name,p->part_id);
par_fprintf(fp,"(%10.6g %10.6g %10.6g)\n", p->user[0], p->user[1], p->user[2]);
}
}

Thanks in advance. Looking for your help. My model is 3ddp, serial, laminar flow, My platform windows 7,64 bit, Microsoft visual studio 5, 10 and microsoft windows SDK v7.o.

Saeed
Attached Images
File Type: png Capture.PNG (8.3 KB, 10 views)
File Type: jpg Capture2.jpg (30.3 KB, 8 views)
File Type: jpg Capture3.jpg (38.4 KB, 8 views)
File Type: jpg Capture4.jpg (30.7 KB, 10 views)
Saidul is offline   Reply With Quote

Old   January 27, 2015, 07:11
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
You can find the problem by standard debugging methods. Comment out some of the code, see if you still get an error; if you don't get an error then look more closely at the parts you commented out, otherwise try other parts.
pakk is offline   Reply With Quote

Old   January 30, 2015, 00:11
Default
  #3
Member
 
S. Morichika
Join Date: Aug 2014
Posts: 62
Rep Power: 11
Saidul is on a distinguished road
Quote:
Originally Posted by pakk View Post
You can find the problem by standard debugging methods. Comment out some of the code, see if you still get an error; if you don't get an error then look more closely at the parts you commented out, otherwise try other parts.
I checked my UDF and if I remove /*if (NNULLP(ft)) line, then it works without any fatal error. It also generate a output file with no data. Maybe there is a memory problem. There is no memory allocated and if
NNULLP is not present runs but do not prints, because it was not stored. How can I solve the problem. I am badly looking for some help.

DEFINE_DPM_SCALAR_UPDATE(particle_coords, c, ct, initialize, p)
{
real A[ND_ND];
int n;
face_t f;
Thread *ft;
c_face_loop(c, ct, n)
/*{*/
ft=C_FACE_THREAD(c, ct, n);
/*if (NNULLP(ft))
{*/
if (THREAD_ID(ft)== WALL_ID)
{
p->user[0] = p->state.pos[0];
p->user[1] = p->state.pos[1];
p->user[2] = p->state.pos[2];

}
/* }

}*/
Saidul 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
fluentError: received a fatal signal (Segmentation fault). thomaszhangjing Fluent UDF and Scheme Programming 11 January 13, 2021 10:37
FLUENT received fatal signal (ACCESS_VIOLATION) natantyt Fluent UDF and Scheme Programming 7 February 8, 2014 15:07
FLUENT received fatal signal (ACCESS_VIOLATION) osamaghani FLUENT 2 March 31, 2012 17:15
problem about DPM of cyclone separator simulation jason FLUENT 4 November 12, 2007 04:15
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 03:41.