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

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, 02:20
Default Trapped Particle coordinates UDF
  #1
Member
 
S. Morichika
Join Date: Aug 2014
Posts: 62
Rep Power: 11
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
dpm, trapped particles


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
Visualize the trapped particle coordinates at the wall Saidul ANSYS 4 December 3, 2014 18:02
injection problem Mark New FLUENT 0 August 4, 2013 01:30
Hooking a DPM Particle Heat and Mass Transfer UDF to FLUENT subhankar_bhandari Main CFD Forum 0 August 19, 2010 03:01
Help: UDF of "particle body force" !!! zhaoh FLUENT 3 January 16, 2007 20:17
How can I get the particle current position in UDF cfdfans FLUENT 4 April 2, 2001 05:03


All times are GMT -4. The time now is 02:22.