Open sgbaird opened 2 years ago
a further option would be to encode just the connectivity (graph adjacency matrix)
Related from Grouped representation of interatomic distances as a similarity measure for crystal structures:
The procedure to calculate the GRID is as follows: 1) compute all pairwise distances up to an arbitrary cutoff (here 10Å) starting from each symmetry-unique atom(j) within the unit cell, taking periodic boundary conditions into account
Other related concepts:
I should probably make sure that the distance matrices are periodic distance matrices (EDIT: this seems to be the case).
Would be via
get_all_neighbors(...)
or probably preferablyget_sites_in_sphere(...)
Pairwise distances could be calculated using
get_distance(...)
or by digging into howdistance_matrix
is calculated, which probably usesget_distance(...)
.Better method would probably be to extract the Cartesian coordinates of each site from
get_sites_in_sphere(...)
and just useall_distance
per what happens withdistance_matrix
.