next up previous contents index
Next: Subroutine fix_atoms Up: Module dynamicalsystem_module Previous: Subroutine ds_amend_constraint   Contents   Index

Subroutine distance_relative_velocity


\begin{boxedminipage}{\textwidth}
\begin{verbatim}call distance_relative_velocity(at,i,j,dist, &
rel_velo)\end{verbatim}
\end{boxedminipage}

Return the distance between two atoms and the relative velocity between them projected along the bond direction. This is useful for time dependent constraints.

at -- type(Atoms), intent(in)

i, j -- integer, intent(in)

dist, rel_velo -- real(dp), intent(out)

fix_atoms subroutine

gabor 2009-06-30