← Back to team overview

yade-users team mailing list archive

Re: [Question #233241]: how to get the body numbers who is contact with a sphere

 

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

liucheng83 gave more information on the question:
----------
                   for i in range(103,len(O.bodies)):
                         if O.bodies[i].state.vel.norm()<0.1 :
                             if len(O.interactions.withBody(i))>=3:
                                 num_in_contact[0]=num_in_contact[0]+1
                                 num_contact[0]=num_contact[0]+len(O.interactions.withBody(i))
                  num_coordination[0]=1.0*num_contact[0]/num_in_contact[0]
----------

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.