next up previous contents index
Next: Subroutine CUBIC_BOND Up: Module constraints_module Previous: Subroutine BONDLENGTH   Contents   Index

Subroutine RELAX_BOND


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

Exponentially decay a bond length towards a final value.

Constraint function is $C = \vert\mathbf{r}_1 - \mathbf{r}_2\vert^2 - d^2$, where

\begin{displaymath}
d = d_{final} + (d_{init} - d_{final})\exp\left(-\frac{t-t_{init}}{t_{relax}}\right)
\end{displaymath}

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)

CUBIC_BOND subroutine

gabor 2009-06-30