next up previous
Next: Rare Events: Path-Sampling Monte Up: Advanced Topics Previous: Advanced Topics


Case Study: Stillinger-Weber Silicon

No one should have the impression that people who do molecular simulation only care about the Lennard-Jones fluid. It has been and continues to be an important test-bed for theories of the liquid state and phase-equilibria. Nevertheless, molecular simulation has been performed on a wide variety of materials.

As a single example, consider silicon. Perhaps the earliest attempt to use molecular simulation to study a realistic atomic-scale model of silicon was due to Stillinger and Weber [16]. I ``cut my teeth'' on the Stillinger-Weber potential coding up my first real research code in graduate school. I now make a version of that code available to the students in this course, available at mdswsi.c. This code computes in reduced units as well; $\sigma $ = 0.20951 nm, $\epsilon $ = 2.1678 eV, and $m$ = 28.085 amu, which are appropriate for a system of pure silicon. One reduced unit of temperature, $T [=]
\epsilon/k_B$, corresponds to 25156.73798 K.

The main reason to introduce Stillinger-Weber silicon here is to give you an example of a three-body potential. Silicon forms 4-coordinated tetrahedral bonded structures. The object of the three-body component of the potential is to enforce the tetrahedral bond angle (109.47$^\circ$) among triplets of bonded atoms.

The total potential is expressed as two sums, one for unique pair interactions, and another for unique triplet interactions:


\begin{displaymath}
\mathscr{U} = \sum_{i<j}v_2(r_{ij}) + \sum_{i<j<k}v_3({\bf r}_i,
{\bf r}_j, {\bf r}_k)
\end{displaymath} (220)

The two-body models the bonds:

\begin{displaymath}
v_2 \left(r\right) = \left\{\begin{array}{ll}
\epsilon A \l...
...t], & \mbox{$r < a$}\\
0 & \mbox{$r\ge a$}
\end{array}\right.
\end{displaymath} (221)

It is very much like a Lennard-Jones potential, only with different exponents and a ``smooth cutoff'' as the interatom separation distance, $r$, approaches some cutoff, $a$, given by the factor $\exp\left[\left(r-a\right)^{-1}\right]$.

The three body models the angles, and is the sum of functions of each of the three angles of a triplet, $ijk$:


\begin{displaymath}
v_3\left({\bf r}_i, {\bf r}_j, {\bf r}_k\right) = h_{jik} + h_{ijk} + h_{ikj}
\end{displaymath} (222)

Here I have employed the shorthand notation $\displaystyle h_{jik}
\equiv h\left(r_{ij}, r_{ik}, \theta_{jik}\right)$. Note that, in the notation of this potential, $\theta_{jik}$ is subtended at ${\bf
r}_i$, and $\cos\theta_{jik}^c = -\frac{1}{3}$:


\begin{displaymath}
h\left(r_{ij},r_{ik},\theta_{jik}\right)
\equiv \cases{
\ep...
...^2 &
\mbox{if $r_{ij} < a$, and} \cr
0 & \mbox{otherwise}
}
\end{displaymath} (223)

One computes the angle-$j$ term, $h_{ijk}$, and the angle-$k$ term, $h_{ikj}$, by permuting the indices appropriately.

The parameters used in the original study by Stillinger and Weber are:

$\displaystyle A$ $\textstyle =$ $\displaystyle 7.049556277$ (224)
$\displaystyle B$ $\textstyle =$ $\displaystyle 0.6022245584$ (225)
$\displaystyle p$ $\textstyle =$ $\displaystyle 4$ (226)
$\displaystyle q$ $\textstyle =$ $\displaystyle 0$ (227)
$\displaystyle a$ $\textstyle =$ $\displaystyle 1.80$ (228)
$\displaystyle \lambda$ $\textstyle =$ $\displaystyle 21.0$ (229)
$\displaystyle \gamma$ $\textstyle =$ $\displaystyle 1.20$ (230)

As in any MD simulation, one computes the force on any particle $i$ from the negative gradient of the total potential:

$\displaystyle {\bf f}_i$ $\textstyle =$ $\displaystyle -\nabla_{{\bf r}_i}\mathscr{U}$ (231)
  $\textstyle =$ $\displaystyle -\sum_{j\ne i} \nabla_{{\bf r}_i}v_2\left(r_{ij}\right) -
\sum_{...
...\sum_{k\ne i,j} \nabla_{{\bf r}_i}v_3\left({\bf r}_i,{\bf r}_j,{\bf r}_k\right)$ (232)

The two-body term for the $i$-$j$ interaction is only slightly more complicated than Lennard-Jones, due to the smooth cutoff. Here, assuming $i$ and $j$ are within interaction range ($r_{ij} < a$), we have for the force on $i$ due to $j$:

$\displaystyle -\nabla_{{\bf r}_i} v_2\left(r_{ij}\right)$ $\textstyle =$ $\displaystyle -\frac{\partial }{\partial{\bf r}_i} \left\{\epsilon A \left(Br_{ij}^{-p}-r_{ij}^{-q}\right)\exp\left[\left(r_{ij}-a\right)^{-1}\right]\right\}$ (233)
  $\textstyle =$ $\displaystyle -\epsilon A \frac{{\bf r}_{ij}}{r_{ij}}\left(\left.\left[\frac{\p...
...)\right]\right\vert _{r_{ij}}\exp\left[\left(r_{ij}-a\right)^{-1}\right]\right.$ (234)
  $\textstyle +$ $\displaystyle \left.\left(Br_{ij}^{-p}-r_{ij}^{-q}\right)\left.\left\{\frac{\pa...
...al r}\exp\left[\left(r-a\right)^{-1}\right]\right\}\right\vert _{r_{ij}}\right)$ (235)
  $\textstyle =$ $\displaystyle -\epsilon A \frac{{\bf r}_{ij}}{r_{ij}}\left\{\left(-pBr_{ij}^{-p-1}+qr_{ij}^{-q-1}\right)\exp\left[\left(r_{ij}-a\right)^{-1}\right]\right.$ (236)
  $\textstyle -$ $\displaystyle \left.\left(Br_{ij}^{-p}-r_{ij}^{-q}\right)\exp\left[\left(r_{ij}-a\right)^{-1}\right]\left(r_{ij}-a\right)^{-2}\right\}$ (237)
  $\textstyle =$ $\displaystyle v_2\frac{{\bf r}_{ij}}{r_{ij}}\left[\frac{pBr_{ij}^{-p-1}-qr_{ij}^{-q-1}}{Br_{ij}^{-p}-r_{ij}^{-q}} + \left(r_{ij}-a\right)^{-2}\right]$ (238)
  $\textstyle \equiv$ $\displaystyle {\bf f}_{ij}$ (239)

Note that it is still true that ${\bf f}_{ij} = -{\bf f}_{ji}$. Exercise: Show that the right-hand-side of Eq. 238 is well-behaved (that is, it does not diverge, and in fact vanishes) as $r_{ij}\rightarrow a^-$.

It is comparatively much more tedious to evaluate the three-body gradients.

$\displaystyle -\nabla_{{\bf r}_i}v_3\left({\bf r}_i,{\bf r}_j,{\bf r}_k\right)$ $\textstyle =$ $\displaystyle -\nabla_{{\bf r}_i}\left(h_{jik} + h_{ijk} + h_{ikj}\right)$ (240)
  $\textstyle =$ $\displaystyle -\left(\frac{\partial h_{jik}}{\partial {\bf r}_i} +\frac{\partial h_{ijk}}{\partial {\bf r}_i} +\frac{\partial h_{ikj}}{\partial {\bf r}_i}\right)$ (241)
  $\textstyle \equiv$ $\displaystyle {\bf f}_{i\leftarrow jk}$ (242)

The triplet forces on the other members of the triplet, ${\bf f}_{j\leftarrow ik}$ and ${\bf f}_{k\leftarrow ij}$, are defined analogously.

Each of the partials in Eq. 241 is unique:

\begin{displaymath}
\begin{array}{lll}
\mbox{\raisebox{-0.5cm}{\includegraphics[...
...k}}\frac{1}{r_{ij}}\right)
\cos\theta_{jik}\right]
\end{array}\end{displaymath} (243)


\begin{displaymath}
\begin{array}{lll}
\mbox{\raisebox{-0.5cm}{\includegraphics[...
...}}{r_{ij}}\frac{1}{r_{ij}}
\cos\theta_{ijk}\right]
\end{array}\end{displaymath} (244)


\begin{displaymath}
\begin{array}{lll}
\mbox{\raisebox{-0.5cm}{\includegraphics[...
...}}{r_{ik}}\frac{1}{r_{ik}}
\cos\theta_{ikj}\right]
\end{array}\end{displaymath} (245)

Note that the right hand sides of each of Eqns. 243244, and 245 vanish when the appropriate $r$'s are greater than $a$'s, as in Eq. 212. Exercise: Show that ${\bf f}_{i\leftarrow jk} + {\bf f}_{j\leftarrow ik} + {\bf
f}_{k\leftarrow ij} = 0$.

We can investigate what happens when we willfully ignore the three-body terms. Let us initialize atoms on a diamond-cubic lattice (the minimal energy lattice of silicon); a snapshot appears below.
portrait
Snapshot of a 64-atom chuck of Si on a diamond-cubic lattice.
Let us now run two MD simulations for 10,000 time steps; one with and and the other without three body forces, at reduced initial temperature $T$ = 0.12 and reduced density $rho$ = 0.46 for a small system of 64 atoms. You can download small 64-atom system configuration here, already equilibrated at $T$=0.12 (pictured above). Note that you must compile the code mdswsi.c with the flag -DTHREEBODY to include three-body forces. You can create an executable version of mdswsi that ignores three-body forces by compiling without the flag -DTHREEBODY. For example:

% gcc -o mdswsi_no3 mdswsi.c -lm -lgsl
% gcc -o mdswsi mdswsi.c -DTHREEBODY -lm -lgsl
Note also that this code uses the Andersen thermostat by default, with a default value of $\nu$ = 0.1. This can be overridden (or turned off) by specifying a value of $\nu$ on the command line. For example,
% mdswsi -nu 0 -ns 10001 -icf init.xyz
turns off the thermostat, which is what I have done for this little demonstration.

Below we plot the instantaneous temperature vs. time-step (0.001 $\tau$) for the two runs. Notice that the system with the 3-body forces intact remains steady at $T \approx$ 0.12, while the system without 3-body forces simply ``melts,'' with $T$ approaching 20,000 K A quick look at a configuration (not shown) reveals that there is no longer any crystalline order; the system is now an amorphous blob of silicon atoms. The lesson of this little demonstration is that one must have three-body forces to stabilize a diamond-cubic lattice.

portrait
Instantaneous temperature $T$ vs time-step in MD simulations of silicon using the Stillinger-Weber potential with and without three-body forces. The system is 64 atoms at an initial temperature of 0.12.
As a suggested project, you can try one or more of several things with this code.

  1. The force routine involves a triplet loop, which is extremely costly. Were one to double the size of the system, the computational effort would increase by a factor of eight. Appendix F in F&S discusses algorithms to speed up force evaluation by taking advantage of finite interaction ranges. Can you make the triplet loop more efficient using these techniques? (My thesis code used a unique version of the Verlet List technique.)
  2. Use the code rdf.c to compute the radial distribution function of both crystalline and liquid silicon. Can you explain the differences between these two, and from the $g(r)$ for a simple LJ liquid?
  3. Can you compute the diffusivity of a Si atom in a liquid?


next up previous
Next: Rare Events: Path-Sampling Monte Up: Advanced Topics Previous: Advanced Topics
cfa22@drexel.edu