|
[Sponsors] |
February 14, 2006, 12:56 |
help with DPM particle position
|
#1 |
Guest
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! |
|
February 14, 2006, 15:11 |
Re: help with DPM particle position
|
#2 |
Guest
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. |
|
February 16, 2006, 13:10 |
Re: help with DPM particle position
|
#3 |
Guest
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, Josh |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
DPM particle time step | amos | FLUENT | 1 | January 4, 2020 09:46 |
print position of Lagrangian particle? | sven82 | OpenFOAM Running, Solving & CFD | 4 | June 16, 2016 09:58 |
DPM UDF particle position | Tom | FLUENT | 8 | July 25, 2015 13:30 |
Force dependent on particle position | jranita | OpenFOAM Programming & Development | 1 | August 23, 2011 20:44 |
DPM UDF particle position using the macro P_POS(p)[i] | dm2747 | FLUENT | 0 | April 17, 2009 02:29 |