yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #20953
Re: [Question #684929]: Interaction between clumps
Question #684929 on Yade changed:
https://answers.launchpad.net/yade/+question/684929
Status: Open => Answered
Robert Caulk proposed the following answer:
Hello,
Here is my guess (untested):
clump1ID = someID
clump2ID = someOtherID
for i in O.bodies[clump1ID].intrs():
if O.bodies[i.id2].clumpId = clump2ID
print('clump1 body', i.id1)
print('clump2 body', i.id2)
Cheers,
Robert
--
You received this question notification because your team yade-users is
an answer contact for Yade.