New question #699565 on Yade:
https://answers.launchpad.net/yade/+question/699565

Hi all,

In my simulation, I want to calculate the contact number of each particles in 
the primary fabric (only consider the contact pairs larger than the average 
contact force).

 To obtain the average contact force (avgForce), I use the following and it 
works OK:  
   for i in O.interactions:
      fn = i.phys.normalForce.norm()
      forceInact.append([i,fn])
      forceInact=np.array(forceInact)
      avgForce=sum(forceInact[:,1]/len(forceInact[:,1]) 

To get the contact number of each particles , I use:
     for b in O.bodies:
        len(b.intrs())

However, as my question above, how to give a criteria to obtain the contact 
number of each particles by considering the contact pairs with large contact 
forces only?

Thanks,

Zheng





-- 
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     : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to