This module defines a class and function for identifying contacts.
A class for contact identification. Contacts are identified using the coordinates of atoms at the time of instantiation.
atoms must be an
Atomicinstance. When an orthorhombic unitcell array is given
Returns atoms, or coordinate array, provided at instantiation..
Returns unitcell array, or None if one was not provided.
iterNeighbors(atoms, radius, atoms2=None, unitcell=None)¶
Yield pairs of atoms that are within radius of each other and the distance between them. If atoms2 is also provided, one atom from atoms and another from atoms2 will be yielded. If one of atoms or atoms2 is a coordinate array, pairs of indices and distances will be yielded. When orthorhombic unitcell dimensions are provided, periodic boundary conditions will be taken into account (see
wrapAtoms()for details). If atoms is a
Frameinstance and unitcell is not provided, unitcell information from frame will be if available.