sknano.core.atoms.BasisAtoms.center_of_mass

BasisAtoms.center_of_mass

Center-of-Mass coordinates of Atoms.

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

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

com : Vector

The position vector of the center of mass coordinates.