|
[Sponsors] |
December 8, 2014, 19:07 |
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 |
trapped particles, udf, wall |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Particle Injection induced from a UDF | Peter023 | Fluent UDF and Scheme Programming | 3 | November 26, 2018 04:55 |
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 |
how to change particle properties using udf? | ljp | Fluent UDF and Scheme Programming | 0 | April 2, 2010 10:57 |
Move particle in UDF | Henrik | FLUENT | 5 | July 29, 2008 11:55 |