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

DPM Segmentation Fault in UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 1, 2016, 03:21
Default DPM Segmentation Fault in UDF
  #1
New Member
 
JungHo Lee
Join Date: Mar 2015
Posts: 20
Rep Power: 11
jhlee9622 is on a distinguished road
Hello.

Now, I want to export the DPM data in a plane(particle velocity, particle location, particle id, particle time when particle is passing at each cell, and cell id which particle is passing).

For this, I've made a UDF code and it was compiled well in Fluent.
However, When I used this UDF in a Sample Trajectories, the message appears :

"Error: received a fatal signal (Segmentation fault).
Error Object: #f"

This error is captured and attached below.

This is the UDF code.

DEFINE_DPM_OUTPUT(PSI_C_method, header, fp, p, t, plane)
{

if(header)
par_fprintf_head(fp, " x y z u v w diameter mass_flow_rate time particle_ID ");

par_fprintf(fp, "%d \n", P_POS(p)[0], P_POS(p)[1], P_POS(p)[2], P_VEL(p)[0], P_VEL(p)[1], P_VEL(p)[2], P_DIAM(p), P_FLOW_RATE(p), P_TIME(p), p->part_id);

}


DPM is steady and no interaction.
Could any one help me, please?
Thank you.
Attached Images
File Type: jpg 캡처.JPG (50.5 KB, 3 views)
jhlee9622 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
segmentation fault when installing OF-2.1.1 on a cluster Rebecca513 OpenFOAM Installation 9 July 31, 2012 15:06
DPM UDF - Segmentation Violation & Stack Backtrace Prashanth Fluent UDF and Scheme Programming 4 July 10, 2012 10:39
Segmentation Fault Shawn_A OpenFOAM Running, Solving & CFD 6 October 31, 2011 14:38
So many questions in DPM & UDF - Help! URGENT! Prashanth FLUENT 0 March 3, 2009 22:26
DPM - UDF for fluctuating bubble size Jaroslav Kotara FLUENT 1 April 19, 2006 09:02


All times are GMT -4. The time now is 00:30.