<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://chemwiki.ch.ic.ac.uk/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kcl14</id>
	<title>ChemWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://chemwiki.ch.ic.ac.uk/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kcl14"/>
	<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/wiki/Special:Contributions/Kcl14"/>
	<updated>2026-04-05T21:18:49Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602359</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602359"/>
		<updated>2017-03-14T13:55:38Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Velocity Autocorrelation Function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated and there are 4 lattice points per unit cell, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 which converged to the same values for 0.001. Above 0.0025, the constant averages obtained were higher than that obtained for a timestep of 0.001.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the sampling of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is sampled so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. The lattice spacing should correspond to the distance to the second nearest neighbours (blue points) which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
[[File:Solid int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase]]&lt;br /&gt;
&lt;br /&gt;
With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. Furthermore, since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively which corresponds to the graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase as shown below. It is to note that the integrals correspond to the number of atoms. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |r&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Running Integral&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Coordination Number&lt;br /&gt;
|-&lt;br /&gt;
|1.25&lt;br /&gt;
|12.0156&lt;br /&gt;
|12&lt;br /&gt;
|-&lt;br /&gt;
|1.55&lt;br /&gt;
|17.9772&lt;br /&gt;
|6&lt;br /&gt;
|-&lt;br /&gt;
|1.85&lt;br /&gt;
|41.6666&lt;br /&gt;
|24&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The Lennard Jones simulations&amp;lt;ref&amp;gt;J. Hansen and L. Verlet, Phase Transitions of the Lennard-Jones System, &#039;&#039;Phys. Rev.&#039;&#039;, &#039;&#039;&#039;1969&#039;&#039;&#039;, &#039;&#039;184&#039;&#039;, 151.&amp;lt;/ref&amp;gt; for a vapour, liquid&amp;lt;ref&amp;gt;D. Chandler, Equilibrium Structure and Molecular Motion in Liquids, &#039;&#039;Acc. Chem. Res.&#039;&#039;, &#039;&#039;&#039;1974&#039;&#039;&#039;, &#039;&#039;7&#039;&#039;, 246.&amp;lt;/ref&amp;gt;, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&lt;br /&gt;
The normalised velocity autocorrelation function for a 1D harmonic oscillator&amp;lt;ref&amp;gt;D. Levesque and L. Verlet, Computer &amp;quot;Experiments&amp;quot; on Classical Fluids. III. Time-Dependent Self-Correlation Functions, &#039;&#039;Phys. Rev. A&#039;&#039;, &#039;&#039;&#039;1970&#039;&#039;&#039;, &#039;&#039;2&#039;&#039;, 2514.&amp;lt;/ref&amp;gt; is evaluated and shown below, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF solid liquid analytic.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle. The liquid and solid VACF both taper down due to the decorrelation of the velocity with time. However, it is to note that the solid phase decorrelates slower than the liquid phase. In the solid phase, the atoms vibrate about a fixed point and a perfect oscillation would be obtained in an ideal scenario. However, there are other perturbative forces which disrupt this oscillatory motion resulting in a damped harmonic motion leading to a gradual decay. On the contrary in the liquid phase, the atoms do not vibrate about a fixed point. However, there are diffusive forces which disrupt any oscillatory motion even more rapidly than the perturbative forces in the solid phase. Thus, it can be observed that a very damped oscillation occurs which quickly decays. This can be thought of as two atoms colliding with one another and then quickly diffusing away. &lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid as described above. This is due to the harmonic oscillator VACF not taking into account any disruptive forces that can destroy the oscillatory motion. As a result, perfect oscillation can be observed where the initial velocity correlates to every subsequent velocity. &lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. The VACF values at 5000 timesteps were used. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values for the solid are approximately zero which is expected since the atoms are vibrating about a fixed point. However, the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained for the vapour phase are significantly different for the small system and the larger system. This error is attributed to an inaccurate simulation due to the small number of atoms used in the smaller system. It is expected that the real value of &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; is closer to that of the value obtained from the 1 million atoms system for both the MSD and VACF simulation. The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases. This indicates that the actual &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values are higher than that of the simulated values.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602357</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602357"/>
		<updated>2017-03-14T13:48:21Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Velocity Autocorrelation Function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated and there are 4 lattice points per unit cell, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 which converged to the same values for 0.001. Above 0.0025, the constant averages obtained were higher than that obtained for a timestep of 0.001.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the sampling of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is sampled so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. The lattice spacing should correspond to the distance to the second nearest neighbours (blue points) which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
[[File:Solid int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase]]&lt;br /&gt;
&lt;br /&gt;
With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. Furthermore, since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively which corresponds to the graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase as shown below. It is to note that the integrals correspond to the number of atoms. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |r&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Running Integral&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Coordination Number&lt;br /&gt;
|-&lt;br /&gt;
|1.25&lt;br /&gt;
|12.0156&lt;br /&gt;
|12&lt;br /&gt;
|-&lt;br /&gt;
|1.55&lt;br /&gt;
|17.9772&lt;br /&gt;
|6&lt;br /&gt;
|-&lt;br /&gt;
|1.85&lt;br /&gt;
|41.6666&lt;br /&gt;
|24&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The Lennard Jones simulations&amp;lt;ref&amp;gt;J. Hansen and L. Verlet, Phase Transitions of the Lennard-Jones System, &#039;&#039;Phys. Rev.&#039;&#039;, &#039;&#039;&#039;1969&#039;&#039;&#039;, &#039;&#039;184&#039;&#039;, 151.&amp;lt;/ref&amp;gt; for a vapour, liquid&amp;lt;ref&amp;gt;D. Chandler, Equilibrium Structure and Molecular Motion in Liquids, &#039;&#039;Acc. Chem. Res.&#039;&#039;, &#039;&#039;&#039;1974&#039;&#039;&#039;, &#039;&#039;7&#039;&#039;, 246.&amp;lt;/ref&amp;gt;, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&lt;br /&gt;
The normalised velocity autocorrelation function for a 1D harmonic oscillator&amp;lt;ref&amp;gt;D. Levesque, L. Verlet, Computer &amp;quot;Experiments&amp;quot; on Classical Fluids. III. Time-Dependent Self-Correlation Functions, &#039;&#039;Phys. Rev. A&#039;&#039;, &#039;&#039;&#039;1970&#039;&#039;&#039;, &#039;&#039;2&#039;&#039;, 2514.&amp;lt;/ref&amp;gt; is evaluated and shown below, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF solid liquid analytic.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle. The liquid and solid VACF both taper down due to the decorrelation of the velocity with time. However, it is to note that the solid phase decorrelates slower than the liquid phase. In the solid phase, the atoms vibrate about a fixed point and a perfect oscillation would be obtained in an ideal scenario. However, there are other perturbative forces which disrupt this oscillatory motion resulting in a damped harmonic motion leading to a gradual decay. On the contrary in the liquid phase, the atoms do not vibrate about a fixed point. However, there are diffusive forces which disrupt any oscillatory motion even more rapidly than the perturbative forces in the solid phase. Thus, it can be observed that a very damped oscillation occurs which quickly decays. This can be thought of as two atoms colliding with one another and then quickly diffusing away. &lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid as described above. This is due to the harmonic oscillator VACF not taking into account any disruptive forces that can destroy the oscillatory motion. As a result, perfect oscillation can be observed where the initial velocity correlates to every subsequent velocity. &lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. The VACF values at 5000 timesteps were used. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values for the solid are approximately zero which is expected since the atoms are vibrating about a fixed point. However, the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained for the vapour phase are significantly different for the small system and the larger system. This error is attributed to an inaccurate simulation due to the small number of atoms used in the smaller system. It is expected that the real value of &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; is closer to that of the value obtained from the 1 million atoms system for both the MSD and VACF simulation. The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases. This indicates that the actual &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values are higher than that of the simulated values.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602356</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602356"/>
		<updated>2017-03-14T13:34:19Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Dynamical properties and the diffusion coefficient */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated and there are 4 lattice points per unit cell, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 which converged to the same values for 0.001. Above 0.0025, the constant averages obtained were higher than that obtained for a timestep of 0.001.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the sampling of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is sampled so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. The lattice spacing should correspond to the distance to the second nearest neighbours (blue points) which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
[[File:Solid int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase]]&lt;br /&gt;
&lt;br /&gt;
With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. Furthermore, since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively which corresponds to the graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase as shown below. It is to note that the integrals correspond to the number of atoms. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |r&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Running Integral&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Coordination Number&lt;br /&gt;
|-&lt;br /&gt;
|1.25&lt;br /&gt;
|12.0156&lt;br /&gt;
|12&lt;br /&gt;
|-&lt;br /&gt;
|1.55&lt;br /&gt;
|17.9772&lt;br /&gt;
|6&lt;br /&gt;
|-&lt;br /&gt;
|1.85&lt;br /&gt;
|41.6666&lt;br /&gt;
|24&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The Lennard Jones simulations&amp;lt;ref&amp;gt;J. Hansen and L. Verlet, Phase Transitions of the Lennard-Jones System, &#039;&#039;Phys. Rev.&#039;&#039;, &#039;&#039;&#039;1969&#039;&#039;&#039;, &#039;&#039;184&#039;&#039;, 151.&amp;lt;/ref&amp;gt; for a vapour, liquid&amp;lt;ref&amp;gt;D. Chandler, Equilibrium Structure and Molecular Motion in Liquids, &#039;&#039;Acc. Chem. Res.&#039;&#039;, &#039;&#039;&#039;1974&#039;&#039;&#039;, &#039;&#039;7&#039;&#039;, 246.&amp;lt;/ref&amp;gt;, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&lt;br /&gt;
The normalised velocity autocorrelation function for a 1D harmonic oscillator is evaluated and shown below, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF solid liquid analytic.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle. The liquid and solid VACF both taper down due to the decorrelation of the velocity with time. However, it is to note that the solid phase decorrelates slower than the liquid phase. In the solid phase, the atoms vibrate about a fixed point and a perfect oscillation would be obtained in an ideal scenario. However, there are other perturbative forces which disrupt this oscillatory motion resulting in a damped harmonic motion leading to a gradual decay. On the contrary in the liquid phase, the atoms do not vibrate about a fixed point. However, there are diffusive forces which disrupt any oscillatory motion even more rapidly than the perturbative forces in the solid phase. Thus, it can be observed that a very damped oscillation occurs which quickly decays. This can be thought of as two atoms colliding with one another and then quickly diffusing away. &lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid as described above. This is due to the harmonic oscillator VACF not taking into account any disruptive forces that can destroy the oscillatory motion. As a result, perfect oscillation can be observed where the initial velocity correlates to every subsequent velocity. &lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. The VACF values at 5000 timesteps were used. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values for the solid are approximately zero which is expected since the atoms are vibrating about a fixed point. However, the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained for the vapour phase are significantly different for the small system and the larger system. This error is attributed to an inaccurate simulation due to the small number of atoms used in the smaller system. It is expected that the real value of &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; is closer to that of the value obtained from the 1 million atoms system for both the MSD and VACF simulation. The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases. This indicates that the actual &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values are higher than that of the simulated values.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602354</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602354"/>
		<updated>2017-03-14T13:28:36Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Dynamical properties and the diffusion coefficient */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated and there are 4 lattice points per unit cell, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 which converged to the same values for 0.001. Above 0.0025, the constant averages obtained were higher than that obtained for a timestep of 0.001.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the sampling of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is sampled so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. The lattice spacing should correspond to the distance to the second nearest neighbours (blue points) which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
[[File:Solid int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase]]&lt;br /&gt;
&lt;br /&gt;
With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. Furthermore, since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively which corresponds to the graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase as shown below. It is to note that the integrals correspond to the number of atoms. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |r&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Running Integral&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Coordination Number&lt;br /&gt;
|-&lt;br /&gt;
|1.25&lt;br /&gt;
|12.0156&lt;br /&gt;
|12&lt;br /&gt;
|-&lt;br /&gt;
|1.55&lt;br /&gt;
|17.9772&lt;br /&gt;
|6&lt;br /&gt;
|-&lt;br /&gt;
|1.85&lt;br /&gt;
|41.6666&lt;br /&gt;
|24&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The Lennard Jones simulations&amp;lt;ref&amp;gt;J. Hansen and L. Verlet, Phase Transitions of the Lennard-Jones System, &#039;&#039;Phys. Rev.&#039;&#039;, &#039;&#039;&#039;1969&#039;&#039;&#039;, &#039;&#039;184&#039;&#039;, 151.{{DOI|10.1103/PhysRev.184.151}}&amp;lt;/ref&amp;gt; for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&lt;br /&gt;
The normalised velocity autocorrelation function for a 1D harmonic oscillator is evaluated and shown below, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF solid liquid analytic.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle. The liquid and solid VACF both taper down due to the decorrelation of the velocity with time. However, it is to note that the solid phase decorrelates slower than the liquid phase. In the solid phase, the atoms vibrate about a fixed point and a perfect oscillation would be obtained in an ideal scenario. However, there are other perturbative forces which disrupt this oscillatory motion resulting in a damped harmonic motion leading to a gradual decay. On the contrary in the liquid phase, the atoms do not vibrate about a fixed point. However, there are diffusive forces which disrupt any oscillatory motion even more rapidly than the perturbative forces in the solid phase. Thus, it can be observed that a very damped oscillation occurs which quickly decays. This can be thought of as two atoms colliding with one another and then quickly diffusing away. &lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid as described above. This is due to the harmonic oscillator VACF not taking into account any disruptive forces that can destroy the oscillatory motion. As a result, perfect oscillation can be observed where the initial velocity correlates to every subsequent velocity. &lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. The VACF values at 5000 timesteps were used. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values for the solid are approximately zero which is expected since the atoms are vibrating about a fixed point. However, the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained for the vapour phase are significantly different for the small system and the larger system. This error is attributed to an inaccurate simulation due to the small number of atoms used in the smaller system. It is expected that the real value of &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; is closer to that of the value obtained from the 1 million atoms system for both the MSD and VACF simulation. The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases. This indicates that the actual &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values are higher than that of the simulated values.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602349</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602349"/>
		<updated>2017-03-14T13:16:38Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Examining the Input Script */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated and there are 4 lattice points per unit cell, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 which converged to the same values for 0.001. Above 0.0025, the constant averages obtained were higher than that obtained for a timestep of 0.001.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the sampling of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is sampled so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. The lattice spacing should correspond to the distance to the second nearest neighbours (blue points) which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
[[File:Solid int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase]]&lt;br /&gt;
&lt;br /&gt;
With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. Furthermore, since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively which corresponds to the graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase as shown below. It is to note that the integrals correspond to the number of atoms. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |r&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Running Integral&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Coordination Number&lt;br /&gt;
|-&lt;br /&gt;
|1.25&lt;br /&gt;
|12.0156&lt;br /&gt;
|12&lt;br /&gt;
|-&lt;br /&gt;
|1.55&lt;br /&gt;
|17.9772&lt;br /&gt;
|6&lt;br /&gt;
|-&lt;br /&gt;
|1.85&lt;br /&gt;
|41.6666&lt;br /&gt;
|24&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The Lennard Jones simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&lt;br /&gt;
The normalised velocity autocorrelation function for a 1D harmonic oscillator is evaluated and shown below, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF solid liquid analytic.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle. The liquid and solid VACF both taper down due to the decorrelation of the velocity with time. However, it is to note that the solid phase decorrelates slower than the liquid phase. In the solid phase, the atoms vibrate about a fixed point and a perfect oscillation would be obtained in an ideal scenario. However, there are other perturbative forces which disrupt this oscillatory motion resulting in a damped harmonic motion leading to a gradual decay. On the contrary in the liquid phase, the atoms do not vibrate about a fixed point. However, there are diffusive forces which disrupt any oscillatory motion even more rapidly than the perturbative forces in the solid phase. Thus, it can be observed that a very damped oscillation occurs which quickly decays. This can be thought of as two atoms colliding with one another and then quickly diffusing away. &lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid as described above. This is due to the harmonic oscillator VACF not taking into account any disruptive forces that can destroy the oscillatory motion. As a result, perfect oscillation can be observed where the initial velocity correlates to every subsequent velocity. &lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. The VACF values at 5000 timesteps were used. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values for the solid are approximately zero which is expected since the atoms are vibrating about a fixed point. However, the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained for the vapour phase are significantly different for the small system and the larger system. This error is attributed to an inaccurate simulation due to the small number of atoms used in the smaller system. It is expected that the real value of &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; is closer to that of the value obtained from the 1 million atoms system for both the MSD and VACF simulation. The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases. This indicates that the actual &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values are higher than that of the simulated values.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602348</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602348"/>
		<updated>2017-03-14T13:15:38Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Examining the Input Script */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated and there are 4 lattice points per unit cell, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 which converged to the same values for 0.001. Above 0.0025, the constant averages obtained were higher than that obtained for a timestep of 0.001.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the sampling of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is sampled so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. The lattice spacing should correspond to the distance to the second nearest neighbours (blue points) which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
[[File:Solid int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase]]&lt;br /&gt;
&lt;br /&gt;
With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. Furthermore, since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively which corresponds to the graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase as shown below. It is to note that the integrals correspond to the number of atoms. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |r&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Running Integral&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Coordination Number&lt;br /&gt;
|-&lt;br /&gt;
|1.25&lt;br /&gt;
|12.0156&lt;br /&gt;
|12&lt;br /&gt;
|-&lt;br /&gt;
|1.55&lt;br /&gt;
|17.9772&lt;br /&gt;
|6&lt;br /&gt;
|-&lt;br /&gt;
|1.85&lt;br /&gt;
|41.6666&lt;br /&gt;
|24&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The Lennard Jones simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&lt;br /&gt;
The normalised velocity autocorrelation function for a 1D harmonic oscillator is evaluated and shown below, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF solid liquid analytic.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle. The liquid and solid VACF both taper down due to the decorrelation of the velocity with time. However, it is to note that the solid phase decorrelates slower than the liquid phase. In the solid phase, the atoms vibrate about a fixed point and a perfect oscillation would be obtained in an ideal scenario. However, there are other perturbative forces which disrupt this oscillatory motion resulting in a damped harmonic motion leading to a gradual decay. On the contrary in the liquid phase, the atoms do not vibrate about a fixed point. However, there are diffusive forces which disrupt any oscillatory motion even more rapidly than the perturbative forces in the solid phase. Thus, it can be observed that a very damped oscillation occurs which quickly decays. This can be thought of as two atoms colliding with one another and then quickly diffusing away. &lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid as described above. This is due to the harmonic oscillator VACF not taking into account any disruptive forces that can destroy the oscillatory motion. As a result, perfect oscillation can be observed where the initial velocity correlates to every subsequent velocity. &lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. The VACF values at 5000 timesteps were used. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values for the solid are approximately zero which is expected since the atoms are vibrating about a fixed point. However, the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained for the vapour phase are significantly different for the small system and the larger system. This error is attributed to an inaccurate simulation due to the small number of atoms used in the smaller system. It is expected that the real value of &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; is closer to that of the value obtained from the 1 million atoms system for both the MSD and VACF simulation. The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases. This indicates that the actual &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values are higher than that of the simulated values.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602345</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602345"/>
		<updated>2017-03-14T13:12:45Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Equilibration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated and there are 4 lattice points per unit cell, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 which converged to the same values for 0.001. Above 0.0025, the constant averages obtained were higher than that obtained for a timestep of 0.001.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. The lattice spacing should correspond to the distance to the second nearest neighbours (blue points) which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
[[File:Solid int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase]]&lt;br /&gt;
&lt;br /&gt;
With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. Furthermore, since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively which corresponds to the graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase as shown below. It is to note that the integrals correspond to the number of atoms. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |r&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Running Integral&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Coordination Number&lt;br /&gt;
|-&lt;br /&gt;
|1.25&lt;br /&gt;
|12.0156&lt;br /&gt;
|12&lt;br /&gt;
|-&lt;br /&gt;
|1.55&lt;br /&gt;
|17.9772&lt;br /&gt;
|6&lt;br /&gt;
|-&lt;br /&gt;
|1.85&lt;br /&gt;
|41.6666&lt;br /&gt;
|24&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The Lennard Jones simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&lt;br /&gt;
The normalised velocity autocorrelation function for a 1D harmonic oscillator is evaluated and shown below, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF solid liquid analytic.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle. The liquid and solid VACF both taper down due to the decorrelation of the velocity with time. However, it is to note that the solid phase decorrelates slower than the liquid phase. In the solid phase, the atoms vibrate about a fixed point and a perfect oscillation would be obtained in an ideal scenario. However, there are other perturbative forces which disrupt this oscillatory motion resulting in a damped harmonic motion leading to a gradual decay. On the contrary in the liquid phase, the atoms do not vibrate about a fixed point. However, there are diffusive forces which disrupt any oscillatory motion even more rapidly than the perturbative forces in the solid phase. Thus, it can be observed that a very damped oscillation occurs which quickly decays. This can be thought of as two atoms colliding with one another and then quickly diffusing away. &lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid as described above. This is due to the harmonic oscillator VACF not taking into account any disruptive forces that can destroy the oscillatory motion. As a result, perfect oscillation can be observed where the initial velocity correlates to every subsequent velocity. &lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. The VACF values at 5000 timesteps were used. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values for the solid are approximately zero which is expected since the atoms are vibrating about a fixed point. However, the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained for the vapour phase are significantly different for the small system and the larger system. This error is attributed to an inaccurate simulation due to the small number of atoms used in the smaller system. It is expected that the real value of &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; is closer to that of the value obtained from the 1 million atoms system for both the MSD and VACF simulation. The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases. This indicates that the actual &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values are higher than that of the simulated values.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602344</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602344"/>
		<updated>2017-03-14T13:12:27Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Equilibration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated and there are 4 lattice points per unit cell, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001. Above 0.0025, the constant averages obtained were higher than that obtained for a timestep of 0.001.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. The lattice spacing should correspond to the distance to the second nearest neighbours (blue points) which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
[[File:Solid int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase]]&lt;br /&gt;
&lt;br /&gt;
With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. Furthermore, since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively which corresponds to the graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase as shown below. It is to note that the integrals correspond to the number of atoms. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |r&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Running Integral&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Coordination Number&lt;br /&gt;
|-&lt;br /&gt;
|1.25&lt;br /&gt;
|12.0156&lt;br /&gt;
|12&lt;br /&gt;
|-&lt;br /&gt;
|1.55&lt;br /&gt;
|17.9772&lt;br /&gt;
|6&lt;br /&gt;
|-&lt;br /&gt;
|1.85&lt;br /&gt;
|41.6666&lt;br /&gt;
|24&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The Lennard Jones simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&lt;br /&gt;
The normalised velocity autocorrelation function for a 1D harmonic oscillator is evaluated and shown below, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF solid liquid analytic.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle. The liquid and solid VACF both taper down due to the decorrelation of the velocity with time. However, it is to note that the solid phase decorrelates slower than the liquid phase. In the solid phase, the atoms vibrate about a fixed point and a perfect oscillation would be obtained in an ideal scenario. However, there are other perturbative forces which disrupt this oscillatory motion resulting in a damped harmonic motion leading to a gradual decay. On the contrary in the liquid phase, the atoms do not vibrate about a fixed point. However, there are diffusive forces which disrupt any oscillatory motion even more rapidly than the perturbative forces in the solid phase. Thus, it can be observed that a very damped oscillation occurs which quickly decays. This can be thought of as two atoms colliding with one another and then quickly diffusing away. &lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid as described above. This is due to the harmonic oscillator VACF not taking into account any disruptive forces that can destroy the oscillatory motion. As a result, perfect oscillation can be observed where the initial velocity correlates to every subsequent velocity. &lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. The VACF values at 5000 timesteps were used. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values for the solid are approximately zero which is expected since the atoms are vibrating about a fixed point. However, the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained for the vapour phase are significantly different for the small system and the larger system. This error is attributed to an inaccurate simulation due to the small number of atoms used in the smaller system. It is expected that the real value of &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; is closer to that of the value obtained from the 1 million atoms system for both the MSD and VACF simulation. The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases. This indicates that the actual &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values are higher than that of the simulated values.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602343</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602343"/>
		<updated>2017-03-14T13:11:10Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Simulation Box */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated and there are 4 lattice points per unit cell, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. The lattice spacing should correspond to the distance to the second nearest neighbours (blue points) which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
[[File:Solid int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase]]&lt;br /&gt;
&lt;br /&gt;
With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. Furthermore, since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively which corresponds to the graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase as shown below. It is to note that the integrals correspond to the number of atoms. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |r&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Running Integral&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Coordination Number&lt;br /&gt;
|-&lt;br /&gt;
|1.25&lt;br /&gt;
|12.0156&lt;br /&gt;
|12&lt;br /&gt;
|-&lt;br /&gt;
|1.55&lt;br /&gt;
|17.9772&lt;br /&gt;
|6&lt;br /&gt;
|-&lt;br /&gt;
|1.85&lt;br /&gt;
|41.6666&lt;br /&gt;
|24&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The Lennard Jones simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&lt;br /&gt;
The normalised velocity autocorrelation function for a 1D harmonic oscillator is evaluated and shown below, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF solid liquid analytic.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle. The liquid and solid VACF both taper down due to the decorrelation of the velocity with time. However, it is to note that the solid phase decorrelates slower than the liquid phase. In the solid phase, the atoms vibrate about a fixed point and a perfect oscillation would be obtained in an ideal scenario. However, there are other perturbative forces which disrupt this oscillatory motion resulting in a damped harmonic motion leading to a gradual decay. On the contrary in the liquid phase, the atoms do not vibrate about a fixed point. However, there are diffusive forces which disrupt any oscillatory motion even more rapidly than the perturbative forces in the solid phase. Thus, it can be observed that a very damped oscillation occurs which quickly decays. This can be thought of as two atoms colliding with one another and then quickly diffusing away. &lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid as described above. This is due to the harmonic oscillator VACF not taking into account any disruptive forces that can destroy the oscillatory motion. As a result, perfect oscillation can be observed where the initial velocity correlates to every subsequent velocity. &lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. The VACF values at 5000 timesteps were used. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values for the solid are approximately zero which is expected since the atoms are vibrating about a fixed point. However, the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained for the vapour phase are significantly different for the small system and the larger system. This error is attributed to an inaccurate simulation due to the small number of atoms used in the smaller system. It is expected that the real value of &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; is closer to that of the value obtained from the 1 million atoms system for both the MSD and VACF simulation. The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases. This indicates that the actual &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values are higher than that of the simulated values.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602342</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602342"/>
		<updated>2017-03-14T13:08:26Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Atomic Forces - Lennard Jones Potential */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. The lattice spacing should correspond to the distance to the second nearest neighbours (blue points) which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
[[File:Solid int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase]]&lt;br /&gt;
&lt;br /&gt;
With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. Furthermore, since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively which corresponds to the graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase as shown below. It is to note that the integrals correspond to the number of atoms. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |r&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Running Integral&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Coordination Number&lt;br /&gt;
|-&lt;br /&gt;
|1.25&lt;br /&gt;
|12.0156&lt;br /&gt;
|12&lt;br /&gt;
|-&lt;br /&gt;
|1.55&lt;br /&gt;
|17.9772&lt;br /&gt;
|6&lt;br /&gt;
|-&lt;br /&gt;
|1.85&lt;br /&gt;
|41.6666&lt;br /&gt;
|24&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The Lennard Jones simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&lt;br /&gt;
The normalised velocity autocorrelation function for a 1D harmonic oscillator is evaluated and shown below, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF solid liquid analytic.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle. The liquid and solid VACF both taper down due to the decorrelation of the velocity with time. However, it is to note that the solid phase decorrelates slower than the liquid phase. In the solid phase, the atoms vibrate about a fixed point and a perfect oscillation would be obtained in an ideal scenario. However, there are other perturbative forces which disrupt this oscillatory motion resulting in a damped harmonic motion leading to a gradual decay. On the contrary in the liquid phase, the atoms do not vibrate about a fixed point. However, there are diffusive forces which disrupt any oscillatory motion even more rapidly than the perturbative forces in the solid phase. Thus, it can be observed that a very damped oscillation occurs which quickly decays. This can be thought of as two atoms colliding with one another and then quickly diffusing away. &lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid as described above. This is due to the harmonic oscillator VACF not taking into account any disruptive forces that can destroy the oscillatory motion. As a result, perfect oscillation can be observed where the initial velocity correlates to every subsequent velocity. &lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. The VACF values at 5000 timesteps were used. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values for the solid are approximately zero which is expected since the atoms are vibrating about a fixed point. However, the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained for the vapour phase are significantly different for the small system and the larger system. This error is attributed to an inaccurate simulation due to the small number of atoms used in the smaller system. It is expected that the real value of &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; is closer to that of the value obtained from the 1 million atoms system for both the MSD and VACF simulation. The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases. This indicates that the actual &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values are higher than that of the simulated values.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602341</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602341"/>
		<updated>2017-03-14T12:59:56Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Structural properties and the radial distribution function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. The lattice spacing should correspond to the distance to the second nearest neighbours (blue points) which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
[[File:Solid int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase]]&lt;br /&gt;
&lt;br /&gt;
With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. Furthermore, since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively which corresponds to the graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase as shown below. It is to note that the integrals correspond to the number of atoms. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |r&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Running Integral&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Coordination Number&lt;br /&gt;
|-&lt;br /&gt;
|1.25&lt;br /&gt;
|12.0156&lt;br /&gt;
|12&lt;br /&gt;
|-&lt;br /&gt;
|1.55&lt;br /&gt;
|17.9772&lt;br /&gt;
|6&lt;br /&gt;
|-&lt;br /&gt;
|1.85&lt;br /&gt;
|41.6666&lt;br /&gt;
|24&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The Lennard Jones simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&lt;br /&gt;
The normalised velocity autocorrelation function for a 1D harmonic oscillator is evaluated and shown below, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF solid liquid analytic.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle. The liquid and solid VACF both taper down due to the decorrelation of the velocity with time. However, it is to note that the solid phase decorrelates slower than the liquid phase. In the solid phase, the atoms vibrate about a fixed point and a perfect oscillation would be obtained in an ideal scenario. However, there are other perturbative forces which disrupt this oscillatory motion resulting in a damped harmonic motion leading to a gradual decay. On the contrary in the liquid phase, the atoms do not vibrate about a fixed point. However, there are diffusive forces which disrupt any oscillatory motion even more rapidly than the perturbative forces in the solid phase. Thus, it can be observed that a very damped oscillation occurs which quickly decays. This can be thought of as two atoms colliding with one another and then quickly diffusing away. &lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid as described above. This is due to the harmonic oscillator VACF not taking into account any disruptive forces that can destroy the oscillatory motion. As a result, perfect oscillation can be observed where the initial velocity correlates to every subsequent velocity. &lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. The VACF values at 5000 timesteps were used. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values for the solid are approximately zero which is expected since the atoms are vibrating about a fixed point. However, the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained for the vapour phase are significantly different for the small system and the larger system. This error is attributed to an inaccurate simulation due to the small number of atoms used in the smaller system. It is expected that the real value of &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; is closer to that of the value obtained from the 1 million atoms system for both the MSD and VACF simulation. The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases. This indicates that the actual &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values are higher than that of the simulated values.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602340</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602340"/>
		<updated>2017-03-14T12:58:29Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Velocity Autocorrelation Function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. The lattice spacing should correspond to the distance to the second nearest neighbours (blue points) which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
[[File:Solid int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase]]&lt;br /&gt;
&lt;br /&gt;
With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively.Furthermore, since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively which corresponds to the graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |r&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Running Integral&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Coordination Number&lt;br /&gt;
|-&lt;br /&gt;
|1.25&lt;br /&gt;
|12.0156&lt;br /&gt;
|12&lt;br /&gt;
|-&lt;br /&gt;
|1.55&lt;br /&gt;
|17.9772&lt;br /&gt;
|6&lt;br /&gt;
|-&lt;br /&gt;
|1.85&lt;br /&gt;
|41.6666&lt;br /&gt;
|24&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The Lennard Jones simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&lt;br /&gt;
The normalised velocity autocorrelation function for a 1D harmonic oscillator is evaluated and shown below, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF solid liquid analytic.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle. The liquid and solid VACF both taper down due to the decorrelation of the velocity with time. However, it is to note that the solid phase decorrelates slower than the liquid phase. In the solid phase, the atoms vibrate about a fixed point and a perfect oscillation would be obtained in an ideal scenario. However, there are other perturbative forces which disrupt this oscillatory motion resulting in a damped harmonic motion leading to a gradual decay. On the contrary in the liquid phase, the atoms do not vibrate about a fixed point. However, there are diffusive forces which disrupt any oscillatory motion even more rapidly than the perturbative forces in the solid phase. Thus, it can be observed that a very damped oscillation occurs which quickly decays. This can be thought of as two atoms colliding with one another and then quickly diffusing away. &lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid as described above. This is due to the harmonic oscillator VACF not taking into account any disruptive forces that can destroy the oscillatory motion. As a result, perfect oscillation can be observed where the initial velocity correlates to every subsequent velocity. &lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. The VACF values at 5000 timesteps were used. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values for the solid are approximately zero which is expected since the atoms are vibrating about a fixed point. However, the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained for the vapour phase are significantly different for the small system and the larger system. This error is attributed to an inaccurate simulation due to the small number of atoms used in the smaller system. It is expected that the real value of &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; is closer to that of the value obtained from the 1 million atoms system for both the MSD and VACF simulation. The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases. This indicates that the actual &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values are higher than that of the simulated values.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602339</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602339"/>
		<updated>2017-03-14T12:57:37Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Velocity Autocorrelation Function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. The lattice spacing should correspond to the distance to the second nearest neighbours (blue points) which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
[[File:Solid int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase]]&lt;br /&gt;
&lt;br /&gt;
With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively.Furthermore, since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively which corresponds to the graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |r&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Running Integral&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Coordination Number&lt;br /&gt;
|-&lt;br /&gt;
|1.25&lt;br /&gt;
|12.0156&lt;br /&gt;
|12&lt;br /&gt;
|-&lt;br /&gt;
|1.55&lt;br /&gt;
|17.9772&lt;br /&gt;
|6&lt;br /&gt;
|-&lt;br /&gt;
|1.85&lt;br /&gt;
|41.6666&lt;br /&gt;
|24&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The Lennard Jones simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&lt;br /&gt;
The normalised velocity autocorrelation function for a 1D harmonic oscillator is evaluated and shown below, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF solid liquid analytic.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle. The liquid and solid VACF both taper down due to the decorrelation of the velocity with time. In the solid phase, the atoms vibrate about a fixed point and a perfect oscillation would be obtained in an ideal scenario. However, there are other perturbative forces which disrupt this oscillatory motion resulting in a damped harmonic motion leading to a gradual decay. On the contrary in the liquid phase, the atoms do not vibrate about a fixed point. However, there are diffusive forces which disrupt any oscillatory motion even more rapidly than the perturbative forces in the solid phase. Thus, it can be observed that a very damped oscillation occurs which quickly decays. This can be thought of as two atoms colliding with one another and then quickly diffusing away. &lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid as described above. This is due to the harmonic oscillator VACF not taking into account any disruptive forces that can destroy the oscillatory motion. As a result, perfect oscillation can be observed where the initial velocity correlates to every subsequent velocity. &lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. The VACF values at 5000 timesteps were used. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values for the solid are approximately zero which is expected since the atoms are vibrating about a fixed point. However, the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained for the vapour phase are significantly different for the small system and the larger system. This error is attributed to an inaccurate simulation due to the small number of atoms used in the smaller system. It is expected that the real value of &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; is closer to that of the value obtained from the 1 million atoms system for both the MSD and VACF simulation. The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases. This indicates that the actual &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values are higher than that of the simulated values.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602338</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602338"/>
		<updated>2017-03-14T12:56:41Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Velocity Autocorrelation Function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. The lattice spacing should correspond to the distance to the second nearest neighbours (blue points) which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
[[File:Solid int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase]]&lt;br /&gt;
&lt;br /&gt;
With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively.Furthermore, since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively which corresponds to the graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |r&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Running Integral&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Coordination Number&lt;br /&gt;
|-&lt;br /&gt;
|1.25&lt;br /&gt;
|12.0156&lt;br /&gt;
|12&lt;br /&gt;
|-&lt;br /&gt;
|1.55&lt;br /&gt;
|17.9772&lt;br /&gt;
|6&lt;br /&gt;
|-&lt;br /&gt;
|1.85&lt;br /&gt;
|41.6666&lt;br /&gt;
|24&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The Lennard Jones simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&lt;br /&gt;
The normalised velocity autocorrelation function for a 1D harmonic oscillator is shown below, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF solid liquid analytic.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle. The liquid and solid VACF both taper down due to the decorrelation of the velocity with time. In the solid phase, the atoms vibrate about a fixed point and a perfect oscillation would be obtained in an ideal scenario. However, there are other perturbative forces which disrupt this oscillatory motion resulting in a damped harmonic motion leading to a gradual decay. On the contrary in the liquid phase, the atoms do not vibrate about a fixed point. However, there are diffusive forces which disrupt any oscillatory motion even more rapidly than the perturbative forces in the solid phase. Thus, it can be observed that a very damped oscillation occurs which quickly decays. This can be thought of as two atoms colliding with one another and then quickly diffusing away. &lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid as described above. This is due to the harmonic oscillator VACF not taking into account any disruptive forces that can destroy the oscillatory motion. As a result, perfect oscillation can be observed where the initial velocity correlates to every subsequent velocity. &lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. The VACF values at 5000 timesteps were used. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values for the solid are approximately zero which is expected since the atoms are vibrating about a fixed point. However, the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained for the vapour phase are significantly different for the small system and the larger system. This error is attributed to an inaccurate simulation due to the small number of atoms used in the smaller system. It is expected that the real value of &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; is closer to that of the value obtained from the 1 million atoms system for both the MSD and VACF simulation. The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases. This indicates that the actual &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values are higher than that of the simulated values.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602337</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602337"/>
		<updated>2017-03-14T12:56:04Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Dynamical properties and the diffusion coefficient */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. The lattice spacing should correspond to the distance to the second nearest neighbours (blue points) which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
[[File:Solid int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase]]&lt;br /&gt;
&lt;br /&gt;
With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively.Furthermore, since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively which corresponds to the graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |r&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Running Integral&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Coordination Number&lt;br /&gt;
|-&lt;br /&gt;
|1.25&lt;br /&gt;
|12.0156&lt;br /&gt;
|12&lt;br /&gt;
|-&lt;br /&gt;
|1.55&lt;br /&gt;
|17.9772&lt;br /&gt;
|6&lt;br /&gt;
|-&lt;br /&gt;
|1.85&lt;br /&gt;
|41.6666&lt;br /&gt;
|24&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The Lennard Jones simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF solid liquid analytic.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle. The liquid and solid VACF both taper down due to the decorrelation of the velocity with time. In the solid phase, the atoms vibrate about a fixed point and a perfect oscillation would be obtained in an ideal scenario. However, there are other perturbative forces which disrupt this oscillatory motion resulting in a damped harmonic motion leading to a gradual decay. On the contrary in the liquid phase, the atoms do not vibrate about a fixed point. However, there are diffusive forces which disrupt any oscillatory motion even more rapidly than the perturbative forces in the solid phase. Thus, it can be observed that a very damped oscillation occurs which quickly decays. This can be thought of as two atoms colliding with one another and then quickly diffusing away. &lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid as described above. This is due to the harmonic oscillator VACF not taking into account any disruptive forces that can destroy the oscillatory motion. As a result, perfect oscillation can be observed where the initial velocity correlates to every subsequent velocity. &lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. The VACF values at 5000 timesteps were used. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values for the solid are approximately zero which is expected since the atoms are vibrating about a fixed point. However, the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained for the vapour phase are significantly different for the small system and the larger system. This error is attributed to an inaccurate simulation due to the small number of atoms used in the smaller system. It is expected that the real value of &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; is closer to that of the value obtained from the 1 million atoms system for both the MSD and VACF simulation. The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases. This indicates that the actual &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values are higher than that of the simulated values.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602336</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602336"/>
		<updated>2017-03-14T12:52:57Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Structural properties and the radial distribution function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. The lattice spacing should correspond to the distance to the second nearest neighbours (blue points) which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
[[File:Solid int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase]]&lt;br /&gt;
&lt;br /&gt;
With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively.Furthermore, since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively which corresponds to the graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt; for the solid phase as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |r&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Running Integral&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Coordination Number&lt;br /&gt;
|-&lt;br /&gt;
|1.25&lt;br /&gt;
|12.0156&lt;br /&gt;
|12&lt;br /&gt;
|-&lt;br /&gt;
|1.55&lt;br /&gt;
|17.9772&lt;br /&gt;
|6&lt;br /&gt;
|-&lt;br /&gt;
|1.85&lt;br /&gt;
|41.6666&lt;br /&gt;
|24&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF solid liquid analytic.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle. The liquid and solid VACF both taper down due to the decorrelation of the velocity with time. In the solid phase, the atoms vibrate about a fixed point and a perfect oscillation would be obtained in an ideal scenario. However, there are other perturbative forces which disrupt this oscillatory motion resulting in a damped harmonic motion leading to a gradual decay. On the contrary in the liquid phase, the atoms do not vibrate about a fixed point. However, there are diffusive forces which disrupt any oscillatory motion even more rapidly than the perturbative forces in the solid phase. Thus, it can be observed that a very damped oscillation occurs which quickly decays. This can be thought of as two atoms colliding with one another and then quickly diffusing away. &lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid as described above. This is due to the harmonic oscillator VACF not taking into account any disruptive forces that can destroy the oscillatory motion. As a result, perfect oscillation can be observed where the initial velocity correlates to every subsequent velocity. &lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. The VACF values at 5000 timesteps were used. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values for the solid are approximately zero which is expected since the atoms are vibrating about a fixed point. However, the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained for the vapour phase are significantly different for the small system and the larger system. This error is attributed to an inaccurate simulation due to the small number of atoms used in the smaller system. It is expected that the real value of &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; is closer to that of the value obtained from the 1 million atoms system for both the MSD and VACF simulation. The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases. This indicates that the actual &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values are higher than that of the simulated values.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Solid_int_g(r)_vs_r.PNG&amp;diff=602335</id>
		<title>File:Solid int g(r) vs r.PNG</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Solid_int_g(r)_vs_r.PNG&amp;diff=602335"/>
		<updated>2017-03-14T12:47:12Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602206</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602206"/>
		<updated>2017-03-13T17:46:18Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Velocity Autocorrelation Function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing should correspond to the distance to the second nearest neighbour which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF solid liquid analytic.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle. The liquid and solid VACF both taper down due to the decorrelation of the velocity with time. In the solid phase, the atoms vibrate about a fixed point and a perfect oscillation would be obtained in an ideal scenario. However, there are other perturbative forces which disrupt this oscillatory motion resulting in a damped harmonic motion leading to a gradual decay. On the contrary in the liquid phase, the atoms do not vibrate about a fixed point. However, there are diffusive forces which disrupt any oscillatory motion even more rapidly than the perturbative forces in the solid phase. Thus, it can be observed that a very damped oscillation occurs which quickly decays. This can be thought of as two atoms colliding with one another and then quickly diffusing away. &lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid as described above. This is due to the harmonic oscillator VACF not taking into account any disruptive forces that can destroy the oscillatory motion. As a result, perfect oscillation can be observed where the initial velocity correlates to every subsequent velocity. &lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. The VACF values at 5000 timesteps were used. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values for the solid are approximately zero which is expected since the atoms are vibrating about a fixed point. However, the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained for the vapour phase are significantly different for the small system and the larger system. This error is attributed to an inaccurate simulation due to the small number of atoms used in the smaller system. It is expected that the real value of &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; is closer to that of the value obtained from the 1 million atoms system for both the MSD and VACF simulation. The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases. This indicates that the actual &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values are higher than that of the simulated values.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602202</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602202"/>
		<updated>2017-03-13T17:45:06Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Velocity Autocorrelation Function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing should correspond to the distance to the second nearest neighbour which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF solid liquid analytic.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle. The liquid and solid VACF both taper down due to the decorrelation of the velocity with time. In the solid phase, the atoms vibrate about a fixed point and a perfect oscillation would be obtained in an ideal scenario. However, there are other perturbative forces which disrupt this oscillatory motion resulting in a damped harmonic motion leading to a gradual decay. On the contrary in the liquid phase, the atoms do not vibrate about a fixed point. However, there are diffusive forces which disrupt any oscillatory motion even more rapidly than the perturbative forces in the solid phase. Thus, it can be observed that a very damped oscillation occurs which quickly decays. This can be thought of as two atoms colliding with one another and then quickly diffusing away. &lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid as described above. This is due to the harmonic oscillator VACF not taking into account any disruptive forces that can destroy the oscillatory motion. As a result, perfect oscillation can be observed where the initial velocity correlates to every subsequent velocity. &lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. The VACF values at 5000 timesteps were used. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. However, the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained for the vapour phase are significantly different for the small system and the larger system. This error is attributed to an inaccurate simulation due to the small number of atoms used in the smaller system. It is expected that the real value of &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; is closer to that of the value obtained from the 1 million atoms system for both the MSD and VACF simulation. The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases. This indicates that the actual &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values are higher than that of the simulated values.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602188</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602188"/>
		<updated>2017-03-13T17:30:47Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Velocity Autocorrelation Function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing should correspond to the distance to the second nearest neighbour which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF solid liquid analytic.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle. The liquid and solid VACF both taper down due to the decorrelation of the velocity with time. In the solid phase, the atoms vibrate about a fixed point and a perfect oscillation would be obtained in an ideal scenario. However, there are other perturbative forces which disrupt this oscillatory motion resulting in a damped harmonic motion leading to a gradual decay. On the contrary in the liquid phase, the atoms do not vibrate about a fixed point. However, there are diffusive forces which disrupt any oscillatory motion even more rapidly than the perturbative forces in the solid phase. Thus, it can be observed that a very damped oscillation occurs which quickly decays. This can be thought of as two atoms colliding with one another and then quickly diffusing away. &lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid. This is possibly due to &lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. The VACF values at 5000 timesteps were used. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. However, the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained for the vapour phase are significantly different for the small system and the larger system. This error is attributed to an inaccurate simulation due to the small number of atoms used in the smaller system. It is expected that the real value of &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; is closer to that of the value obtained from the 1 million atoms system for both the MSD and VACF simulation. The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases. This indicates that the actual &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values are higher than that of the simulated values.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602186</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602186"/>
		<updated>2017-03-13T17:28:14Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Velocity Autocorrelation Function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing should correspond to the distance to the second nearest neighbour which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF solid liquid analytic.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle. The liquid and solid VACF both taper down due to the decorrelation of the velocity with time. This is because &lt;br /&gt;
&lt;br /&gt;
In the solid phase, the atoms vibrate about a fixed point and a perfect oscillation would be obtained in an ideal scenario. However, there are other perturbative forces which disrupt this oscillatory motion resulting in a damped harmonic motion leading to a gradual decay. On the contrary in the liquid phase, the atoms do not vibrate about a fixed point. However, there are diffusive forces which disrupt any oscillatory motion even more rapidly than the perturbative forces in the solid phase. Thus, it can be observed that a very damped oscillation occurs which quickly decays. This can be thought of as two atoms colliding with one another and then quickly diffusing away. &lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid. This is possibly due to &lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. The VACF values at 5000 timesteps were used. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. However, the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained for the vapour phase are significantly different for the small system and the larger system. This error is attributed to an inaccurate simulation due to the small number of atoms used in the smaller system. It is expected that the real value of &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; is closer to that of the value obtained from the 1 million atoms system for both the MSD and VACF simulation. The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases. This indicates that the actual &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values are higher than that of the simulated values.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602185</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602185"/>
		<updated>2017-03-13T17:27:48Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Velocity Autocorrelation Function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing should correspond to the distance to the second nearest neighbour which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF solid liquid analytic.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle. The liquid and solid VACF both taper down due to the decorrelation of the velocity with time. This is because &lt;br /&gt;
&lt;br /&gt;
In the solid phase, the atoms vibrate about a fixed point and a perfect oscillation would be obtained in an ideal scenario. However, there are other perturbative forces which disrupt this oscillatory motion resulting in a damped harmonic motion leading to a gradual decay. On the contrary in the liquid phase, the atoms do not vibrate about a fixed point. However, there are diffusive forces which disrupt any oscillatory motion even more rapidly. Thus, it can be observed that a very damped oscillation occurs which quickly decays. This can be thought of as two atoms colliding with one another and then quickly diffusing away. &lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid. This is possibly due to &lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. The VACF values at 5000 timesteps were used. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. However, the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained for the vapour phase are significantly different for the small system and the larger system. This error is attributed to an inaccurate simulation due to the small number of atoms used in the smaller system. It is expected that the real value of &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; is closer to that of the value obtained from the 1 million atoms system for both the MSD and VACF simulation. The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases. This indicates that the actual &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values are higher than that of the simulated values.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602174</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602174"/>
		<updated>2017-03-13T17:16:21Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Velocity Autocorrelation Function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing should correspond to the distance to the second nearest neighbour which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF solid liquid analytic.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle.&lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid. This is possibly due to &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. The VACF values at 5000 timesteps were used. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. However, the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained for the vapour phase are significantly different for the small system and the larger system. This error is attributed to an inaccurate simulation due to the small number of atoms used in the smaller system. It is expected that the real value of &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; is closer to that of the value obtained from the 1 million atoms system for both the MSD and VACF simulation. The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases. This indicates that the actual &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values are higher than that of the simulated values.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:VACF_solid_liquid_analytic.PNG&amp;diff=602173</id>
		<title>File:VACF solid liquid analytic.PNG</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:VACF_solid_liquid_analytic.PNG&amp;diff=602173"/>
		<updated>2017-03-13T17:15:58Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602165</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602165"/>
		<updated>2017-03-13T17:05:56Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Velocity Autocorrelation Function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing should correspond to the distance to the second nearest neighbour which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle.&lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid. This is possibly due to &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. The VACF values at 5000 timesteps were used. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. However, the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained for the vapour phase are significantly different for the small system and the larger system. This error is attributed to an inaccurate simulation due to the small number of atoms used in the smaller system. It is expected that the real value of &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; is closer to that of the value obtained from the 1 million atoms system for both the MSD and VACF simulation. The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases. This indicates that the actual &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values are higher than that of the simulated values.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602164</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602164"/>
		<updated>2017-03-13T17:05:33Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Dynamical properties and the diffusion coefficient */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing should correspond to the distance to the second nearest neighbour which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle.&lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid. This is possibly due to &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. The VACF values at 5000 timesteps were used. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. However, the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained for the vapour phase are significantly different for the small system and the larger system. This error is attributed to an inaccurate simulation due to the small number of atoms used in the smaller system. It is expected that the real value of &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; is closer to that of the value obtained from the 1 million atoms system for both the MSD and VACF simulation. &lt;br /&gt;
&lt;br /&gt;
The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases. This indicates that the actual &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values are higher than that of the simulated values.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602163</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602163"/>
		<updated>2017-03-13T17:04:38Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Velocity Autocorrelation Function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing should correspond to the distance to the second nearest neighbour which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle.&lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid. This is possibly due to &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. The VACF values at 5000 timesteps were used. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. However, the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained for the vapour phase are significantly different for the small system and the larger system. This error is attributed to an inaccurate simulation due to the small number of atoms used in the smaller system. It is expected that the real value of &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; is closer to that of the value obtained from the 1 million atoms system. &lt;br /&gt;
&lt;br /&gt;
The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases. This indicates that the actual &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values are higher than that of the simulated values.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602161</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602161"/>
		<updated>2017-03-13T17:02:54Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Velocity Autocorrelation Function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing should correspond to the distance to the second nearest neighbour which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle.&lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid. This is possibly due to &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. However, the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained for the vapour phase are significantly different for the small system and the larger system. This error is attributed to an inaccurate simulation due to the small number of atoms used in the smaller system. It is expected that the real value of &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; is closer to that of the value obtained from the 1 million atoms system. &lt;br /&gt;
&lt;br /&gt;
The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases. This indicates that the actual &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values are higher than that of the simulated values.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602160</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602160"/>
		<updated>2017-03-13T16:59:53Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Velocity Autocorrelation Function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing should correspond to the distance to the second nearest neighbour which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle.&lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid. This is possibly due to &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. &lt;br /&gt;
&lt;br /&gt;
The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases. This indicates that the actual &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values are higher than that of the simulated values.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602157</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602157"/>
		<updated>2017-03-13T16:58:50Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Velocity Autocorrelation Function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing should correspond to the distance to the second nearest neighbour which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle.&lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid. This is possibly due to &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system were calculated using the trapezium rule and are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. &lt;br /&gt;
&lt;br /&gt;
The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602156</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602156"/>
		<updated>2017-03-13T16:58:14Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Velocity Autocorrelation Function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing should correspond to the distance to the second nearest neighbour which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle.&lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid. This is possibly due to &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. It is to note that the &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values increase from the solid to the liquid to the vapour phase for both methods which is an expected result. &lt;br /&gt;
&lt;br /&gt;
The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602155</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602155"/>
		<updated>2017-03-13T16:56:44Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Velocity Autocorrelation Function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing should correspond to the distance to the second nearest neighbour which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The VACFs from the liquid and solid simulation as well as the analytic solution are plotted below. &lt;br /&gt;
&lt;br /&gt;
[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|VACFs for liquid and solid, and analytic solution]]&lt;br /&gt;
&lt;br /&gt;
The minimum of the VACFs represent a reversal in the velocity of the particle.&lt;br /&gt;
&lt;br /&gt;
It is noted that the harmonic oscillator VACF is very different to the Lennard Jones solid and liquid. This is possibly due to &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt; D &amp;lt;/math&amp;gt; values obtained through VACF are similar to that obtained through MSD. This is an expected result. &lt;br /&gt;
&lt;br /&gt;
The largest source of error is the length of time the simulations are run for. It is clear from the simulations above that the VACF values are still increasing for the liquid and vapour phases.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602146</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602146"/>
		<updated>2017-03-13T16:35:55Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Calculating heat capacities using statistical physics */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher density. At higher density, there is a greater number of atoms per unit volume which means that heat capacity should be higher since there are more energy levels that can be occupied to store energy in a given volume. As a result, &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased. However, since heat capacity is an extensive property, &amp;lt;math&amp;gt; 0.8\ \rho^* &amp;lt;/math&amp;gt; would suggest a four times increase in the &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; value compared to at &amp;lt;math&amp;gt; 0.2\ \rho^* &amp;lt;/math&amp;gt;. This is not the case in this simulation, possibly due to errors from the relatively small size of the simulated system.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing should correspond to the distance to the second nearest neighbour which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602140</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602140"/>
		<updated>2017-03-13T16:23:15Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Calculating heat capacities using statistical physics */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher pressure. At higher pressures, &amp;lt;math&amp;gt; V &amp;lt;/math&amp;gt; decreases which leads to higher &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; values.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing should correspond to the distance to the second nearest neighbour which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602139</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602139"/>
		<updated>2017-03-13T16:22:46Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Calculating heat capacities using statistical physics */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; against temperature]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher pressure. At higher pressures, &amp;lt;math&amp;gt; V &amp;lt;/math&amp;gt; decreases which leads to higher &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; values.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing should correspond to the distance to the second nearest neighbour which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602138</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602138"/>
		<updated>2017-03-13T16:19:11Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Heat Capacity Calculation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|ABCD]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat energy required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher pressure. At higher pressures, &amp;lt;math&amp;gt; V &amp;lt;/math&amp;gt; decreases which leads to higher &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; values.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing should correspond to the distance to the second nearest neighbour which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602137</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602137"/>
		<updated>2017-03-13T16:18:50Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Heat Capacity Calculation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|ABCD]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, it will be easier to access higher energy levels (vibrational) and thus less energy is required to access the higher energy levels. As a result, heat capacity decreases since heat capacity is the amount of heat required to raise the temperature of a system by one degree. &lt;br /&gt;
&lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher pressure. At higher pressures, &amp;lt;math&amp;gt; V &amp;lt;/math&amp;gt; decreases which leads to higher &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; values.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing should correspond to the distance to the second nearest neighbour which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602136</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602136"/>
		<updated>2017-03-13T16:14:35Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Heat Capacity Calculation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|ABCD]]&lt;br /&gt;
&lt;br /&gt;
The trends observed are as expected. Firstly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; decreased with increasing temperature. This is because at higher temperatures, there are less energy levels to occupy and thus heat capacity decreases. &lt;br /&gt;
Secondly, values of &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; increased with higher pressure. At higher pressures, &amp;lt;math&amp;gt; V &amp;lt;/math&amp;gt; decreases which leads to higher &amp;lt;math&amp;gt; \frac{C_{v}}{V} &amp;lt;/math&amp;gt; values.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing should correspond to the distance to the second nearest neighbour which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602133</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602133"/>
		<updated>2017-03-13T16:10:29Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Heat Capacity Calculation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|ABCD]]&lt;br /&gt;
&lt;br /&gt;
The trend is as expected.&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing should correspond to the distance to the second nearest neighbour which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602128</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602128"/>
		<updated>2017-03-13T16:04:51Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Structural properties and the radial distribution function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|ABCD]]&lt;br /&gt;
&lt;br /&gt;
Explain difference in green and blue...&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing should correspond to the distance to the second nearest neighbour which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602127</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602127"/>
		<updated>2017-03-13T16:04:40Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Structural properties and the radial distribution function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|ABCD]]&lt;br /&gt;
&lt;br /&gt;
Explain difference in green and blue...&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
The phases were simulated using the specified temperatures and densities as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing should correspond to the distance to the second nearest neighbour which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the solid simulation.&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602120</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602120"/>
		<updated>2017-03-13T15:51:10Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Structural properties and the radial distribution function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|ABCD]]&lt;br /&gt;
&lt;br /&gt;
Explain difference in green and blue...&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing should correspond to the distance to the second nearest neighbour which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt; for the simulated solid.&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602119</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602119"/>
		<updated>2017-03-13T15:50:45Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Structural properties and the radial distribution function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|ABCD]]&lt;br /&gt;
&lt;br /&gt;
Explain difference in green and blue...&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing should correspond to the distance to the second nearest neighbour which is 1.45 obtained from the second peak in the graph of &amp;lt;math&amp;gt; g(r)\ against\ r &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602118</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602118"/>
		<updated>2017-03-13T15:50:15Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Structural properties and the radial distribution function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|ABCD]]&lt;br /&gt;
&lt;br /&gt;
Explain difference in green and blue...&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing should correspond to the distance to the second nearest neighbour which is 1.45 obtained from the second peak in graph of &amp;lt;math&amp;gt; g(r) against r &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602117</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602117"/>
		<updated>2017-03-13T15:49:37Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Structural properties and the radial distribution function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|ABCD]]&lt;br /&gt;
&lt;br /&gt;
Explain difference in green and blue...&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing should correspond to the distance to the second nearest neighbour which is 1.45.&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602116</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602116"/>
		<updated>2017-03-13T15:42:43Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Structural properties and the radial distribution function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|ABCD]]&lt;br /&gt;
&lt;br /&gt;
Explain difference in green and blue...&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. And since coordination number is defined as the number of nearest neighbours, the corresponding coordination numbers for the 3 peaks are 12, 6 and 24 respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing is....&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602101</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602101"/>
		<updated>2017-03-13T15:24:46Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Velocity Autocorrelation Function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|ABCD]]&lt;br /&gt;
&lt;br /&gt;
Explain difference in green and blue...&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. The corresponding coordination numbers for the 3 peaks are X, Y and Z respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing is....&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin2\left(\omega t + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \left(1 - \cos2\left(\omega t + \phi\right)\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602097</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602097"/>
		<updated>2017-03-13T15:16:12Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Velocity Autocorrelation Function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|ABCD]]&lt;br /&gt;
&lt;br /&gt;
Explain difference in green and blue...&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. The corresponding coordination numbers for the 3 peaks are X, Y and Z respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing is....&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602096</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602096"/>
		<updated>2017-03-13T15:15:38Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Velocity Autocorrelation Function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|ABCD]]&lt;br /&gt;
&lt;br /&gt;
Explain difference in green and blue...&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. The corresponding coordination numbers for the 3 peaks are X, Y and Z respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing is....&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; As\ x \to \infty\ &amp;lt;/math&amp;gt;,&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{sin(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{cos(x)}{x} \rightarrow 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602077</id>
		<title>Rep:Mod:Kcl14</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:Kcl14&amp;diff=602077"/>
		<updated>2017-03-13T14:52:38Z</updated>

		<summary type="html">&lt;p&gt;Kcl14: /* Structural properties and the radial distribution function */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction to molecular dynamics simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Velocity Verlet Algorithm ===&lt;br /&gt;
&lt;br /&gt;
&#039;Analytical&#039; is given by &amp;lt;math&amp;gt; x (t) = Acos(wt + \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;Energy&#039; is given by the summation of the potential energy, &amp;lt;math&amp;gt;\frac{1}{2}kx^{2}&amp;lt;/math&amp;gt;, and kinetic energy, &amp;lt;math&amp;gt;\frac{1}{2}mv^{2}&amp;lt;/math&amp;gt;, for a harmonic oscillator. &lt;br /&gt;
&lt;br /&gt;
&#039;Error&#039; is given by the absolute difference between the &#039;Analytical&#039; value and Velocity-Verlet value. &lt;br /&gt;
&lt;br /&gt;
[[File:Analytical.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Energy.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:Error and error maxima.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;R^{2} = 1&amp;lt;/math&amp;gt; obtained from a linear fit of the error maxima suggests a strong linear correlation. &lt;br /&gt;
&lt;br /&gt;
The fluctuations in energy for timesteps, 0.1, 0.05 and 0.2, were then calculated as a percentage of the lowest value observed and plotted against time. &lt;br /&gt;
&lt;br /&gt;
[[File:Default timestep.PNG|700px|thumb|centre|Time step = 0.1]]&lt;br /&gt;
[[File:0.05 timestep.PNG|700px|thumb|centre|Time step = 0.05]]&lt;br /&gt;
[[File:0.2 timestep.PNG|700px|thumb|centre|Time step = 0.2]]&lt;br /&gt;
&lt;br /&gt;
At time step = 0.2, the fluctuation in the energy values during the simulation does not exceed 1%.&lt;br /&gt;
It is important to ensure the total energy fluctuations of a system are not significant enough to introduce large errors into the simulation of its thermodynamic properties.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Forces - Lennard Jones Potential ===&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Potential energy is zero when &amp;lt;math&amp;gt; \phi (r) = 0 &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                         =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\sigma^{6}}{r^{6}}  =  \frac{\sigma^{12}}{r^{12}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
{r^{6}}                   =  \sigma^{6}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{0}                     =  \sigma&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The force at &amp;lt;math&amp;gt;r_{0}&amp;lt;/math&amp;gt; can be obtained with the relationship where &amp;lt;math&amp;gt; F = -\frac{\phi (r)}{dr} &amp;lt;/math&amp;gt; ,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting &amp;lt;math&amp;gt; r_{0} =  \sigma &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = -\frac{\phi (r)}{dr}                 = -4\epsilon\left (\frac{-12}{r} +\frac{6}{r}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
F = \frac{24\epsilon}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The equilibrium separation can be found by obtaining the minimum of the Lennard Jones Interaction where &amp;lt;math&amp;gt; \frac{\phi (r)}{dr} = 0  &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r)                  =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\phi (r)}{dr}                 =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
0                           =  4\epsilon\left (-12 \frac{\sigma^{12}}{r^{13}} +6 \frac{\sigma^{6}}{r^{7}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{12\sigma^{12}}{r^{13}}  =  \frac{6\sigma^{6}}{r^{7}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
6r^{6} = 12\sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The well depth is then calculated with a substitution of &amp;lt;math&amp;gt;r_{eq} = 2^{\frac{1}{6}} \sigma^{6} &amp;lt;/math&amp;gt;, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{\sigma^{12}}{4\sigma^{12}}- \frac{\sigma^{6}}{2\sigma^{6}}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( \frac{1}{4} - \frac{1}{2}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  4\epsilon\left ( -\frac{1}{4}\right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi (r_{eq})             =  -\epsilon&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt; \sigma = \epsilon = 1.0,  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.0248 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{2.5\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{2.5\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00818 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{3\sigma }^{\infty} 4\epsilon\left ( \frac{\sigma^{12}}{r^{12}}- \frac{\sigma^{6}}{r^{6}}\right ) dr&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
=4\epsilon\left [ -\frac{1}{11}\frac{\sigma^{12}}{r^{11}}+ \frac{1}{5}\frac{\sigma^{6}}{r^{5}}\right ]_{3\sigma}^{\infty}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
= - 0.00329 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Volume of Water Molecules ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The number of water molecules can be calculated from the number of moles of water in 1 ml (assuming a density of 1 g per ml) multiplied by Avogadro&#039;s number. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Number\ of\ water\ molecules\ in\ 1\ ml= \frac{1}{18}\left ( 6.02 \times 10^{23}\right ) = 3.34 \times 10^{22}\ molecules&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of water molecules can be calculated from the number of water molecules multiplied by the volume of one molecule which can be obtained from the previous calculation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Estimated\ volume\ of\ 10000\ water\ molecules\ = \frac{10000}{3.34 \times 10^{22}}\ \times10^{-6}m^3 = 2.99 \times 10^{-25}\ m^3&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cubic Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position = 1.2 i + 1.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After accounting for the periodic boundary conditions and since the box runs for one unit length in each direction, the particle reappears from the opposite side of the box at coordinates shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
New\ position\ with\ periodic\ boundary\ conditions = 0.2 i + 0.1 j + 0.7k &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
&lt;br /&gt;
==== LJ cutoff in real units ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
r^{*}  =  \frac{r}{\sigma}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
3.2    =  \frac{r}{0.34 \times 10^{-9}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088 \times 10^{-9}m&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
r      =  1.088\ nm&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Reduced Temperature ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T^{*}  = \frac{K_{B}T}{\epsilon}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
T      =  120 \times 1.5 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
       =  180\ K&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Well Depth ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{\epsilon}{K_{B}}  =  120 &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon                =  120 \times 1.38 \times 10^{-23}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        =  1.656 \times 10^{-21} J&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
                        = 0.997\ kJ mol^{-1}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibration ==&lt;br /&gt;
=== Simulation Box ===&lt;br /&gt;
&lt;br /&gt;
Giving the atoms random initial coordinates gives rise to the possibility where the atoms are generated really close to each other. This can lead to large repulsive interactions that would not normally occur under realistic conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Simple\ Cubic\ Unit\ Cell\  = 1.077^{3} = 1.25 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And since there is 1 lattice point per unit cell, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; Number\ Density\ of\ Lattice\ Points = \frac{1}{1.25} = 0.8  &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the face-centred cubic (FCC) lattice, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{4}{x^{3}} = 1.2 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Volume\ of\ Cubic\ Unit\ Cell\ = x^{3} = 3.33 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Side\ Length\ of\ Cubic\ Unit\ Cell = 1.494 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a FCC lattice, since there are 1000 unit cells generated, there will be 4000 lattice points in the box. This corresponds to 4000 atoms.&lt;br /&gt;
&lt;br /&gt;
=== Setting the Properties of the Atoms &amp;lt;ref name=&amp;quot;LAMMPS&amp;quot;&amp;gt;LAMMPS Manual, http://lammps.sandia.gov/doc/Section_commands.html#individual-commands. Accessed on 12 March 2017.&amp;lt;/ref&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;mass 1 1.0&amp;quot;&#039;&#039;&#039; sets the mass of all type &amp;quot;1&amp;quot; atoms to &amp;quot;1.0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_style lj/cut 3.0&amp;quot;&#039;&#039;&#039; sets the pairwise interactions between particles to follow a Lennard Jones Potential and ignore interactions above &amp;quot;3.0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;pair_coeff * * 1.0 1.0&amp;quot;&#039;&#039;&#039; sets the coefficients of pairwise force field interactions between pairs of any type of atoms to &amp;quot;1.0&amp;quot;. In this case, they would be &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; of the Lennard Jones Potential.&lt;br /&gt;
&lt;br /&gt;
The specification of initial position and velocity allows the use of the velocity-verlet algorithm.&lt;br /&gt;
&lt;br /&gt;
=== Running the Simulation ===&lt;br /&gt;
&lt;br /&gt;
Generalising the input script with variables such as &amp;quot;n_steps&amp;quot; allows convenient altering of the input script. This is especially helpful when the same value is used multiple times within the script since the value only needs to be assigned to the text variable once.&lt;br /&gt;
&lt;br /&gt;
=== Equilibration ===&lt;br /&gt;
&lt;br /&gt;
Thermodynamic quantities of a simulated system (0.001 timestep) are plotted below to verify if they reach a constant average which indicates an equilibrium state.&lt;br /&gt;
&lt;br /&gt;
[[File:Energy vs time 0.001.PNG|700px|thumb|centre|Energy against Time]]&lt;br /&gt;
[[File:Temperature vs time 0.001.PNG|700px|thumb|centre|Temperature against Time]]&lt;br /&gt;
[[File:Pressure vs time 0.001.PNG|700px|thumb|centre|Pressure against Time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A constant average for all three thermodynamic quantities was obtained within the duration of simulation which indicates that equilibrium was obtained in all cases. The time required to attain equilibrium was approximately 0.30 s for each thermodynamic quantity. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Combined energies.PNG|700px|thumb|centre|Energy against Time for all timesteps]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest timestep to give acceptable results is 0.0025 s which converged to the same values for 0.001 s. Above 0.0025 s, the constant averages obtained were higher than that obtained for a timestep of 0.001 s.  &lt;br /&gt;
A particularly bad choice would be to use a timestep of 0.015 s. In this particular simulation, equilibrium was not obtained.&lt;br /&gt;
&lt;br /&gt;
== Running simulations under specific conditions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Thermostats and Barostats ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;E_K = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i v_i^2 = \frac{3}{2} N k_B T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2}\sum_i m_i \left(\gamma v_i\right)^2 = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\gamma^{2}\left(\frac{1}{2}\sum_i m_i v_i^{2}\right)= \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}\left(\frac{3}{2} N k_B T\right) = \frac{3}{2} N k_B \mathfrak{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma^{2}= \frac{\mathfrak{T}}{T}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \gamma= \sqrt{\frac{\mathfrak{T}}{T}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examining the Input Script ===&lt;br /&gt;
&#039;&#039;&#039;&#039;100&#039;&#039;&#039;&#039; refers to the number of timesteps between the usage of each set of input values. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;1000&#039;&#039;&#039;&#039; refers to the number of times each input value is used so that an average can be calculated. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039; refers to the number of timesteps between each time an average is calculated.&lt;br /&gt;
&lt;br /&gt;
The amount of time simulated is the number of steps, &#039;&#039;&#039;&#039;100000&#039;&#039;&#039;&#039;, multiplied by the size of each timestep. In this experiment, a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; was used. Thus, the simulations were &amp;lt;math&amp;gt; 200\ \tau &amp;lt;/math&amp;gt; long.&lt;br /&gt;
&lt;br /&gt;
=== Plotting the Equations of State === &lt;br /&gt;
&lt;br /&gt;
The temperatures (T*) chosen are 2.0, 2.5, 3.0, 3.5 and 4.0 which are above the critical temperature to ensure liquification does not occur. The pressures (P*) chosen are 2.0 and 3.0. Using combinations of the two parameters, 10 simulations were run with a timestep of &amp;lt;math&amp;gt; 0.002\ \tau &amp;lt;/math&amp;gt; and the results are plotted below. A corresponding ideal gas law plot is drawn in orange for each pressure as well. The ideal gas law plot was obtained from taking into account Lennard-Jones reduced units of temperature and pressure &amp;lt;math&amp;gt;\left(\frac{N}{V}\right) = \left(\frac{P^{*}}{T^{*}}\right)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\left(\frac{N}{V}\right)&amp;lt;/math&amp;gt; is the density. &lt;br /&gt;
&lt;br /&gt;
[[File:Density vs temperature p=2.PNG|700px|thumb|centre|P* = 2]]&lt;br /&gt;
[[File:Density vs temperature p=3.PNG|700px|thumb|centre|P* = 3]]&lt;br /&gt;
&lt;br /&gt;
The simulated density is lower than that predicted by the ideal gas law. In the ideal gas law, particles do not interact and the volume occupied by particles is negligible compared to the volume of the container. In this simulation, there are repulsive interactions introduced by the use of the Lennard Jones potential. Hence, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles. &lt;br /&gt;
&lt;br /&gt;
This discrepancy between the simulated density and the ideal density increases with increasing pressure. At higher pressures, particles are closer to one another due to the reduced volume which leads to higher repulsive interactions. Thus, on average, the simulated particles are further apart from one another compared to a scenario with ideal particles.&lt;br /&gt;
&lt;br /&gt;
== Calculating heat capacities using statistical physics ==&lt;br /&gt;
&lt;br /&gt;
=== Heat Capacity Calculation ===&lt;br /&gt;
&lt;br /&gt;
Attached below is an example of an input script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### SPECIFY THE REQUIRED THERMODYNAMIC STATE ###&lt;br /&gt;
variable T equal 2.0&lt;br /&gt;
variable d equal 0.8&lt;br /&gt;
variable timestep equal 0.002&lt;br /&gt;
&lt;br /&gt;
### DEFINE SIMULATION BOX GEOMETRY ###&lt;br /&gt;
lattice sc ${d}&lt;br /&gt;
region box block 0 15 0 15 0 15&lt;br /&gt;
create_box 1 box&lt;br /&gt;
create_atoms 1 box&lt;br /&gt;
&lt;br /&gt;
### DEFINE PHYSICAL PROPERTIES OF ATOMS ###&lt;br /&gt;
mass 1 1.0&lt;br /&gt;
pair_style lj/cut/opt 3.0&lt;br /&gt;
pair_coeff 1 1 1.0 1.0&lt;br /&gt;
neighbor 2.0 bin&lt;br /&gt;
&lt;br /&gt;
### ASSIGN ATOMIC VELOCITIES ###&lt;br /&gt;
velocity all create ${T} 12345 dist gaussian rot yes mom yes&lt;br /&gt;
&lt;br /&gt;
### SPECIFY ENSEMBLE ###&lt;br /&gt;
timestep ${timestep}&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### THERMODYNAMIC OUTPUT CONTROL ###&lt;br /&gt;
thermo_style custom time etotal temp press&lt;br /&gt;
thermo 10&lt;br /&gt;
&lt;br /&gt;
### RECORD TRAJECTORY ###&lt;br /&gt;
dump traj all custom 1000 output-1 id x y z&lt;br /&gt;
&lt;br /&gt;
### SPECIFY TIMESTEP ###&lt;br /&gt;
&lt;br /&gt;
### RUN SIMULATION TO MELT CRYSTAL ###&lt;br /&gt;
run 10000&lt;br /&gt;
unfix nve&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### BRING SYSTEM TO REQUIRED STATE ###&lt;br /&gt;
variable tdamp equal ${timestep}*100&lt;br /&gt;
fix nvt all nvt temp ${T} ${T} ${tdamp} &lt;br /&gt;
run 10000&lt;br /&gt;
reset_timestep 0&lt;br /&gt;
&lt;br /&gt;
### SWITCHING OFF THERMOSTAT ###&lt;br /&gt;
unfix nvt&lt;br /&gt;
fix nve all nve&lt;br /&gt;
&lt;br /&gt;
### MEASURE SYSTEM STATE ###&lt;br /&gt;
thermo_style custom step etotal temp press density atoms vol&lt;br /&gt;
variable atoms equal atoms &lt;br /&gt;
variable dens equal density&lt;br /&gt;
variable temp equal temp&lt;br /&gt;
variable temp2 equal temp*temp&lt;br /&gt;
variable etotal equal etotal&lt;br /&gt;
variable etotal2 equal etotal*etotal&lt;br /&gt;
variable vol equal vol&lt;br /&gt;
variable press equal press&lt;br /&gt;
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_etotal2 v_etotal v_temp2&lt;br /&gt;
run 100000&lt;br /&gt;
&lt;br /&gt;
variable avedens equal f_aves[1]&lt;br /&gt;
variable avetemp equal f_aves[2]&lt;br /&gt;
variable avepress equal f_aves[3]&lt;br /&gt;
variable aveetotal2 equal f_aves[4]&lt;br /&gt;
variable aveetotal equal f_aves[5]&lt;br /&gt;
variable hcapacity equal ${atoms}*${atoms}*((f_aves[4]-f_aves[5]*f_aves[5])/(f_aves[6]))&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Averages&amp;quot;&lt;br /&gt;
print &amp;quot;--------&amp;quot;&lt;br /&gt;
print &amp;quot;Number of Atoms: ${atoms}&amp;quot;&lt;br /&gt;
print &amp;quot;Heatcapacity: ${hcapacity}&amp;quot;&lt;br /&gt;
print &amp;quot;Volume: ${vol}&amp;quot;&lt;br /&gt;
print &amp;quot;Density: ${avedens}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy: ${aveetotal}&amp;quot;&lt;br /&gt;
print &amp;quot;Energy2: ${aveetotal2}&amp;quot;&lt;br /&gt;
print &amp;quot;Temperature: ${avetemp}&amp;quot;&lt;br /&gt;
print &amp;quot;Pressure: ${avepress}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulations were then conducted at &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; of 2.0, 2.2, 2.4, 2.6, 2.8 with &amp;lt;math&amp;gt;\rho^*&amp;lt;/math&amp;gt; values of 0.2 and 0.8. Thus, &amp;lt;math&amp;gt;C_V/V&amp;lt;/math&amp;gt; was plotted as a function of &amp;lt;math&amp;gt;T^{*}&amp;lt;/math&amp;gt; and the plots are shown below.&lt;br /&gt;
&lt;br /&gt;
Heat capacity was calculated using the relationship where &amp;lt;math&amp;gt;C_V = \frac{\partial E}{\partial T} = N^2\frac{\left\langle E^2\right\rangle - \left\langle E\right\rangle^2}{k_B T^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatcapacitykc.PNG|700px|thumb|centre|ABCD]]&lt;br /&gt;
&lt;br /&gt;
Explain difference in green and blue...&lt;br /&gt;
&lt;br /&gt;
== Structural properties and the radial distribution function ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:G(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt;g(r)&amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
[[File:Int g(r) vs r.PNG|700px|thumb|centre|Graph of &amp;lt;math&amp;gt; \int g(r) dr &amp;lt;/math&amp;gt; against &amp;lt;math&amp;gt; r&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The RDF for the solid phase reveals 3 sharp peaks which correspond to the first 3 nearest neighbours on the FCC lattice used to simulate the solid phase. This indicates that the structure of the solid phase is rigid where the atoms vibrate about fixed positions and long range order. The fluctuations correspond to the defects in the solid and further lattice points. &lt;br /&gt;
&lt;br /&gt;
The RDF for the liquid phase reveals 1 sharp peak followed by 2 broader peaks before quickly attaining a constant value of 1. This indicates a lack of long range order but a presence of short range order where nearby atoms can interact and order themselves. &lt;br /&gt;
&lt;br /&gt;
The RDF for the vapour phase reveals 1 sharp peak and quickly attaining a constant value of 1. This indicates an even more pronounced lack of long range order compared to the liquid phase with entirely no short range order. Thus, the vapour phase is the most disordered phase. &lt;br /&gt;
&lt;br /&gt;
[[File:Coloured FCC lattice.png|700px|thumb|centre|Illustration of the first 3 lattice points of the simulated FCC solid]]&lt;br /&gt;
&lt;br /&gt;
Using the red point as the reference lattice point, the green points are the nearest neighbours, followed by the blue points then the yellow points. With these points as the 3 nearest neighbours, there are 12, 6 and 24 atoms in increasingly further layers respectively. The corresponding coordination numbers for the 3 peaks are X, Y and Z respectively. &lt;br /&gt;
&lt;br /&gt;
The lattice spacing is....&lt;br /&gt;
&lt;br /&gt;
== Dynamical properties and the diffusion coefficient ==&lt;br /&gt;
&lt;br /&gt;
The simulations for a vapour, liquid, and solid phase were run using the specified densities and temperatures as shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Temperature &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Density &lt;br /&gt;
|-&lt;br /&gt;
|Gas&lt;br /&gt;
|1.0&lt;br /&gt;
|0.1&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|1.0&lt;br /&gt;
|0.8&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|1.0&lt;br /&gt;
|1.3&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:MSD 8k atoms vapour.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|[[File:MSD 1m atoms gas.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Gas]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:MSD 8k atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|[[File:MSD 1m atoms liquid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:MSD 8k atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|[[File:MSD 1m atoms solid.PNG|700px|thumb|centre|Graph of total MSD against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{6}\frac{\partial\left\langle r^2\left(t\right)\right\rangle}{\partial t}&amp;lt;/math&amp;gt;, D values were calculated for each system simulated. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.3001&lt;br /&gt;
|2.9332&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.0702&lt;br /&gt;
|0.0875&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0.0006&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function ===&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} v\left(t\right)v\left(t + \tau\right)\mathrm{d}t}{\int_{-\infty}^{\infty} v^2\left(t\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then substituting, &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; x\left(t\right) = A\cos\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; v\left(t\right) = \frac{dx\left(t\right)}{dt} = -A\omega\sin\left(\omega t + \phi\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} A^{2}\omega^{2}\sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\sin\left(\omega t + \omega \tau + \phi\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\int_{-\infty}^{\infty} \sin\left(\omega t + \phi\right)\left(\sin\left(\omega t + \phi\right)\cos\left(\omega \tau \right)+\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \frac{\cos\left(\omega \tau \right)\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t + \int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\sin\left(\omega \tau \right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right) + \frac{\sin\left(\omega \tau \right)\int_{-\infty}^{\infty} \left(\sin\left(\omega t + \phi\right)\cos\left(\omega t + \phi\right)\right)\mathrm{d}t}{\int_{-\infty}^{\infty} \sin^{2}\left(\omega t + \phi\right)\mathrm{d}t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C\left(\tau\right) = \cos\left(\omega \tau \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The running integrals for each simulated system are shown below. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|[[File:VACF 8k atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|[[File:VACF 1m atoms vapour.PNG|700px|thumb|centre|Graph of VACF against Timestep for Vapour]]&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|[[File:VACF 8k atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|[[File:VACF 1m atoms liquid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Liquid]]&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|[[File:VACF 8k atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|[[File:VACF 1m atoms solid.PNG|700px|thumb|centre|Graph of VACF against Timestep for Solid]]&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the relationship where &amp;lt;math&amp;gt;D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \left\langle\mathbf{v}\left(0\right)\cdot\mathbf{v}\left(\tau\right)\right\rangle&amp;lt;/math&amp;gt;, D values were calculated for each system simulated.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|----&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |Phase&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |8 thousand atoms &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;width:20em;&amp;quot; |1 million atoms&lt;br /&gt;
|-&lt;br /&gt;
|Vapour&lt;br /&gt;
|1.34409&lt;br /&gt;
|3.26851&lt;br /&gt;
|-&lt;br /&gt;
|Liquid&lt;br /&gt;
|0.08258&lt;br /&gt;
|0.09009&lt;br /&gt;
|-&lt;br /&gt;
|Solid&lt;br /&gt;
|0&lt;br /&gt;
|0&lt;br /&gt;
|----&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Kcl14</name></author>
	</entry>
</feed>