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

Hi all,

I am using a script where the .st have to wait particle stabilization before 
starts its TranslationEngine+ RotationEngine.
For this I am using in O. engines:
...
CombinedKinematicEngine(ids=rod,label='combEngine', Dead=True) + 
TranslationEngine(translationAxis=(0,0,1),velocity=vel) + 
RotationEngine(rotationAxis=(1,0,0), angularVelocity=angVel, 
rotateAroundZero=True, zeroPoint=(0,0,0)),
PyRunner(command='checkUnbalanced()',iterPeriod=500),

...

def checkUnbalanced():
        print "Unbalanced: ",utils.unbalancedForce()
        if utils.unbalancedForce()<0.22:
                O.engines=O.engines+[PyRunner(iterPeriod=1, 
command="updateKinematicEngines()" ), 
CombinedKinematicEngine(ids=rod,label='combEngine', Dead=False ) + 
TranslationEngine(translationAxis=(0,0,1),velocity=vel) + 
RotationEngine(rotationAxis=(1,0,0), angularVelocity=angVel, 
rotateAroundZero=True, zeroPoint=(0,0,0))]
                transEngine, rotEngine = combEngine.comb[0], combEngine.comb[1]

The problem is that the stl loses its center and the rotation is around another 
zeroPoint (perhaps the global zero point, not the stl zero point).

Any idea of what is wrong?

Thank you
Luis


-- 
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