next up previous contents index
Next: Restraints and their derivatives Up: Equations used in the Previous: Equations used in the   Contents   Index

Subsections

Features and their derivatives

Distance

Distance is defined by points $i$ and $j$:

\begin{displaymath}
d = \sqrt{\vec{r}_{ij} \cdot \vec{r}_{ij}} = \vert\vec{r}_{ij}\vert = r_{ij}
\end{displaymath} (6.14)

where
\begin{displaymath}
\vec{r}_{ij} = \vec{r}_i - \vec{r}_j \; .
\end{displaymath} (6.15)

The first derivatives of $d$ with respect to Cartesian coordinates are:

$\displaystyle \frac{\partial d} {\partial \vec{r}_i}$ $\textstyle =$ $\displaystyle \frac{\vec{r}_{ij}}{\vert\vec{r}_{ij}\vert}$ (6.16)
$\displaystyle \frac{\partial d} {\partial \vec{r}_j}$ $\textstyle =$ $\displaystyle -\frac{\partial d} {\partial \vec{r}_i}$ (6.17)

Angle

Angle is defined by points $i$, $j$, and $k$, and spanned by vectors $ij$ and $kj$:

\begin{displaymath}
\alpha = \arccos \frac{\vec{r}_{ij} \cdot \vec{r}_{kj}}
{\vert\vec{r}_{ij}\vert \vert\vec{r}_{kj}\vert} \; .
\end{displaymath} (6.18)

It lies in the interval from 0 to 180${}^{o}$. Internal MODELLER units are radians.

The first derivatives of $\alpha$ with respect to Cartesian coordinates are:

$\displaystyle \frac{\partial \alpha}{\partial \vec{r}_i}$ $\textstyle =$ $\displaystyle \frac{\partial \alpha}{\partial \cos \alpha} \;
\frac{\partial \c...
...( \frac{\vec{r}_{ij}}{r_{ij}} \cos \alpha -
\frac{\vec{r}_{kj}}{r_{kj}} \right)$ (6.19)
$\displaystyle \frac{\partial \alpha}{\partial \vec{r}_k}$ $\textstyle =$ $\displaystyle \frac{\partial \alpha}{\partial \cos \alpha} \;
\frac{\partial \c...
...( \frac{\vec{r}_{kj}}{r_{kj}} \cos \alpha -
\frac{\vec{r}_{ij}}{r_{ij}} \right)$ (6.20)
$\displaystyle \frac{\partial \alpha} {\partial \vec{r}_j}$ $\textstyle =$ $\displaystyle -\frac{\partial d} {\partial \vec{r}_i}
-\frac{\partial d} {\partial \vec{r}_k}$ (6.21)

These equations for the derivatives have a numerical instability when the angle goes to 0 or to 180${}^{o}$. Presently, the problem is `solved' by testing for the size of the angle; if it is too small, the derivatives are set to 0 in the hope that other restraints will eventually pull the angle towards well behaved regions. Thus, angle restraints of 0 or 180${}^{o}$ should not be used in the conjugate gradients or molecular dynamics optimizations.

Dihedral angle

Dihedral angle is defined by points $i$, $j$, $k$, and $l$ ($ijkl$):

\begin{displaymath}
\chi = \mbox{sign}(\chi) \arccos\frac{
(\vec{r}_{ij} \time...
...\vec{r}_{kj}\vert
\vert\vec{r}_{kj} \times \vec{r}_{kl}\vert}
\end{displaymath} (6.22)

where
\begin{displaymath}
\mbox{sign}(\chi) = \mbox{sign}[\vec{r}_{kj} \cdot
(\vec{...
...\vec{r}_{kj}) \times
(\vec{r}_{kj} \times \vec{r}_{kl})] \; .
\end{displaymath} (6.23)

The first derivatives of $\chi$ with respect to Cartesian coordinates are:

\begin{displaymath}
\frac{ \; {d}\chi} { \; {d}\vec{r}} =
\frac{ \; {d}\chi}{ \; {d}\cos \chi} \frac{ \; {d}\cos \chi}{ \; {d}\vec{r}}
\end{displaymath} (6.24)

where
\begin{displaymath}
\frac{ \; {d}\chi}{ \; {d}\cos \chi} = \left(\frac{ \; {d}\cos \chi}{ \; {d}\chi}\right)^{-1} =
-\frac{1}{\sin \chi}
\end{displaymath} (6.25)

and
$\displaystyle \frac{\partial \cos \chi}{\partial \vec{r}_i}$ $\textstyle =$ $\displaystyle \vec{r}_{kj} \times \vec{a}$ (6.26)
$\displaystyle \frac{\partial \cos \chi}{\partial \vec{r}_j}$ $\textstyle =$ $\displaystyle \vec{r}_{ik} \times \vec{a} -
\vec{r}_{kl} \times \vec{b}$ (6.27)
$\displaystyle \frac{\partial \cos \chi}{\partial \vec{r}_k}$ $\textstyle =$ $\displaystyle \vec{r}_{jl} \times \vec{b} -
\vec{r}_{ij} \times \vec{a}$ (6.28)
$\displaystyle \frac{\partial \cos \chi}{\partial \vec{r}_l}$ $\textstyle =$ $\displaystyle \vec{r}_{ij} \times \vec{b}$ (6.29)
$\displaystyle \vec{a}$ $\textstyle =$ $\displaystyle \frac{1}{\vert\vec{r}_{ij} \times \vec{r}_{kj}\vert} \;
\left(\fr...
...}_{ij} \times \vec{r}_{kj}}
{\vert\vec{r}_{ij} \times \vec{r}_{kj}\vert}\right)$ (6.30)
$\displaystyle \vec{b}$ $\textstyle =$ $\displaystyle \frac{1}{\vert\vec{r}_{kj} \times \vec{r}_{kl}\vert} \;
\left(\fr...
...} \times \vec{r}_{kl}}
{\vert\vec{r}_{kj} \times \vec{r}_{kl}\vert}\right) \; .$ (6.31)

These equations for the derivatives have a numerical instability when the angle goes to 0. Thus, the following set of equations is used instead [van Schaik et al., 1993]:


$\displaystyle \vec{r}_{mj}$ $\textstyle =$ $\displaystyle \vec{r}_{ij} \times \vec{r}_{kj}$ (6.32)
$\displaystyle \vec{r}_{nk}$ $\textstyle =$ $\displaystyle \vec{r}_{kj} \times \vec{r}_{kl}$ (6.33)
$\displaystyle \frac{\partial \chi}{\partial \vec{r}_i}$ $\textstyle =$ $\displaystyle \frac{r_{kj}}{r^2_{mj}} \vec{r}_{mj}$ (6.34)
$\displaystyle \frac{\partial \chi}{\partial \vec{r}_l}$ $\textstyle =$ $\displaystyle -\frac{r_{kj}}{r^2_{nk}} \vec{r}_{nk}$ (6.35)
$\displaystyle \frac{\partial \chi}{\partial \vec{r}_j}$ $\textstyle =$ $\displaystyle \left(\frac{\vec{r}_{ij} \cdot \vec{r}_{kj}}{r^2_{kj}} - 1 \right...
...{r}_{kl} \cdot \vec{r}_{kj}}{r^2_{kj}}
\frac{\partial \chi}{\partial \vec{r}_l}$ (6.36)
$\displaystyle \frac{\partial \chi}{\partial \vec{r}_k}$ $\textstyle =$ $\displaystyle \left(\frac{\vec{r}_{kl} \cdot \vec{r}_{kj}}{r^2_{kj}} - 1 \right...
...{r}_{ij} \cdot \vec{r}_{kj}}{r^2_{kj}}
\frac{\partial \chi}{\partial \vec{r}_i}$ (6.37)

The only possible instability in these equations is when the length of the central bond of the dihedral, $r_{kj}$, goes to 0. In such a case, which should not happen, the derivatives are set to 0. The expressions for an improper dihedral angle, as opposed to a dihedral or dihedral angle, are the same, except that indices $ijkl$ are permuted to $ikjl$. In both cases, covalent bonds $ij$, $jk$, and $kl$ are defining the angle.

Atomic solvent accessibility

xx


Atomic density

Atomic density for a given atom is simply calculated as the number of atoms within a distance energy_data.contact_shell of that atom. First derivatives are not calculated, and are always returned as 0.

Atomic coordinates

The absolute atomic coordinates $x_{i}$, $y_{i}$ and $z_{i}$ are available for every point $i$, primarily for use in anchoring points to planes, lines or points. Their first derivatives with respect to Cartesian coordinates are of course simply 0 or 1.


next up previous contents index
Next: Restraints and their derivatives Up: Equations used in the Previous: Equations used in the   Contents   Index
Ben Webb 2006-02-28