next up previous contents index
Next: Interface add_thermostat Up: Module dynamicalsystem_module Previous: Interface angular_momentum   Contents   Index

Interface momentum


\begin{boxedminipage}{\textwidth}
\begin{verbatim}p = momentum(this[,indices])
p = momentum(mass,velo[,indices])\end{verbatim}
\end{boxedminipage}

Return the total momentum $\mathbf{p} = \sum_i \mathbf{m_i} \mathbf{v_i}$. Optionally only include the contribution of a subset of atoms.

Return the total momentum $\mathbf{p} = \sum_i \mathbf{m_i} \mathbf{v_i}$. Optionally only include the contribution of a subset of atoms.

Return the total momentum $\mathbf{p} = \sum_i \mathbf{m_i} \mathbf{v_i}$. Optionally only include the contribution of a subset of atoms.

this -- intent(in),

type(DynamicalSystem) or type(Atoms)

indices -- integer, optional, intent(in), dimension(:)

mass -- real(dp), intent(in), dimension(:)

velo -- real(dp), intent(in), dimension(:,:)

Return value -- real(dp), dimension(3)
add_thermostat interface

gabor 2009-06-30