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

Get the Particles ID

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By souria

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 3, 2014, 10:30
Default Get the Particles ID
  #1
Member
 
souria
Join Date: Mar 2013
Location: Nancy
Posts: 66
Rep Power: 13
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: 66
Rep Power: 13
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
wc34071209 and myaghoobi2 like this.
souria is offline   Reply With Quote

Old   December 23, 2017, 23:28
Default Particle ID
  #3
New Member
 
kresnadevaihza
Join Date: Dec 2017
Posts: 3
Rep Power: 8
toto98 is on a distinguished road
i have used your solution but it's still give me 0 for particle id. is it because the newer version of fluent? I use ansys 16
toto98 is offline   Reply With Quote

Old   December 23, 2017, 23:34
Default
  #4
New Member
 
kresnadevaihza
Join Date: Dec 2017
Posts: 3
Rep Power: 8
toto98 is on a distinguished road
I change the % to %e and know it gives me a number with e-323. does it not a simple integer?
toto98 is offline   Reply With Quote

Old   August 16, 2018, 21:01
Default particle ID
  #5
New Member
 
Patrick
Join Date: Jul 2018
Posts: 4
Rep Power: 8
pat-cfd is on a distinguished road
^ and ^^

use TP_ID(tp) and display it as a real number
pat-cfd is offline   Reply With Quote

Reply


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
how to determine the number of particles injected. welch FLUENT 2 January 18, 2024 05:08
UDF for deleting particles in DPM imanmirzaii Fluent UDF and Scheme Programming 12 November 25, 2020 20:27
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
particles model ati_ros61 FLOW-3D 3 December 6, 2009 17:03


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