Re: [Yade-users] [Question #689086]: Coordination Number

2020-03-06 Thread Chareyre
Question #689086 on Yade changed: https://answers.launchpad.net/yade/+question/689086 Status: Open => Answered Chareyre proposed the following answer: Hi, I confirm your self answer. You could put this in a function to be used in the condition. Bruno Le ven. 6 mars. 2020 14:17, Paolo a écri

Re: [Yade-users] [Question #689086]: Coordination Number

2020-03-06 Thread Paolo
Question #689086 on Yade changed: https://answers.launchpad.net/yade/+question/689086 Status: Answered => Open Paolo is still having a problem: My box is a facetbox with its top open. Let's suppose that I'd like to determine the averege coordination number of the spheres which are inside: g

Re: [Yade-users] [Question #689086]: Coordination Number

2020-03-05 Thread Jan Stránský
Question #689086 on Yade changed: https://answers.launchpad.net/yade/+question/689086 Jan Stránský proposed the following answer: > I can't understand how I could define the condition of being in the box I want. please be more specific what you can't understand (principles, how to code it, how t

Re: [Yade-users] [Question #689086]: Coordination Number

2020-03-05 Thread Paolo
Question #689086 on Yade changed: https://answers.launchpad.net/yade/+question/689086 Paolo posted a new comment: Thanks Jan for answering. By the way, I can't understand how I could define the condition of being in the box I want. Moreover, which is the difference between intrs() and avgNumInte

Re: [Yade-users] [Question #689086]: Coordination Number

2020-03-02 Thread Jan Stránský
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)

[Yade-users] [Question #689086]: Coordination Number

2020-03-02 Thread Paolo
New question #689086 on Yade: https://answers.launchpad.net/yade/+question/689086 Hi everybody. I'm trying to evaluate the mean coordination number (mean number of contact of a bunch of particle) of a packing. I have not written down the code yet, but the idea is that, during the simulation, th