| Thread Previous • Date Previous • Date Next • Thread Next |
Question #226978 on Yade changed:
https://answers.launchpad.net/yade/+question/226978
Status: Open => Answered
Bruno Chareyre proposed the following answer:
The force applied by id1 on id2 is (i.phys.shearForce + i.geom.normal *
i.phys.normalForce)
So your question is equivalent to "is id1 always smaller than id2?"
for i in O.interactions:
if i.id1>i.id2:
print "hehe"
...
hehe
hehe
hehe
...
You will have to check I'm afraid, or maybe check if id1<id2, else
revert.
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.
| Thread Previous • Date Previous • Date Next • Thread Next |