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

Trapped Particle coordinates UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 8, 2014, 19:07
Default Trapped Particle coordinates UDF
  #1
Member
 
S. Morichika
Join Date: Aug 2014
Posts: 62
Rep Power: 12
Saidul is on a distinguished road
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
Saidul is offline   Reply With Quote

Reply

Tags
trapped particles, udf, wall


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
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


All times are GMT -4. The time now is 23:10.