Fig. 12 Schematic representation of the angle potential (left panel) and the shape of the potential function as a function of angle \(\theta\) (right panel). The minimum of the harmonic potential corresponds to the angle \(\theta_0\).
Introducing a triplet of atoms \((i,j,k)\), forming a particular angle Fig. 12 and a set of angles in a system, \(A\), the angle potential can be written as:
Since, from the atomic coordinates, it is easier to compute \(\cos\theta_{ijk}\) and \(\sin\theta_{ijk}\), let us switch to a \(\cos\) and \(\sin\) representation as follows:
Let us denote vectors that connect particles \(i\), \(j\) and \(k\) in a triplet as \(\mathbf{r}_{ji}=\mathbf{r}_{i}-\mathbf{r}_{j}\) and \(\mathbf{r}_{jk}=\mathbf{r}_{k}-\mathbf{r}_{j}\); and the respective distances as \(r_{ji}=|\mathbf{r}_{ji}|\) and \(r_{jk}=|\mathbf{r}_{jk}|\) Then
Here, \(\mathbf{r}_{ji}\cdot\mathbf{r}_{jk}\) is a dot product of vectors \(\mathbf{r}_{ji}\) and \(\mathbf{r}_{jk}\). It is clear, that \(\nabla_{l}\cos\theta_{ijk}\) will vanish if \(l\) does not belong to the triplet \((i,j,k)\). Considering all three cases (\(l=i\), \(l=j\) and \(l=k\)) separately and using Eq. Equation 16 we obtain:
Summirizing Eqs. Equation 13, Equation 15 and Equation 17 to Equation 19 we see that, one can compute three components of force \(\mathbf{f}_{i}\), \(\mathbf{f}_{j}\) and \(\mathbf{f}_{k}\), acting on each atom in the triplet \((i,j,k)\) due to the angle potential between atoms \(i\), \(j\) and \(k\) using the following relations:
Hence, the forces acting on three atoms connected by the angle potential are related. Consequently it is more efficient to use the modification of the potential pair based parallelization approach.