← Back to team overview

yade-users team mailing list archive

Re: [Question #661754]: Force on a clump member

 

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.