yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #13844
Re: [Question #406621]: How to apply a constant force value
Question #406621 on Yade changed:
https://answers.launchpad.net/yade/+question/406621
Status: Open => Answered
Jan Stránský proposed the following answer:
Hi Felipe
upBox = O.bodies[540]
> O.forces.addF(upBox.id)
> O.forces.setPermF(upBox.id,(0,10,0))
> upBox.dynamic = True # [4]
> upBox.state.mass = 10
> upBox.state.inertia =(0,1,0)
>
> is it correct?
sorry, I did a typo in te first answer, addF amd setParmF has the same
arguments (id,forceVector). Choose only one of them (depending on if you
want to change the value often, then choode addF, if you want to have
constant value, setPermF is preferable).
I guess state.inertia should not have any zero (not tested)
otherwise I think it could work..
cheers
Jan
--
You received this question notification because your team yade-users is
an answer contact for Yade.