|
[Sponsors] |
December 3, 2014, 10:30 |
Get the Particles ID
|
#1 |
Member
souria
Join Date: Mar 2013
Location: Nancy
Posts: 66
Rep Power: 13 |
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 |
|
December 3, 2014, 10:48 |
|
#2 |
Member
souria
Join Date: Mar 2013
Location: Nancy
Posts: 66
Rep Power: 13 |
Thank you, I have found the solution :
I should put : ID=p->part_id instead P_INJ_ID(P_INJECTION(p)) Nice day |
|
December 23, 2017, 23:28 |
Particle ID
|
#3 |
New Member
kresnadevaihza
Join Date: Dec 2017
Posts: 3
Rep Power: 8 |
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
|
|
December 23, 2017, 23:34 |
|
#4 |
New Member
kresnadevaihza
Join Date: Dec 2017
Posts: 3
Rep Power: 8 |
I change the % to %e and know it gives me a number with e-323. does it not a simple integer?
|
|
August 16, 2018, 21:01 |
particle ID
|
#5 |
New Member
Patrick
Join Date: Jul 2018
Posts: 4
Rep Power: 8 |
^ and ^^
use TP_ID(tp) and display it as a real number |
|
|
|
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 |