CFD Online Logo CFD Online URL
Home > Forums > FLUENT

help with DPM particle position

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

LinkBack Thread Tools Display Modes
Old   February 14, 2006, 12:56
Default help with DPM particle position
Posts: n/a
When I want to get the particle position in cell and thread,

c=P_CELL(p); t=P_CELL_THREAD(p);

the following error occurs: ------------------------------------------------------ implicitly declaring function to return int: RP_CELL(). ------------------------------------------------------

Thanks a lot!
  Reply With Quote

Old   February 14, 2006, 15:11
Default Re: help with DPM particle position
Allan Walsh
Posts: n/a
Have you included the function RP_CELL in your code before you try to access cell position. There is an example in one of the DPM macro examples in the UDF guide that shows it, without much explanation. (I'm not at my office right now so I can't look it up) - but you should be able to find it.

I have used this for finding the particle position in my code and remember having to include the RP_CELL and I think one other macro.
  Reply With Quote

Old   February 16, 2006, 13:10
Default Re: help with DPM particle position
Posts: n/a
Thank you very much! I solved my problem even without using RP_CELL, but now I know its usage. My another question is, how to get the particle number and diameter in a cell when particle sizes are different?

Best Regards,

  Reply With Quote


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
print position of Lagrangian particle? sven82 OpenFOAM Running, Solving & CFD 4 June 16, 2016 08:58
DPM UDF particle position Tom FLUENT 8 July 25, 2015 12:30
Force dependent on particle position jranita OpenFOAM Programming & Development 1 August 23, 2011 19:44
DPM particle time step amos FLUENT 0 December 1, 2009 04:31
DPM UDF particle position using the macro P_POS(p)[i] dm2747 FLUENT 0 April 17, 2009 01:29

All times are GMT -4. The time now is 17:50.