Problem with contact/atom?

Submitted by rchurley on Mon, 03/25/2013 - 05:32

Hi,

In trying to calculate the number of contacts per particle, I found that contact/atom gives me the incorrect result. I have attached a simple test: 2 particles (particles #7 and #8) sandwiched between two layers of 3 particles. From coord/atom and from the contact force dump, each particle clearly has 4 contacting neighbors, yet contact/atom does not give this result (it gives 3). Any ideas?

Run in.contact to see all of this. I have played with excluding certain groups from the neighbor list but with no success. I have not tried to mimic this in larger tests, I just noticed it for a simple test I was running.

Thanks!

AttachmentSize
Binary Data contact_test.tar_.gz2.68 KB
ckloss's picture

ckloss | Mon, 03/25/2013 - 15:22

Hi rchurley,

compute contact/atom is performing fine, but you're applying it to "nve_group" only.

Cheers
Christoph

rchurley | Mon, 03/25/2013 - 17:55

Hi,

Thanks for your reply. Not sure why it gives 3 contacts when applied only to nve_group (there are only 2 atoms in nve_group, each with 5 contacts), but I see that it will give me 5 when applied to all. Thanks!

Ryan