CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Fluent UDF and Scheme Programming

Get the Particles ID

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   December 3, 2014, 10:30
Default Get the Particles ID
  #1
Member
 
souria
Join Date: Mar 2013
Location: Nancy
Posts: 46
Rep Power: 4
souria is on a distinguished road
Hey every one,

I'm using DPM for particles tracking. So, I write UDF that let me track velocity (U,V,W) and positions of every particle that touch the bottom. But, Now I want to have the ID of these particles ! I don't know which symbol to use for such stuff :
Herein is the line :

fprintf (f2, "%f %f %f %f %f %f %e \n",x,y,z,velpu,velpv,velpw,P_INJ_ID(P_INJECTION(p )));

So it gave me the x,y,z,u,v,w but it gave me 0 for the ID !!!

I suppose P_INJ_ID(P_Injection(p) isn't the right one ???


Help please

Thanks
souria is offline   Reply With Quote

Old   December 3, 2014, 10:48
Default
  #2
Member
 
souria
Join Date: Mar 2013
Location: Nancy
Posts: 46
Rep Power: 4
souria is on a distinguished road
Thank you, I have found the solution :

I should put : ID=p->part_id instead P_INJ_ID(P_INJECTION(p))

Nice day
souria is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
trying to simulate two-phase jet flow with particles in surface injection ajkratos FLUENT 5 March 3, 2015 22:33
Conditional Release of DPM particles - UDF nvschandra Fluent UDF and Scheme Programming 0 December 10, 2013 12:02
UDF for deleting particles in DPM imanmirzaii Fluent UDF and Scheme Programming 5 January 29, 2013 08:02
particles model ati_ros61 FLOW-3D 3 December 6, 2009 17:03
how to determine the number of particles injected. welch FLUENT 1 November 1, 2005 06:11


All times are GMT -4. The time now is 18:20.