No interactions after erasing body

Bug #1001194 reported by Anton Gladky
8
This bug affects 1 person
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.countReal() increases in my collision checking callback) I freeze that particle (setting dynamic = False) and create a new one.

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
Revision history for this message
Anton Gladky (gladky-anton) wrote :

Fixed in b92389065

Changed in yade:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.