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

Error "Stack backtrace generated"

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 16, 2017, 06:44
Default Error "Stack backtrace generated"
  #1
Member
 
CWL
Join Date: Nov 2015
Posts: 58
Rep Power: 11
cwl6750084 is on a distinguished road
I am trying to run DPM with the following UDF (basically to print the location of the trapped particles, cell surface area and mass flow).

#include "udf.h"
#include "dpm.h"
#include "mem.h"
#include "sg.h"
#include "stdlib.h"
#include "stdio.h"
#include "math.h"

DEFINE_DPM_OUTPUT(discrete_phase_sample,header,fp, p,t,plane)
{
face_t f;
real NV_VEC (A);
real amag;

F_AREA(A,f,t);
amag=NV_MAG(A);

char fileDep[] = "Deposit_Flux.txt";
fp=fopen(fileDep,"a");

fprintf(fp,"%i %f %f %f %e %e \n",
p->part_id,P_POS(p)[0],P_POS(p)[1],P_POS(p)[2],amag,P_FLOW_RATE(p));
fclose(fp);

}


However, I keep getting the following error:


================================================== ============================
Stack backtrace generated for process id 22348 on signal 1 :
1000000: /panfs/vol/opt/ansys/v145/fluent/fluent14.5.7/lnamd64/3ddp/fluent.14.5.7() [0x18d6804]
1000000: /panfs/vol/opt/ansys/v145/fluent/fluent14.5.7/lnamd64/3ddp/fluent.14.5.7() [0x18d6f73]
1000000: /lib64/libpthread.so.0(+0xf4a0) [0x2af470ceb4a0]
1000000: /panfs/vol/w/wacheng72/Discrete-Phase/Impinge-Array/P1015-1-T300/libudf/lnamd64/3ddp/libudf.so(discrete_phase_sample+0x75) [0x2af4b98e3881]
Check the file fluenterror.log for details.
Please include this information with any bug report you file on this issue!
================================================== ============================


Error: fluent.14.5.7 received a fatal signal (SEGMENTATION VIOLATION).
Error Object: #f



My suspect is that F_AREA(A,f,t) was not properly executed - there is a message upon compilation that f is used in the line uninitialized.

I wonder if anyone will have any ideas on how to solve the problem?

Thanks.
cwl6750084 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
Backtrace errors while running on a HPC with buoyantBoussinesqSimpleFoam Thangam OpenFOAM Running, Solving & CFD 2 July 12, 2014 00:39
Stack backtrace error using DO radiation model in parallel Thomas William FLUENT 0 October 1, 2013 04:20
how to solve"stack backtrace generated for process id 22151 on signal 1:.."? snailstb FLUENT 5 June 9, 2013 01:07
It would be wonderful if a tool for FoamToTecplot is available luckyluke OpenFOAM Post-Processing 165 November 27, 2012 07:54
Error " stack backtrace " Arnaud FLUENT 2 May 25, 2011 16:57


All times are GMT -4. The time now is 19:47.