Fatal signal stopped the DPM simulation
4 Attachment(s)
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 :confused::confused::confused::confused:? 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 |
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.
|
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]; } /* } }*/ |
All times are GMT -4. The time now is 06:12. |