Question #689817 on Yade changed:
https://answers.launchpad.net/yade/+question/689817

Luc Scholtès posted a new comment:
Something like this should work to identify the interactions on the
whole joint and the one at the injection point Xp:


intOnFracPlane=[]
intOnInjPoint=[]
for i in O.interactions:
  if i.phys.isOnJoint:
    intOnFracPlane.append(i)
    if (i.geom.contactPoint[0]>(Xp[0]-Rmin)) and 
(i.geom.contactPoint[0]<(Xp[0]+Rmin)) and (i.geom.contactPoint[1]>(Xp[1]-Rmin)) 
and (i.geom.contactPoint[1]<(Xp[1]+Rmin)):
      intOnInjPoint=i

Of course, you need to define Xp (the injection point) and to compute
the minimum radius Rmin before that.

Luc

-- 
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

Reply via email to