yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #06716
Re: [Question #215485]: Assigned bodies motion law
Question #215485 on Yade changed:
https://answers.launchpad.net/yade/+question/215485
Jan Stránský proposed the following answer:
Hi Riccardo,
you can choose if you prescribe the veocity directly to the bodies or use
TranslationEngine. If you use it for many particles, I would personally
prefere TranslationEngine as it does all looping in C++, but basicly it
doesn't matter much :-)
concerning TranslationEngine, "velocity" parameter may be both positive and
negative. The actual velocity vector applied to bodies is simply
velocity*translationAxis, so your function can be simplified to
def setTransEngineVelocity():
v = math.sin(O.time)
transEngine.velocity = v
and it should work..
Jan
2012/11/28 Riccardo carta <question215485@xxxxxxxxxxxxxxxxxxxxx>
> Question #215485 on Yade changed:
> https://answers.launchpad.net/yade/+question/215485
>
> Riccardo carta posted a new comment:
> Thanks Bruno, I will take into account your advice also.
> What I wrote above seems to work fine by now
>
> --
> 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 : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.