Question #693506 on Yade changed:
https://answers.launchpad.net/yade/+question/693506
Status: Open => Answered
Jan Stránský proposed the following answer:
Hello,
try i.phys.normalForce.dot(i.geom.normal)
The dot product of a vector "F" and unit vector "n" is a projection of F on the
direction of n, i.e. the "oriented length" in the "n" direction.
The magnitude should be the same as i.phys.normalForce.norm(), but you can
distinguish tension/compression based on the sign of the dot product.
cheers
Jan
--
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