Python Neighbor Lists¶
neighbor_list
¶
Neighbor-list helpers exposed by the Python package.
NeighborList(i: list[int], j: list[int], S: list[float])
dataclass
¶
neighbor_list(atoms: Atoms, cutoff: float, symmetrize: bool = True, sort: bool = False) -> NeighborList
¶
Compute a neighbor list for an ASE structure.
Parameters:
-
atoms(Atoms) –Input structure.
-
cutoff(float) –Pair cutoff distance in angstrom.
-
symmetrize(bool, default:True) –If
True, return bothi -> jandj -> ientries for each pair. -
sort(bool, default:False) –If
True, sort the output lexicographically by(i, j).
Returns:
-
NeighborList–Neighbor indices and periodic-image shifts for all pairs within the cutoff.