Question #695164 on Yade changed:
https://answers.launchpad.net/yade/+question/695164
Status: Open => Answered
Robert Caulk proposed the following answer:
You would iterate on the interaction container and query the constituent
body ids:
separations =[]
for i in O.interactions:
id1,id2 = i.id1,i.id2
x = np.linalg.norm(O.bodies[id1].state.pos - O.bodies[id2].state.pos)
separations.append(x)
print(separations)
Cheers,
Robert
--
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