← Back to team overview

yade-users team mailing list archive

Re: [Question #698585]: Force applied from disk to particle

 

Question #698585 on Yade changed:
https://answers.launchpad.net/yade/+question/698585

Jan Stránský posted a new comment:
or, in a "more pythonic" way:

force_lp = sum(abs(O.forces.f(n)[2]) for n in lower_punch)

Also, is the abs necessary? Should not..

Cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.