|
[Sponsors] |
December 8, 2014, 03:20 |
Trapped Particle coordinates UDF
|
#1 |
Member
S. Morichika
Join Date: Aug 2014
Posts: 62
Rep Power: 12 |
Hello,
I am working with DPM and trying to get the trapped particle coordinates. I am using this UDF to get the coordinates. #include "udf.h" DEFINE_DPM_BC(dpm_coordinates_0412,p,t,f,f_normal, dim) { FILE * f1; float x=0; float y=0; float z=0; f1 = fopen ("Z:\\dpm_coordinates_0412_xyz.txt", "a"); x=P_POS(p)[0]; y=P_POS(p)[1]; z=P_POS(p)[2]; fprintf (f1, "%f %f %f\n",x,y,z); fclose(f1); return PATH_ABORT; } Suppose, I release 1400 particle and 700/800 particle trapped. But using this UDF I am getting lots of coordinates. How can I get the exact number of coordinates which are trapped. Could you please help me. Regards, Saidul saeedmathku@yahoo.com |
|
Tags |
dpm, trapped particles |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Visualize the trapped particle coordinates at the wall | Saidul | ANSYS | 4 | December 3, 2014 19:02 |
injection problem | Mark New | FLUENT | 0 | August 4, 2013 02:30 |
Hooking a DPM Particle Heat and Mass Transfer UDF to FLUENT | subhankar_bhandari | Main CFD Forum | 0 | August 19, 2010 04:01 |
Help: UDF of "particle body force" !!! | zhaoh | FLUENT | 3 | January 16, 2007 21:17 |
How can I get the particle current position in UDF | cfdfans | FLUENT | 4 | April 2, 2001 06:03 |