|
[Sponsors] |
January 27, 2015, 04:29 |
Fatal signal stopped the DPM simulation
|
#1 |
Member
S. Morichika
Join Date: Aug 2014
Posts: 62
Rep Power: 12 |
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 |
|
January 27, 2015, 07:11 |
|
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
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.
|
|
January 30, 2015, 00:11 |
|
#3 | |
Member
S. Morichika
Join Date: Aug 2014
Posts: 62
Rep Power: 12 |
Quote:
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]; } /* } }*/ |
||
|
|
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 |