[MMTK] finding neighbors
Konrad Hinsen
hinsen@cnrs-orleans.fr
Tue, 7 Aug 2001 10:35:29 +0200
> Is there a way to rapidly find all neighbors of a given atom or molecule
> within an arbitrary radius?
For molecules (more precisely, the objects in the universe):
PartitionedCollection(universe).selectShell(reference_point, distance)
At the atom level:
PartitionedAtomCollection(universe).selectShell(reference_point, distance)
See the reference manual for details.
Konrad.
--
-------------------------------------------------------------------------------
Konrad Hinsen | E-Mail: hinsen@cnrs-orleans.fr
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.56.24
Rue Charles Sadron | Fax: +33-2.38.63.15.17
45071 Orleans Cedex 2 | Deutsch/Esperanto/English/
France | Nederlands/Francais
-------------------------------------------------------------------------------