@@ -106,19 +106,32 @@ def periodic_nearest_neighbors_by_atom(uni, source, a, sizes, **kwargs):
106106 Determine nearest neighbor molecules to a given source (or sources) and
107107 return the data as a dataframe.
108108
109+ For a simple cubic periodic system with unit cell dimension ``a``,
110+ clusters can be generated as follows. In the example below, additional
111+ keyword arguments have been included as they are almost always required
112+ in order to correctly identify molecular units semi-empirically.
113+
114+ .. code-block:: python
115+
116+ periodic_nearest_neighbors_by_atom(u, [0], 40.0, [0, 5, 10, 50],
117+ dmax=40.0, C=1.6, O=1.6)
118+
119+ Argument descriptions can be found below. The additional keyword arguments,
120+ ``dmax``, ``C``, ``O``, are passed directly to the two body computation used
121+ to determine (semi-empirically) molecular units. Note that although molecules
122+ are computed, neighboring molecular units are determine by an atom to atom
123+ criteria.
124+
109125 Args:
110126 uni (:class:`~exatomic.core.universe.Universe`): Universe
111127 source (int, str, list): Integer label or string symbol of source atom
112128 a (float): Cubic unit cell dimension
113129 sizes (list): List of slices to create
114- kwargs: Additional keyword arguments to be passed to atom two body computation (such as covalent radii)
130+ kwargs: Additional keyword arguments to be passed to atom two body calculation
115131
116132 Returns:
117133 dct (dict): Dictionary of sliced universes and nearest neighbor table
118134
119- Note:
120- This function expects cubic periodic unit cells.
121-
122135 See Also:
123136 Sliced universe construction can be facilitated by
124137 :func:`~exatomic.algorithms.neighbors.construct`.
0 commit comments