← Back to team overview

yade-users team mailing list archive

Re: [Question #689817]: Assessing aperture size while injectin in a joint plane

 

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.