Question #661754 on Yade changed:
https://answers.launchpad.net/yade/+question/661754
Status: Open => Answered
Jan Stránský proposed the following answer:
Hi Nishant,
have a look at [1]
### pseudo code
F,T = (0,0,0), (0,0,0)
for each clump member:
f = force of member
t = torque (moment) of member
F += f # simply added force
T += t + (memberPos-clumpPos).cross(f) # added torque plus moment effect of
the force with respect to the clump "center"
###
cheers
Jan
[1] https://github.com/yade/trunk/blob/master/core/Clump.cpp#L55
--
You received this question notification because your team yade-users is
an answer contact for Yade.
_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp