yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #06707
Re: [Question #215485]: Assigned bodies motion law
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.