July 6, 2019 at 3:43 am
Subscriber
Hi Amine and @rwoolhou,
I have one last question with regard to this thread. Is there any way to loop through all the particles without going into the thread and cell loop? To clarify, I just want to check each particle present in my domain (transient simulation), extract the position and then calculate the distance between my reference point and the particle position.
If I implement
"Particle *p;
Injection *Ilist, *I;
Ilist = Get_dpm_injections();
loop(I, Ilist)
{
loop(p,I->p_init) /* Standard ANSYS Fluent Looping Macro to get particle streams in an Injection */
{/*do the check here*/}
}
Would that do that trick? Or does it only loop through the initial streams of an injection?
Thanks a lot for your reply in advance.
Cheers
Hasan