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 On Monday, June 5, 2023 at 5:28:19 PM UTC+5:30 [email protected] wrote: > 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 > > > On 05/06/2023 07:08, Vivek Chourasiya wrote: > > 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 > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/projectchrono/CAOYnOEXQ%3DR1ELMh-ypvQmqmfPyhSfUzP_dk5jXssyw4zBDpMOA%40mail.gmail.com > > <https://groups.google.com/d/msgid/projectchrono/CAOYnOEXQ%3DR1ELMh-ypvQmqmfPyhSfUzP_dk5jXssyw4zBDpMOA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/0cd32e5f-e492-451c-ae7a-463a1d0e8118n%40googlegroups.com.
