Trapped Particle coordinates UDF
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 |
All times are GMT -4. The time now is 03:13. |