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

How to follow the path of a particle in DPM?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 1, 2014, 08:35
Default How to follow the path of a particle in DPM?
  #1
Member
 
Join Date: Jul 2013
Posts: 80
Rep Power: 13
upeksa is on a distinguished road
I want to write a UDF, that, when there is an impact on a wall, the coordinates of the centroids in the particle path which made that impact are shown.

Do you know how to loop over particle path in a DEFINE_ON_DEMAND? And how to retrieve the particle ID of each path?

Thanks for helping.
upeksa is offline   Reply With Quote

Old   September 1, 2014, 11:22
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
You ask for a solution using DEFINE_ON_DEMAND, but I would instead use DEFINE_DPM_BC (or maybe DEFINE_DPM_SCALAR_UPDATE, depending on what you exactly want).
In that case, p is the pointer to the particle, p->part_id is the ID and P_POS(p) is the position of the particle.

If with "centroid" you mean the center of the face on which the particle collided, you would access it using the "f" in the DEFINE_DPM_BC macro, and then F_CENTROID(x,f,t) would set the centroid of that face to variable x.
pakk is offline   Reply With Quote

Old   November 26, 2014, 12:18
Default
  #3
Member
 
souria
Join Date: Mar 2013
Location: Nancy
Posts: 66
Rep Power: 13
souria is on a distinguished road
hey,
Did you find the answer to your question ??

I'm trying to do the same thing ..

Let me know please
Thanks

Quote:
Originally Posted by upeksa View Post
I want to write a UDF, that, when there is an impact on a wall, the coordinates of the centroids in the particle path which made that impact are shown.

Do you know how to loop over particle path in a DEFINE_ON_DEMAND? And how to retrieve the particle ID of each path?

Thanks for helping.
souria is offline   Reply With Quote

Reply

Tags
dpm, particle id, path, udf


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
DPM particle time step amos FLUENT 1 January 4, 2020 09:46
DPM particle tracking considering particle size oball Fluent UDF and Scheme Programming 4 October 6, 2019 15:42
Particle path won't go all the way! choiyun Tecplot 1 January 24, 2014 12:35
injection problem Mark New FLUENT 0 August 4, 2013 02:30
DPM UDF particle position using the macro P_POS(p)[i] dm2747 FLUENT 0 April 17, 2009 02:29


All times are GMT -4. The time now is 16:26.