How to record the removed particles ids and removal time?
Hi,
I would like to record the ids and time of particles which leaves the simulation domain. I have hundreds of thousands of particles in my simulation. Currently I tried writing apis to remove a particle when it collides with geometry surface outlet, in the same manner as the api tutorial particle removal. However, I can get those information but found it difficult to save the datas for the removed particle id and time. What kind of method should I use? And is there an alternative way to do so?
Thanks a lot.
Regards,
Jason
Answers
-
Hi Jason,
It maybe best to write the data to a text file, but you have to be careful that writing data to a file with multiple threads can cause a crash. EDEM has a threadID function so you can write data per thread on the CPU, if using GPU you have to transfer the data to CPU first.
Regards
Stephen
0