Length of O.bodies after erasing a body
Hi,
I am learning Yade and I have an issue with erase function. This erases the body and the corresponding interactions, as discussed here https:/
However, the length of bodies remain the same. Sample example below:
O.bodies.
O.bodies.
len(O.bodies)
This gives 2 as answer.
But next I want to erase one of them:
O.bodies.erase(1)
len(O.bodies)
This again gives two and counts the non-existent bodies, but should give 1, no?
A way to solve this was described here: https:/
But, I am interested in applying a constant strain field to some bodies and looping over len(O.bodies) would create problems.
Would be nice if experts shed some light.
Thanks,
Nishant
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Nishant
- Solved:
- Last query:
- Last reply: