← Back to team overview

yade-users team mailing list archive

Re: [Question #707870]: Interaction between sphere and facet with specific ID


Question #707870 on Yade changed:

    Status: Open => Answered

Jan Stránský proposed the following answer:

to get interaction of specific body, use [1]:
bodyIntrs = b.intrs()

To get interaction of multiple bodies, do:
bs = [bottom1,bottom2] # for example, bottom1 and bottom2 are bottom facets
intrs = [i for b in bs for i in b.intrs()]

# make them without possible duplicates
ids = set([(i.id1,i.id2) for i in intrs])
intrs = [O.interactions[id1,id2] for id1,id2 in ids]


[1] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.Body.intrs

You received this question notification because your team yade-users is
an answer contact for Yade.