Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected behavior in CrystalNN: very low coordination numbers when adsorbates are present #2618

Open
Andrew-S-Rosen opened this issue Aug 11, 2022 · 0 comments

Comments

@Andrew-S-Rosen
Copy link
Member

Andrew-S-Rosen commented Aug 11, 2022

I have the following structure of CO on a Rh surface. When using CrystalNN() on a surface Rh atom without an adsorbate, I get a coordination number of 9. When getting the coordination number of the surface Rh with CO bound to it, I get a coordination number of 1. One would expect the coordination number of the Rh with CO on it to be 1 greater than its neighboring sites. I'm not sure that this is a bug, but it's definitely unexpected! I have to dig into the root cause. @mkhorton, you might be interested.

image

from pymatgen.core import Structure
from pymatgen.analysis.local_env import CrystalNN
s = Structure.from_file('test.cif')
cnn = CrystalNN()
cn1 = cnn.get_cn(s,0) # Rh surface site with CO (returns 1)
cn2 = cnn.get_cn(s,1) # Rh surface site without CO (returns 9)

test.cif.txt

@Andrew-S-Rosen Andrew-S-Rosen changed the title Unexpected behavior in CrystalNN Unexpected behavior in CrystalNN: very low coordination numbers when adsorbates are present Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant