No interactions after erasing body
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Yade |
Fix Released
|
Critical
|
Unassigned |
Bug Description
Hi all,
I've got a fairly simple script to build some ballistic aggregates which I will use in later simulations. I basically started with a seed particle at the origin, which has dynamic=False and then create particles and fire them randomly towards the aggregate. When contact is detected (O.interactions
This basically works OK. But I have to check for particles that miss the aggregate. So in my collision checking callback, if there has been no increase in interactions, and if I am far from the seed particle, I erase the particle with O.bodies.erase.
This is where things seem to behave unexpectedly. I erase the particle, and a few timesteps later create a new one. This takes the same ID as the deleted one. But now, no interactions are ever detected - even when the particles pass through each other! Does O.bodies.erase not do what I think it does?
Any suggestions welcome!
Thanks, Mark
Changed in yade: | |
importance: | Undecided → Critical |
Fixed in b92389065