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

Subroutine CUBIC_BOND


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

Constrain a bond length to the time dependent quantity

\begin{displaymath}
at^3 + bt^2 + ct + d
\end{displaymath}

where $t$ is clamped to the range $[t_{init},t_{final}]$

The constraint function is:

\begin{displaymath}
\begin{array}{l}
C = \vert\mathbf{r}_1 - \mathbf{r}_2\vert^2 - l^2 \\
l = at^3 + bt^2 + ct + d
\end{array}\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)

PLANE subroutine

gabor 2009-06-30