yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #29283
Re: [Question #706190]: Contacts between walls and particles
Question #706190 on Yade changed:
https://answers.launchpad.net/yade/+question/706190
Status: Needs information => Answered
Jan Stránský proposed the following answer:
Hello,
using Jerome's hint:
###
def extractContacts():
facets = [b for b in O.bodies if isinstance(b.shape,Facet)]
interactions = [interaction for facet in facets for interaction in O.interactions.withBody(facet.id)]
contacts = [(
i.geom.contactPoint,
i.phys.normalForce + i.phys.shearForce,
) for i in interactions]
return contacts
###
Cheers
Jan
--
You received this question notification because your team yade-users is
an answer contact for Yade.