Skip to content

Is it possible to get the minimum self distance for a unit cell? #2637

Answered by shyuep
mm04926412 asked this question in Q&A
Discussion options

You must be logged in to vote

There isn't a function that directly does this, but it is just several lines of code to do it. Create a structure with a single atom at the site in the lattice. Do get_neighbors and give it a cutoff radius that is the maximum of the lattice parameters. The neighbors can be sorted by distance and the first one would be the shortest distance.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mm04926412
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants