sknano.core.atoms.XAtoms.CM

XAtoms.CM

Center-of-Mass coordinates of Atoms.

Computes the position vector of the center-of-mass coordinates:

\[\mathbf{R}_{CM} = \frac{1}{M}\sum_{i=1}^{N_{\mathrm{atoms}}} m_i\mathbf{r}_i\]
Returns:

CM : Vector

The position vector of the center of mass coordinates.