|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
JungHo Lee
Join Date: Mar 2015
Posts: 20
Rep Power: 12 ![]() |
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. |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 16:06 |
| DPM UDF - Segmentation Violation & Stack Backtrace | Prashanth | Fluent UDF and Scheme Programming | 4 | July 10, 2012 11:39 |
| Segmentation Fault | Shawn_A | OpenFOAM Running, Solving & CFD | 6 | October 31, 2011 15:38 |
| So many questions in DPM & UDF - Help! URGENT! | Prashanth | FLUENT | 0 | March 3, 2009 23:26 |
| DPM - UDF for fluctuating bubble size | Jaroslav Kotara | FLUENT | 1 | April 19, 2006 10:02 |