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

Riccardo carta gave more information on the question:
I wrote this but it does not seem to work

def setTransEngineVelocity():
        v =math.sin(O.time)
        transEngine.velocity = v
        if v > 0:
                transEngine.axis = [0,0,-1]
        else:
                transEngine.axis = [0,0,1]

O.engines=[
        ......
        TranslationEngine(translationAxis=[0,0,-1],velocity=0,ids=tool,label= 
"transEngine"),
        PyRunner(iterPeriod=1,command='setTransEngineVelocity()'),
        ...
]

-- 
You received this question notification because you are a member of
yade-users, which 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