2.4. Intermolecular Potentials#
in Fig. 2.12 most typical intermolecular potentials for a molecule are shown.

Fig. 2.12 Visualization of bonds, angles, and dihedrals in a molecule with four atoms.#
The overall energy is given by:
\( U = \sum_{\text{bonds}, {i,j} } U_b(r_{ij}) + \sum_{\text{angles}, {i,j,k}} U_\theta(\theta_{ijk}) + \sum_{\text{dihedrals}, {i,j,k,l} } U_\varphi(\varphi_{ijkl}) \)
To compute a conservative force in general: \( \vec{F}_i = -\nabla_i U \) where \(\nabla_i = \frac{\partial}{\partial r_i}\) is the gradient with respect to \(r_i\).
2.4.1. Bond Potentials#
As shown in Fig. 2.13, the bond length between particle \(i\) and \(j\) is given by
\( r_{ij} = \| \vec{r}_i - \vec{r}_j \| = \sqrt{(x_j-x_i)^2 + (y_j-y_i)^2 + (z_j-z_i)^2}\).
The bond vector is \( \vec r_{ij} = \vec{r}_i - \vec{r}_j \).

Fig. 2.13 Definition of bond distance.#
To obtain the force on a bond we need to compute
For this, we need \(\nabla_i r_{ij}\), which is
which is the unit vector pointing in the direction of the bond!
The force then is
By symmetry we should have \(\nabla_j r_{ij}=-\nabla_i r_{ji}\), meaning that
This shows that for a bond, \(F_i = -F_j\), which illustrates that action has a equal and opposite reaction.
Tip
Once can use the action reaction principle to save on computations by only computing either \(F_i\) OR \(F_j\) and then applying the equal action-reaction principle to save on calculations.
2.4.1.1. Harmonic#
\( U(r) = \frac{1}{2}k(r - r_0)^2 \)
This fixes the bond length to fluctuate around an average of \(r_0\).
Watch for factor of 2!
Typically \( k \sim 10^3 \epsilon/l^2\) for “stiff” bond
Example: Harmonic bond force
\( U_b = \frac{1}{2}k(r - r_0)^2 \), so
\( F_b = \frac{\partial U_b}{\delta r_{ij}} = -k (r_{ij}-r_0)\), leading to
If \(r_{ij}>r_0\), the bond is streched past \(r_0\) and particle \(i\) moves toward \(j\), and \(j\) toward \(i\). If \(r_{ij}<r_0\), the bond is compressed below the set point \(r_0\) and particle \(i\) moves away from \(j\), and \(j\) away from \(i\).
2.4.1.2. FENE (Finite Extensible Nonlinear Elastic)#
\( U(r) = -\frac{1}{2}k r_0^2 \ln\left(1 - \left(\frac{r}{r_0}\right)^2\right) \)
Diverges at \(r_0\), minimum at 0. This is usually used in conjuction with a repulsive, short-ranged force (WCA = cut LJ at minimum and shift up to get a purely repulsive potential).
Typical parameters:
k = 30, r_0 = 1.5
2.4.2. Angle Potentials#
The angle between three particles \(i\), \(j\), and \(k\) is given by:
\( \cos \theta_{ijk} = \frac{(\vec{r}_{ji} \cdot \vec{r}_{jk})}{|\vec{r}_{ji}||\vec{r}_{jk}|} = - \frac{(\vec{r}_{ij} \cdot \vec{r}_{jk})}{|\vec{r}_{ij}||\vec{r}_{jk}|}\).

Fig. 2.14 Definition of angle.#
Note the negative sign, i.e the two bond vectors point out from the middle particle \(j\).
Note
In polymers, angle θ is sometimes defined as the outer angle. This is less common in atomistic models, but be careful!

Fig. 2.15 Alternative definition of angle as the outer angle.#
These two definitions can be easily converted into each other \(\theta_{ijk} = \pi - \theta'_{ijk}\).
To compute the angle potential between three particles, we need to
Getting \(\cos^{-1}\) is computationally expensive, which would be needed above. Once can try to avoid that by using the chain rule:
For this, we then need \( \nabla_i \cos\theta_{ijk}\). Eq.7 of J. Chem. Phys. 146, 226101 (2017) offers a compact form.
Warning
\(F_i\) is singlular if \(\theta_{ijk}=0^\circ\) or \(180^\circ\) if \(F_\theta\) is not zero at these points!
2.4.2.1. Harmonic#
\(U_\theta(\theta) = \frac{k}{2} (\theta - \theta_O)^2\)
Fixes average angle around set point of \(\theta_0\). Like with the harmonic bond potential, whatch for the factor of two in the spring constant.
2.4.2.2. Cosine#
\(U_\theta(\theta) = k (1 + \cos{theta})\)
Minimum is when the particles are in colinear \(\theta =180^\circ\) arrangement.
2.4.2.3. Cosine squared#
\(U_\theta(\theta) = \frac{k}{2} (\cos\theta - \cos\theta_O)^2\)
Note
For specific models and force fields, always check if the angles are given in degree or radians.
2.4.3. Dihedral Potentials#
Torsional or dihedral angles are defined as shown in Fig. 2.16. One needs to define two planes created by three of the four points each.

Fig. 2.16 Definition of dihedral or torsional angle.#
Angle between two plane (A,B) normals:
\( \vec{n}_A = \vec{r}_{ij} \times \vec{r}_{jk} \)
\( \vec{n}_B = \vec{r}_{jk} \times \vec{r}_{kl} \)
Then the angle is
\(\varphi_{ijkl} = \frac{\vec n_A \cdot \vec n_B}{|n_A||n_B|}\)
SImilar to the angle, alternative definitions exist, \(\psi = \pi -\varphi\).
To compute dihedral forces on four particles, we need to compute
This results in some involved computations, see Allen & Tildesley for a step by step derivation in Appendix C.
Warning
The same singularities show up at \(\phi_{ijkl}=0^\circ\) and \(180^\circ\) but one can eliminate them (details in J. Comput. Chem., 17: 1132-1141, 1996).
However, \(\phi\) becomes also degenerate if \(\theta_{ijk}\) or \(\theta_{jkl}\) approaches \(0^\circ\) or \(180^\circ\) because the two planes to define the dihedral cannot be defined in these cases. This is important for models with “soft” interactions, where these configurations are possible, e.g. coarse-grained models.
2.4.3.1. Periodic#
\( V_\phi(\phi_{ijkl}) = k_{\phi}(1 + \cos(n \phi - \phi_s)) \)
Used in the CHARMM force field
2.4.3.2. Ryckaert-Bellemans#
\(V_{\phi}(\phi_{ijkl}) = \sum_{n=0}^5 C_n( \cos(\psi ))^n,\) where \(\psi = \phi -180^\circ\).
2.4.3.3. Fourier#
\(V_{F} (\phi_{ijkl})= \frac{1}{2} \sum_{n=1}^4 C_n (1-(-1)^n\cos(n\phi))\)
Used in the OPLS force field. This can be transformed into the Ryckaert-Bellemans form using trigonometric indentities.
2.4.4. Improper Dihedrals#
In addition to the dihedrals defined between four bounded particles in a row, there are also so called improper dihedrals, that can be applied to keep planar groups planar, or prevent flipping into mirror images. These are commonly applied between four points in configurations as sketched in Fig. 2.17.

Fig. 2.17 Configuration to which an improper dihedral can be applied to.#
2.4.5. Resources#
Allen & Tildesley, “Simulations of liquids” Appendix C.2 - Calculation of forces and torques