New question #699375 on Yade:
https://answers.launchpad.net/yade/+question/699375

Hi,

I encountered a problem with manipulation of force container after I erase some 
bodies from simulation. For example, command O.forces.reset() results in 
'segmentation core fault'. I have found a 'dirty fix' to this (setting zero 
permF to any of the left bodies). However, I don't understand this behavior. 
How should it be properly handled? 

# this code works
O.bodies.append([sphere((0,0,i),0.5) for i in range(3)])
O.forces.reset()
#

# this code fails
O.bodies.append([sphere((0,0,i),0.5) for i in range(3)])
O.bodies.erase(0)
O.forces.reset()
#

#but this works
O.bodies.append([sphere((0,0,i),0.5) for i in range(3)])
O.bodies.erase(0)
O.forces.setPermF(1,(0,0,0))
O.forces.reset()
#


I am using Ubuntu 20.04. I have tried this on different versions of Yadedaily 
(e.g 20210923-5934~44b94a0~focal1) and on Yade 2020.01a.

Best wishes,
KB

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to