yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #27813
[Question #701934]: How do I keep the particles still?
New question #701934 on Yade:
https://answers.launchpad.net/yade/+question/701934
I needed to keep all the particles in the simulation still, so I used the following code:
def checkUnbalanced():
if unbalancedForce() < .02:
O.pause()
for b in O.bodies:
if isinstance(b.shape,Sphere):
b.state.blockedDOFs='zxy'
checkUnbalanced() is a function I define.
But I found that the particles are not fixed, why is that? Is there any other code that keeps particles immobile?
--
You received this question notification because your team yade-users is
an answer contact for Yade.