← Back to team overview

yade-users team mailing list archive

Re: [Question #238797]: Update interaction physics after changing material of spheres

 

Question #238797 on Yade changed:
https://answers.launchpad.net/yade/+question/238797

Christian Jakob proposed the following answer:
You can avoid explosions by using calm() function, which sets velocities of all bodies to zero.
In addition with a pyrunner, it can help you ... You can try something like this:

O.engines=O.engines+[PyRunner(iterPeriod=1,command='calm()',label='calmRunner')]
O.run(1000,True)

calmRunner.iterPeriod = 9
O.run(5000,True)

calmRunner.iterPeriod = 9999
O.run(10000,True)

calmRunner.iterPeriod = 99999
O.run(20000,True)
calmRunner.dead=True	#deactivate calm runner

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.