yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #15270
Re: [Question #646460]: translation of a rotating cylinder
Question #646460 on Yade changed:
https://answers.launchpad.net/yade/+question/646460
Status: Open => Answered
Jan Stránský proposed the following answer:
Hi Guilhem,
thanks for the script. Yes, labels in this case are not taken into account. Currently only labels of "first order" engines plus special cases (like bound functors of collider or Ig2, Ip2 and Law2 functors of InteractionLoop) are projected to python, see [1,2].
Adding CombinedKinematicEngine should not be a problem, but it is not currently available.
A workaround:
####
transEngine = TranslationEngine(ids=roul,translationAxis=(1,0,0),velocity=10)
rotEngine = RotationEngine(ids=roul,angularVelocity=0.,rotationAxis=(0,1,0))
O.engines=O.engines[:4]+[rotEngine+transEngine]+O.engines[4:]
####
cheers
Jan
[1] https://github.com/yade/trunk/blob/master/py/wrapper/yadeWrapper.cpp#L542
[2] https://github.com/yade/trunk/blob/master/py/wrapper/yadeWrapper.cpp#L714
--
You received this question notification because your team yade-users is
an answer contact for Yade.