next up previous contents index
Next: Subroutine RELAX_BOND Up: Module constraints_module Previous: Subroutine rattle   Contents   Index

Subroutine BONDLENGTH


\begin{boxedminipage}{\textwidth}
\begin{verbatim}call BONDLENGTH(pos,velo,t,data, &
C,dC_dr,dC_dt)\end{verbatim}
\end{boxedminipage}

Constrain a bond length. data should contain the required bond length The minimum image convention is used.

The function used is $C = \vert\mathbf{r}_1 - \mathbf{r}_2\vert^2 - d^2$

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

t -- real(dp), intent(in)

C -- real(dp), intent(out)

dC_dr -- real(dp), dimension(size(pos)), intent(out)

dC_dt -- real(dp), intent(out)

RELAX_BOND subroutine

gabor 2009-06-30