yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #24136
Re: [Question #693506]: How to get tension force of a cohesive contact
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.