Quantify coordination number for a specific body

Asked by Luis Barbosa

Hi all,

Is it possible quantify the coordination number for a specific body (sphere in a clump) using "avgNumInteractions"?
I couldn't find any example.

Thanks,
Luis

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Luis Barbosa
Solved:
Last query:
Last reply:
Revision history for this message
Robert Caulk (rcaulk) said :
#1

Hello Luis,

Finding the number of interactions a particle participates in is as simple as:

len(O.bodies[i].intrs())

I am not sure what you mean when you ask about a sphere in a clump. If you simply want to know how many external interactions a clump member participates in, the line above will suffice. However, if you want to know how the clump members are interacting with eachother - you can't - there are no interactions between clump members of the same clump.

Cheers,

Robert

Revision history for this message
Luis Barbosa (luis-pires-b) said :
#2

Hi Robert,
I think it is pretty much it!

Thank you.

Revision history for this message
Jérôme Duriez (jduriez) said :
#3

Hi,

I would suggest also checking len(O.bodies[i].intrs()) vs len(O.interactions.withBody(i)). The doc of Body.intrs() is unclear whether it includes or not non real interactions

Revision history for this message
Jan Stránský (honzik) said :
#4
Revision history for this message
Luis Barbosa (luis-pires-b) said :
#5

Thanks Jan.