Regarding the lifetime of particles

30 views
Skip to first unread message

Vivek Chourasiya

unread,
Jun 5, 2023, 1:08:55 AM6/5/23
to projec...@googlegroups.com
Hello All,

I am trying to use chrono library's particle factory module for my use cases with particles.

I could not find any attribute which can be used as the lifetime of particles. Am I missing something?

If it is not there then is it planned? Or should I go ahead and modify it to have some implementation of that kind.

My plan is to modify ChBody of particles to have some kind of timer attribute to be used as life of the particles.

Let me know what you think.

Thanks,
Vivek

Alessandro Tasora

unread,
Jun 5, 2023, 7:58:19 AM6/5/23
to projec...@googlegroups.com

hi

there is no particle lifetime attribute. It is up to you do remove them from the ChSystem when too old.

By the way: the ChParticleCloud class is meant to handle large number of (identical) particles, rather than creating multiple ChBody objects. It saves memory.

regards

Alessandro

--
You received this message because you are subscribed to the Google Groups "ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email to projectchron...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/CAOYnOEXQ%3DR1ELMh-ypvQmqmfPyhSfUzP_dk5jXssyw4zBDpMOA%40mail.gmail.com.

Vivek Chourasiya

unread,
Jun 5, 2023, 9:16:16 AM6/5/23
to ProjectChrono
Hi,

How can we know that a specific particle is too old? What is the metric to measure the time spent by particle? I know we can get the time of simulation but the time spent by a particle in the system is not retrievable I think.

Thanks for pointing out, I will see the usage of ChParticleCloud class. Afaik, this ChParticleCloud class is not suitable for use cases involving emission of particles periodically.

My use case involves emission of particles hence I am currently using ChParticleEmitter class which emits particle by creating ChBody.

Let me know if I can still use particle cloud instead of emitter to save memory.

Regards,
Vivek
Reply all
Reply to author
Forward
0 new messages