← Back to team overview

yade-users team mailing list archive

Re: [Question #689086]: Coordination Number

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,

roughly:

1) select the relevant spheres, whose center is inside a box
sphs = [b for b in O.bodies if isInsideRelevantBox(b)]

2) compute number of interactions of each sphere using b.intrs() [1]
you can also use information about shape to exclude sphere-nonsphere contact if it is not desirable

3) averaging is trivial

cheers
Jan

[1] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.Body.intrs

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.