how to add Torque on a body

Asked by Carrie

Hi,

I want to directly add force and torque to some bodies ( for example 10 spheres ), and I find that there is a method called "addForce" to deal with the force. But is there any good way to add the torque conveniently ?

Thanks for any of your suggestions!

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Stránský
Solved:
Last query:
Last reply:
Revision history for this message
Best Jan Stránský (honzik) said :
#1

Hi Carrie
addT is what you are looking for [1]
cheers
Jan

[1]
https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.ForceContainer.addT

2014-08-18 10:42 GMT+02:00 Carrie <email address hidden>:

> New question #253249 on Yade:
> https://answers.launchpad.net/yade/+question/253249
>
> Hi,
>
> I want to directly add force and torque to some bodies ( for example 10
> spheres ), and I find that there is a method called "addForce" to deal
> with the force. But is there any good way to add the torque conveniently ?
>
> Thanks for any of your suggestions!
>
> --
> 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 address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
Donia Marzougui (marzougui-donia) said :
#2

Hi,

It is the same for the force. you have just to write: forces.addTorque

Bests
Donia

Revision history for this message
Carrie (shoppingwei) said :
#3

oh, I find a addT function...

Revision history for this message
Carrie (shoppingwei) said :
#4

Thanks Jan Stránský, that solved my question.