FLUENT V5 - tip to determine the specific cell in which a tracked particle is located


In SOME DEFINE_DPM_... UDFs, the user gets the information which cell the particle is in from FLUENT (e.g. in DEFINE_DPM_SOURCE or DEFINE_DPM_SCALAR_UPDATE).

In many other DEFINE_DPM_... UDFs, it's not easy to know which cell (to be specified by (cell_t) c and (Thread *) t) the particle is in. How can we access this information form the given pointer (Tracked_Particle *) p?
If (Tracked_Particle *) p is given, get (cell_t) c and (Thread *) t of the cell the particle currently is in from the following two macro calls:

c = RP_CELL(&(p->cCell));
t = RP_THREAD(&(p->cCell));

That's it.





Show Form
No comments yet. Be the first to add a comment!