Skip to content

Neighbor Search #279

Closed Answered by wojdyr
lobnaOmar20 asked this question in Q&A
Aug 21, 2023 · 2 comments · 14 replies
Discussion options

You must be logged in to vote

The distances from Si3 to the nearest neighbor is between 1.60 A and 1.70 A.

and you search in the radius of 4.0A, getting also the second nearest neighbors.
Add max_dist=2.0 to ns.find_site_neighbors().

If I limit the search to 2.0 I get:

find neighbors of Si1 <gemmi.Fractional(0.6784, 0.6701, 0.0983)>
O3 symmetry op #0 <gemmi.Fractional(0.685, 0.6573, 0.8891)> 1.619205318374039
O6 symmetry op #0 <gemmi.Fractional(0.5806, 0.6616, 0.0572)> 1.6229646008471021
O4 symmetry op #0 <gemmi.Fractional(0.7353, 0.6063, 0.2558)> 1.6235125698772466
O9 symmetry op #0 <gemmi.Fractional(0.7094, 0.7544, 0.1882)> 1.639821180192079

Note that the distance to O3 is calculated through the PBC. It can be cal…

Replies: 2 comments 14 replies

Comment options

You must be logged in to vote
2 replies
@lobnaOmar20
Comment options

@lobnaOmar20
Comment options

Comment options

You must be logged in to vote
12 replies
@lobnaOmar20
Comment options

@wojdyr
Comment options

@lobnaOmar20
Comment options

@lobnaOmar20
Comment options

@lobnaOmar20
Comment options

Answer selected by lobnaOmar20
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