<?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=Dw3015</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=Dw3015"/>
	<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/wiki/Special:Contributions/Dw3015"/>
	<updated>2026-04-05T04:46:25Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654579</id>
		<title>Rep:Mod:dw3015 y3c liqsim</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654579"/>
		<updated>2017-12-21T00:12:04Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: /* Conclusion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Year 3 Computational Labs=&lt;br /&gt;
&lt;br /&gt;
= Molecular Dynamics Simulations of Simple Liquids =&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Aims and Objectives ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
In order for the simulation to replicate a real system as accurately, a few criterion had been defined, namely the simulation model, initial test parameters, forcefield, final parameters and tools used.&lt;br /&gt;
&lt;br /&gt;
=== Velocity-Verlet Algorithm and Timestep ===&lt;br /&gt;
Using approximations, we assumed that atoms will behave classically and therefore the velocity-Verlet algorithm was applied into the simulation, where we&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; have defined the starting positions of the atoms, x&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0) and their velocities at the same time, v&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0). As an example, this algorithm was used in a simple harmonic oscillator: &amp;lt;/span&amp;gt;https://goo.gl/As44o7&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.1 was initially tested. Subsequently, the value of &amp;quot;ERROR&amp;quot; as function of time was investigated and was found that this relationship was given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;y = 0.000422x + 0.000073&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;R-squared value = 0.999977&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The function above remained constant although the value of timestep was varied. It was found that w&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;hen timestep was increased, this will add more cycles to the &amp;quot;ENERGY&amp;quot; and &amp;quot;ERROR&amp;quot; graphs but period remained constant. Amplitude of &amp;quot;ERROR&amp;quot; graph will increase over time leading to bigger magnitude in error. However, the function of maxima in the &amp;quot;ERROR&amp;quot; graph was unchanged. The &amp;quot;ENERGY&amp;quot; graph will also have higher amplitude, hence bigger change in total energy. Timestep must therefore not exceed 0.1990665 for change in total energy to remain below 1%.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The prove of concept is shown here: https://goo.gl/zC9YU9&lt;br /&gt;
&lt;br /&gt;
Moreover, the t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;otal energy of a physical system was measured and expected to remain constant, indicating that the system has completed equilibration and energy has been completely redistributed among the particles in a given system (through collisions) upon the start of the simulation.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Model ===&lt;br /&gt;
A simple particle in a box model was used for all of the simulations. Using LAMMPS, a cubic box of a given length containing a given amount of atoms of mass 1.0 was created. This will form the boundary for the simulations carried out.&lt;br /&gt;
&lt;br /&gt;
For atoms that move beyond this boundary, the periodic boundary conditions was able to correct the atoms&#039; coordinates by allowing its replica to enter from the opposite face.&lt;br /&gt;
&lt;br /&gt;
For instance, a&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;n atom at position (0.5, 0.5, 0.5) in a cubic simulation box which runs from (0, 0, 0) to (1.0, 1.0, 1.0), moving along a vector (0.7, 0.6, 0.2) in a single timestep, its final position is at (1.2, 1.1, 0.7). But after applying periodic boundary conditions, the atom position was corrected to (0.2, 0.1, 0.7).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To give an idea of the number of molecules simulated, the number of moles of 1 ml of water under standard conditions were estimated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of 1 ml water = ρV = 1 g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;n of 1ml water = m/M&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 0.05550843506 mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number of water molecules = nN&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 3.342796 x 10&amp;lt;sup&amp;gt;22&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a large and unsuitable number to simulate. A value of 10000 would be more reasonable, thus the volume of 10000 water molecules was calculated to give a better perspective:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For 10000 water molecules, n of water = n.o.m./N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 1.660539&lt;br /&gt;
x 10&amp;lt;sup&amp;gt;-20&amp;lt;/sup&amp;gt; mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of water = nM&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V of water = m/ρ = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; ml&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Forcefield ===&lt;br /&gt;
The Lennard-Jones potential, which fits well into the physic of the simulation, was utilised knowing that the force acting on the atoms depended on the potential they experienced. At longer distances however, this interaction will be so small that it can be negligible, so a cutoff point of 3.0&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ was put in place.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Lennard-Jones Potential, U = 4ε [(σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To understand the relationship better, the separation &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; at which the potential of zero was evaluated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;When U=0, (σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Let (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = y, thus y&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;-y = 0, y(y-1) = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore, y=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0, undefined; (y-1)=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;= 1, hence R=r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;=σ (F = repulsive force)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along with the separation at equilibrium and hence the well depth &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ϕ(r&amp;lt;sub&amp;gt;eq),&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;At equilibrium, F=0 (minimum), dU/dR = -48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&lt;br /&gt;
+ 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For turning point, dU/dR = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;),&lt;br /&gt;
(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)/(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;, R&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;=2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;,&lt;br /&gt;
hence R=(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)σ, R=r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;=1.12246σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore well depth, ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;)&lt;br /&gt;
- (σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;)]&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(1/4)-(1/2)], ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = -ε (minimum)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Moreover, the values of integrals of 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, 2.5 σ and 3 σ to infinity were calculated respectively:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;∫ϕ(r)dr = -1/3εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;), and when σ=ε=1,&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.020671&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2.5 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0068127&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0027416&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
The quantities used in the simulation were treated and divided with a scaling factor, such as &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ or &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ε, to ensure that our results were more manageable. For example, for argon with Lennard-Jones (LJ) parameters σ = 0.34nm and ε/&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; = 120K, its LJ cutoff r* = 3.2 in real units was:&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r=r*σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r = 3.2(0.34 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt;) = 1.088 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; m&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, its well depth in real units was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = ε = k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T x N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ε = (1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(120 K)(6.02214 x 10&amp;lt;sup&amp;gt;23 &amp;lt;/sup&amp;gt;&#039;&#039;mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; = 0.997735 kJ mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, the reduced temperature T* = 1.5 can be calculated in real units:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = T*ε/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = 1.5(997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)/(1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(6.02214 &#039;&#039;x 10&amp;lt;sup&amp;gt;23&amp;lt;/sup&amp;gt; mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 180 K&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lattice Structure ===&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Giving atoms random starting coordinates can be problematic as this may generate two atoms close to each other in our simulation, where if the separation between them was below σ, this can cause a strong (or even infinite) repulsion pushing the atoms apart. Therefore, the atoms were initially created in a 3D simple cubic (sc) lattice.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given that the number density (N/V) of lattice points was 0.8, the lattice spacing was found to be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number density, ρ=N/V, V=N/ρ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V = 1/0.8 = 1.25&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;L&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;attice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√1.25 = 1.07722&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or a face-centred cubic (fcc) lattice with number density 1.2, its lattice spacing was calculated:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.2 = 3.33333&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√3.33333 = 1.49380&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Furthermore, a simulation sc box of width 10 was created as a control. Within this region, there were &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;4000 atoms present (4 atoms in each unit cell where there are 10x10x10 = 1000 unit cells). Following this, the mass and pair coefficient of the each type of atom were assigned as below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Definitions for each line in the command code are provided as such:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Assigning mass of value 1.0 to all type 1 atoms&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Specifying a standard 12/6 Lennard-Jones potential with no Coulomb between atom pairs with global LJ cutoff set to distance r*=3.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Setting the pairwise forcefield coefficients for the&lt;br /&gt;
symmetric I,J interaction to the same value of 1.0 for all (given by asterisk) type 1 with type 1 atom pairs&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Timestep Optimisation ===&lt;br /&gt;
The code below was written in the input script with the timestep taking a value of 0.001:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### SPECIFY TIMESTEP ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable timestep equal 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable n_steps equal floor(100/${timestep})&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep ${timestep}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### RUN SIMULATION ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run ${n_steps}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: T&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he variable command is a loop which was assigned a value that is later evaluated in the input script, where in this case timestep was equal to 0.001. This is useful because the defined value can be referenced in subsequent variables, therefore making it reusable and eliminating the need to repeatedly input the value 0.001. For instance, the defined timestep was used in the math function &amp;quot;floor&amp;quot; assigned to variable n_step and subsequently the value n_step is used in the &amp;quot;run&amp;quot; command. Hence, this coding method will be more pragmatic than just writing the script simply as:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choosing the correct timestep was crucial for the subsequent simulations which were undertaken. To determine the optimum timestep, simulations using different timesteps (0.001, 0.0025, 0.0075, 0.01 and 0.015) were tested. To illustrate that the simulation had equilibrated, the graphs of total e&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;nergy, temperature and pressure against time were plotted for the 0.001 timestep experiment:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_1.jpg|&#039;&#039;&#039;Figure 1:&#039;&#039;&#039; Total energy against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_2.jpg|&#039;&#039;&#039;Figure 2:&#039;&#039;&#039; Temperature against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_3.jpg|&#039;&#039;&#039;Figure 3:&#039;&#039;&#039; Pressure against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the plots above, the simulation did achieve equilibrium and the values of total energy, temperature and pressure had converged to a constant average (within a certain degree of error) at approximately 0.5 s into the simulation.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_4.jpg|&#039;&#039;&#039;Figure 4:&#039;&#039;&#039; Single plot of total energy against time for all five timesteps.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Among the five timesteps, 0.001 was most likely to give acceptable results. The data obtained was of high resolution, with the smallest interval between data points. The simulation was said to give the best representation of a physical reality being investigated. On the other hand, a timestep of 0.015 was the least suitable choice because the total energy does not converge. The energy initially stabilised but subsequently diverged (increased) after 20 s and thus system has not fully equilibrated. To give the best balance between resolution and speed (time taken to complete a simulation), timestep within the acceptable range of 0.001 to 0.003 were used. Any timestep above 0.003 would not properly allow for total energy to converge and gives a large gap between data points.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== LAMMPS Toolkit ===&lt;br /&gt;
The LAMMPS Molecular Dynamics Simulator is an extremely useful simulation software containing a vast array of tools that was further utilised throughout this experiment. Among them were the &amp;quot;variable&amp;quot; and &amp;quot;thermo_style&amp;quot; commands used in changing ensembles and measuring thermodynamics properties respectively, which were crucial in obtaining key data. Towards the end of the investigation, the usage of the radial distribution function (RDF), mean squared displacement (MSD) and velocity autocorrelation function (VACF) were also explored and applied into many of the simulations conducted.&lt;br /&gt;
&lt;br /&gt;
=== Visual Molecular Dynamics (VMD) ===&lt;br /&gt;
To help visualise some of the simulations, LAMMPS was also supported by the VMD 3D graphics programme that was able to read trajectory (.trj) files in order to display our simulation through multiple modes and perspectives. This software was also used to conduct further calculations such as evaluating running integrals for the RDF.&lt;br /&gt;
&lt;br /&gt;
== Results and Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== NpT Ensemble ===&lt;br /&gt;
For this section of the investigation, the simulation has been modified so that it can run under NpT conditions (called the isobaric-isothermal ensemble in statistical mechanics) to understand what changes to thermodynamic properties occur at this particular experimental condition. The data collected was used to plot an equation of state at atmospheric pressure for the case of our model fluid.&lt;br /&gt;
&lt;br /&gt;
Five values of temperature (2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;.0, 2.5, 3.0, 3.5, 4.0&amp;lt;/span&amp;gt;) and two values of pressure (3.0, 4.0) given in Lennard-Jones units were chosen based on the results of the optimisation test ran earlier. The timestep was set to 0.0025 and the input script modified accordingly for all ten (p,T) phase points before being submitted to LAMMPS.&lt;br /&gt;
&lt;br /&gt;
==== 1. Controlling Temperature ====&lt;br /&gt;
In general, temperature, T at a given time during the course of the simulation will be prone to fluctuations and will differ slightly from the intended temperature of the system, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;𝛕 (value specified in the input script). However, T can be easily controlled by multiplying each velocity term of each atom by a constant factor, γ whereby:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The kinetic energy of the system can be written as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T &#039;&#039;&#039;&#039;&#039;(Eq. 1)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;𝛕 &#039;&#039;&#039;&#039;&#039;(Eq. 2)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Dividing (Eq. 2) by (Eq. 1):&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)/( v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;) = 𝛕/T&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 𝛕/T, thus γ = √(𝛕/T)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, the value of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;γ can be determined and used to correct any deviations in T.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Sampling and Averaging ====&lt;br /&gt;
In the input script, there were lines entered as:&lt;br /&gt;
 fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
 run 100000&lt;br /&gt;
These lines were needed to measure key thermodynamics properties such as density, temperature and pressure respectively. Most importantly, the values 100, 1000 and 100000 play a vital role in directing how often these properties are averaged and how many measurements contribute to the final average. Each number is represented as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100 = Nevery&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1000 = Nrepeat&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100000 = Nfreq&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The three arguments above specify the timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a multiple of 100000. The average was over 1000 quantities, computed in the preceding portion of the simulation every 100 timesteps. Nfreq must be a multiple of Nevery and Nevery must be non-zero even if Nrepeat was 1. Also, the timesteps contributing to the average value cannot overlap, i.e. Nrepeat*Nevery cannot exceed Nfreq.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;, by referring to the log (.log) output file, the amount of time that has been simulated for this investigation was 50 s.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Equation of State ====&lt;br /&gt;
The density of the system obtained from the log files were plotted against temperature for both of pressures that were simulated, including error bars. Also included in the graphs was a curve for the expected densities as predicted by the ideal gas law, pV =NkT. &amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_5.jpg|&#039;&#039;&#039;Figure 5:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 3.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_6.jpg|&#039;&#039;&#039;Figure 6:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 4.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;It was found that the&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulated density was always lower than the values predicted by the ideal gas law for a given pressure. This was because for an ideal gas, there was no interactions between the atoms whereas the atoms in our simulation had been modeled using a forcefield of the Lennard-Jones potential. Moreover, the discrepancy between the observed and predicted values of density increased with pressure, especially at the lower temperatures where the deviation was larger.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== NVT Ensemble ===&lt;br /&gt;
&lt;br /&gt;
==== 1. Heat Capacity ====&lt;br /&gt;
In a particular system where temperature was fixed, thermodynamic properties such as total energy were likely to fluctuate from its constant average and these fluctuations gives rise to the heat capacity, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv&amp;lt;/span&amp;gt; where its value can be calculated using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv = δE/δT = N&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.Var(E)/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, it was important to note that the simulation carried out here was altered to NVT conditions (canonical ensemble). As with the previous simulation, ten phase points were required, but this time using five values of temperature (2.0, 2.2, 2.4, 2.6, 2.8) and two values of density (0.2, 0.8). A copy of the modified input script for NVT is attached below to highlight the changes made:&lt;br /&gt;
&lt;br /&gt;
https://goo.gl/5GnrfV&lt;br /&gt;
&lt;br /&gt;
==== 2. Results ====&lt;br /&gt;
Once data was collected from the log files (but without standard errors), the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv/V against average temperature was plotted on the same axes, where V was the volume of the simulation cell.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_7.jpg|&#039;&#039;&#039;Figure 7:&#039;&#039;&#039; A plot of heat capacity over volume as a function of average temperature&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the results obtained, this was not the trend that was expected. The data supposed to show a constant heat capacity for both densities, but instead heat capacity decreases when temperature was increased. Comparing both sets of data, for a system having a higher density, its heat capacity will in turn be raised.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Radial Distribution Function (RDF) ===&lt;br /&gt;
The radial pair distribution function or g(r) is &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;defined as the probability of locating the nearest neighbouring atom at a distance r from a reference atom. The visualising software VMD was used to calculate the RDF of three simulations under different states, that were the solid, liquid and vapour phases.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 1. Phase Transitions ====&lt;br /&gt;
In order to set up the various states, the values of d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ensity and temperature of the simulation were modified appropriately based on the phase transitions of the Lennard-Jones system. The following were the set of parameters determined for each state:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.002 was used to run all simulations in LAMMPS.&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_solid.JPG|&#039;&#039;&#039;Figure 8(a):&#039;&#039;&#039; View of solid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_liquid.JPG|&#039;&#039;&#039;Figure 8(b):&#039;&#039;&#039; View of liquid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_vapour.JPG|&#039;&#039;&#039;Figure 8(c):&#039;&#039;&#039; View of gas phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Qualitative Analysis of RDF ====&lt;br /&gt;
When each simulation was completed, its .trj file was inputted into VMD where the value of g(r) and &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ g(r) dr (or running integral) were evaluated. The graph of RDF against reduced distance were plotted on the same axes for all three states.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_8.jpg|&#039;&#039;&#039;Figure 9:&#039;&#039;&#039; Combined g(r) against reduced distance plot for the solid, liquid and vapour systems&lt;br /&gt;
&amp;lt;/gallery&amp;gt;In the s&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;olid RDF, the function showed a regular pattern of peaks with almost the similar intervals over a long range of distance. The peaks were discrete at approximately σ, √2 σ, √3 σ, and so on. There was a very high chance of finding an atom at the position of these peaks whilst the probability of locating an atom between the peaks was very low. This illustrated that solids had a uniform packing structure and had very little defect within the lattice. Moreover, the first three peaks corresponded to the first, second and third coordination shells.&lt;br /&gt;
&lt;br /&gt;
Thus the lattice spacing can be determined:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.4 = 2.85714&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√2.85714 = 1.41898&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;To calculate the coordination number, g(r) was integrated in spherical coordinates to the first minimum of the RDF. Hence, the coordination numbers for the solid were: first peak (12), second peak (4), and third peak (8).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the l&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iquid RDF, the first and sharpest peak occured close to σ and the subsequent peaks appeared at about intervals of σ, but smaller than the first peak. At longer distances of r, the value of g(r) remained unchanged at 1, showing that liquid particles were independent of one another. Thus, liquids were less closely packed compared to solids and had the ability to move dynamically, hence they do not possess a fixed structure. They were able to form multiple coordination spheres, but in most cases, there was only one coordination sphere present at a given time.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the v&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;apour RDF, the function only showed one obvious peak at about σ which then plateaued off at a value of g(r) = 1, the normal bulk density of the system. The regions that experienced the greatest intermolecular forces when g(r) &amp;gt; 1 were for 1 &amp;lt; σ &amp;lt; 2.5. From this result, it was concluded that gases tend to move around randomly in a sporadic motion (Brownian motion) and at most, they only have a single short-lived coordination sphere.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Diffusion Coefficient ===&lt;br /&gt;
In this experiment, the way in which atoms move around in the system (through translational motion) was of particular interest. This form of motion was governed by the diffusion coefficient, D or mass diffusivity, which can be measured using two main methods detailed below: &lt;br /&gt;
&lt;br /&gt;
==== 1. Mean Squared Displacement (MSD) ====&lt;br /&gt;
Since D was closely related to MSD, a simulation was ran (at specific density and temperature) for all three phases with an additional input command to calculate MSD and VACF (mentioned in next section). The set of parameters used to obtain each physical phase were identical those implemented during the RDF investigation:&lt;br /&gt;
&lt;br /&gt;
Timestep = 0.002&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once data was obtained from the &amp;quot;optional output-2&amp;quot; files, the total MSD (resultant MSD from individual Cartesian directions (x,y,z)) was plotted against timestep:&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_9.jpg|&#039;&#039;&#039;Figure 10(a):&#039;&#039;&#039; Total MSD as a function of timestep for the solid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_10.jpg|&#039;&#039;&#039;Figure 10(b):&#039;&#039;&#039; Total MSD as a function of timestep for the liquid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_11.jpg|&#039;&#039;&#039;Figure 10(c):&#039;&#039;&#039; Total MSD as a function of timestep for the gas phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The relationship between total MSD and timestep obtained for the three phases were as expected. Total MSD for solids initially fluctuated before becoming constant whereas for the liquid phase, its values increased linearly but gradually, and as for the vapour phase, total MSD increased linearly and rapidly.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since D = 1/6 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;δ&amp;lt;r&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;(t)&amp;gt; / δt, &amp;lt;/span&amp;gt;then &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/6 (gradient of graph of MSD vs timestep).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus using the gradient of the best-fit line, for:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/6 (2.3514 x 10&amp;lt;sup&amp;gt;-8&amp;lt;/sup&amp;gt;) = 3.919 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/6 (1.3140 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt;) = 2.190 x 10&amp;lt;sup&amp;gt;-4&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/6 (7.2313 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt;) = 1.205 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this, the d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iffusion coefficient was shown to have increased going from solids to gases. Moreover, it was noted that the diffusion coefficient for the solid phase was so small, it was negligible (zero).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. MSD: One Million Atoms ====&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_19.jpg|&#039;&#039;&#039;Figure 11(a):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_20.jpg|&#039;&#039;&#039;Figure 11(b):&#039;&#039;&#039; Total MSD plotted against timestep for the liquid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_21.jpg|&#039;&#039;&#039;Figure 11(c):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;For the same&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulation repeated using one million atoms, values of total MSD obtained were higher compared to that with fewer atoms (except for the solid phase where the total MSD was lowered). Moreover, total MSD for the liquid and vapour phases increased more linearly when using more atoms (and this was most evident for the vapour phase). Hence, the gradient of the best-fit line was used to evaluate the values of D as shown below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/6 (5.26956 x 10&amp;lt;sup&amp;gt;-8&amp;lt;/sup&amp;gt;) = 8.783 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/6 (1.04717 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt;) = 1.745 x 10&amp;lt;sup&amp;gt;-4&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/6 (3.57206 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt;) = 5.953 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Overall, the same trend was observed, with the addition that the diffusion coefficients for the liquid and gas systems were slightly lower than before.&lt;br /&gt;
&lt;br /&gt;
==== 3. Extension: Velocity Autocorrelation Function (VACF) ====&lt;br /&gt;
The other alternative way of calculating D was by using the velocity autocorrelation function. The same input script was used here (as in the previous MSD section) and the simulation was ran for the solid, liquid and vapour phases. All data was obtained from the &amp;quot;optional output-3&amp;quot; files.&lt;br /&gt;
&lt;br /&gt;
In relation to the theoretical concepts covered in the 1D harmonic oscillator, the &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;normalised velocity autocorrelation function, C(τ) was evaluated for this 1D harmonic system:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Given that C(τ) = &amp;lt; v(t).v(t+τ) &amp;gt; and x(t) = cos(ωt+ϕ),&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;VACF of a 1D harmonic oscillator, C(τ) = ∫ v(t).v(t+τ) dt&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, the normalised VACF, C(τ) = ∫ v(t).v(t+τ) dt / ∫ v(t)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; dt&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence to compare between the different oscillating systems, the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;C(τ) with ω=1/(2п) along with the VACFs from the solid and liquid simulations was plotted along the same axes, from x = 0 to 500.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_15.jpg|&#039;&#039;&#039;Figure 12:&#039;&#039;&#039; C(τ) with ω=1/(2п) and the VACFs of the solid and liquid phases as a function of timestep (x = 0 to 500)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;In the solid and liquid phases, where atoms are close to each other and of high density, strong interatomic forces were most evident. Atoms in these systems tend to adopt a position where there was a balance between the attractive and repulsive forces, thus they will not be easily displaced. As a result, these atoms will oscillate as part of their motion, vibrating between points of maxima and minima. Hence, this gave rise to a VACF function which showed a periodic oscillation from positive to negative values.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;For the case of solids, the magnitude of oscillation decayed over time due to forces acting to oppose these motion, thus the function closely resembled a damped oscillation that decreased exponentially. Whilst for liquids, the atoms behaved similarly but they were able to glide among themselves. The process of diffusion also drastically weakened any oscillatory motion the system possessed and the VACF function showed a very damp oscillation, with only a single minima point.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The minima in the VACFs in the solid and liquid system relates to the maximum change in the magnitude or direction (of the atoms in the system), thus altering their velocities, giving rise to a minimum value for the product of v(t=0) and v(t=τ).&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;On the other hand, the 1D harmonic oscillator model has a VACF function of constant amplitude (A=1) and period (T=40 s). Its magnitude of oscillation was greater than that of the solid and liquid systems, implying that no damping or perturbative forces had acted upon the system throughout its motion (and based on Newton’s Law of Motion the oscillation its motion will not change and continue to remain this way). Whereas, unlike the Lennard-Jones model describe earlier, atoms in the 1D harmonic oscillator do not interact with each other by attraction or repulsion and thus no energy was dissipated.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 4. The Trapezium Rule ====&lt;br /&gt;
Utilising the trapezium rule (TR) to approximately calculate the integral or area under the VACF graph, the values of D were estimated for each of the three physical phases.&lt;br /&gt;
&lt;br /&gt;
Given D = 1/3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ &amp;lt;v(0).v(τ)&amp;gt; dτ, then &amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/3 (area under the graph of C(τ) vs timestep).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus using the area under the graph obtained by the TR, for:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/3 (216.9089038) = 72.303 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/3 (277.865793) = 92.622 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/3 (10675.4021) = 3358.467 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The values of D above were as expected, with it increasing in magnitude from the solid to vapour phase. Going a step further, the running integrals for each case were also evaluated (once again using the TR) and plotted as a function of timestep as follows:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_16.jpg|&#039;&#039;&#039;Figure 13(a):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for the solid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_17.jpg|&#039;&#039;&#039;Figure 13(b):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for the liquid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_18.jpg|&#039;&#039;&#039;Figure 13(c):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for the gas phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The running integral for the solid and liquid phases were almost identical, having a rapid increase at the start and leveling off towards the end (due to atomic oscillations and small fluctuations in velocity). For gases on the other hand, its running integral increases gradually as a result of the exponential decay trend seen in its C(τ) against timestep plot. Thus, in statistical mechanics term, it can be concluded that the velocity has decorrelated with time showing the presence of weak forces becoming prominent in the vapour system.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 5. VACF: One Million Atoms ====&lt;br /&gt;
&lt;br /&gt;
The same procedures described above were applied f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or the simulation containing one million atoms, and thus for:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/3 (176.9191107) = 58.973 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/3 (151.586442) = 50.529 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/3 (4902.698696) = 1634.233 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As such, t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he values of diffusion coefficient increased from the solid to vapour phase as predicted, but was anomalous for the liquid phase (a decrease from the trend).&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_22.jpg|&#039;&#039;&#039;Figure 14(a):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for solids for 1 million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_25.jpg|&#039;&#039;&#039;Figure 14(b):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for liquids for 1 million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_26.jpg|&#039;&#039;&#039;Figure 14(c):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for gases for 1 million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;As with the simulation using fewer atoms, the running integral plots for one million atoms were consistent in its trend. One difference was that the final integral (or maximum height) for the solid and liquid phases were lower than before, indicating that the magnitude of oscillation of atoms in the system had decreased and there were smaller fluctuations. &amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;For the vapour phase, there was a more evident exponential trend, which better correlates the simulation with the real system.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Fill&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654578</id>
		<title>Rep:Mod:dw3015 y3c liqsim</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654578"/>
		<updated>2017-12-21T00:07:10Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: /* 5. VACF: One Million Atoms */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Year 3 Computational Labs=&lt;br /&gt;
&lt;br /&gt;
= Molecular Dynamics Simulations of Simple Liquids =&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Aims and Objectives ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
In order for the simulation to replicate a real system as accurately, a few criterion had been defined, namely the simulation model, initial test parameters, forcefield, final parameters and tools used.&lt;br /&gt;
&lt;br /&gt;
=== Velocity-Verlet Algorithm and Timestep ===&lt;br /&gt;
Using approximations, we assumed that atoms will behave classically and therefore the velocity-Verlet algorithm was applied into the simulation, where we&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; have defined the starting positions of the atoms, x&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0) and their velocities at the same time, v&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0). As an example, this algorithm was used in a simple harmonic oscillator: &amp;lt;/span&amp;gt;https://goo.gl/As44o7&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.1 was initially tested. Subsequently, the value of &amp;quot;ERROR&amp;quot; as function of time was investigated and was found that this relationship was given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;y = 0.000422x + 0.000073&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;R-squared value = 0.999977&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The function above remained constant although the value of timestep was varied. It was found that w&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;hen timestep was increased, this will add more cycles to the &amp;quot;ENERGY&amp;quot; and &amp;quot;ERROR&amp;quot; graphs but period remained constant. Amplitude of &amp;quot;ERROR&amp;quot; graph will increase over time leading to bigger magnitude in error. However, the function of maxima in the &amp;quot;ERROR&amp;quot; graph was unchanged. The &amp;quot;ENERGY&amp;quot; graph will also have higher amplitude, hence bigger change in total energy. Timestep must therefore not exceed 0.1990665 for change in total energy to remain below 1%.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The prove of concept is shown here: https://goo.gl/zC9YU9&lt;br /&gt;
&lt;br /&gt;
Moreover, the t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;otal energy of a physical system was measured and expected to remain constant, indicating that the system has completed equilibration and energy has been completely redistributed among the particles in a given system (through collisions) upon the start of the simulation.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Model ===&lt;br /&gt;
A simple particle in a box model was used for all of the simulations. Using LAMMPS, a cubic box of a given length containing a given amount of atoms of mass 1.0 was created. This will form the boundary for the simulations carried out.&lt;br /&gt;
&lt;br /&gt;
For atoms that move beyond this boundary, the periodic boundary conditions was able to correct the atoms&#039; coordinates by allowing its replica to enter from the opposite face.&lt;br /&gt;
&lt;br /&gt;
For instance, a&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;n atom at position (0.5, 0.5, 0.5) in a cubic simulation box which runs from (0, 0, 0) to (1.0, 1.0, 1.0), moving along a vector (0.7, 0.6, 0.2) in a single timestep, its final position is at (1.2, 1.1, 0.7). But after applying periodic boundary conditions, the atom position was corrected to (0.2, 0.1, 0.7).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To give an idea of the number of molecules simulated, the number of moles of 1 ml of water under standard conditions were estimated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of 1 ml water = ρV = 1 g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;n of 1ml water = m/M&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 0.05550843506 mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number of water molecules = nN&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 3.342796 x 10&amp;lt;sup&amp;gt;22&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a large and unsuitable number to simulate. A value of 10000 would be more reasonable, thus the volume of 10000 water molecules was calculated to give a better perspective:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For 10000 water molecules, n of water = n.o.m./N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 1.660539&lt;br /&gt;
x 10&amp;lt;sup&amp;gt;-20&amp;lt;/sup&amp;gt; mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of water = nM&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V of water = m/ρ = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; ml&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Forcefield ===&lt;br /&gt;
The Lennard-Jones potential, which fits well into the physic of the simulation, was utilised knowing that the force acting on the atoms depended on the potential they experienced. At longer distances however, this interaction will be so small that it can be negligible, so a cutoff point of 3.0&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ was put in place.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Lennard-Jones Potential, U = 4ε [(σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To understand the relationship better, the separation &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; at which the potential of zero was evaluated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;When U=0, (σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Let (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = y, thus y&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;-y = 0, y(y-1) = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore, y=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0, undefined; (y-1)=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;= 1, hence R=r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;=σ (F = repulsive force)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along with the separation at equilibrium and hence the well depth &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ϕ(r&amp;lt;sub&amp;gt;eq),&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;At equilibrium, F=0 (minimum), dU/dR = -48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&lt;br /&gt;
+ 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For turning point, dU/dR = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;),&lt;br /&gt;
(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)/(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;, R&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;=2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;,&lt;br /&gt;
hence R=(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)σ, R=r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;=1.12246σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore well depth, ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;)&lt;br /&gt;
- (σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;)]&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(1/4)-(1/2)], ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = -ε (minimum)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Moreover, the values of integrals of 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, 2.5 σ and 3 σ to infinity were calculated respectively:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;∫ϕ(r)dr = -1/3εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;), and when σ=ε=1,&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.020671&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2.5 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0068127&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0027416&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
The quantities used in the simulation were treated and divided with a scaling factor, such as &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ or &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ε, to ensure that our results were more manageable. For example, for argon with Lennard-Jones (LJ) parameters σ = 0.34nm and ε/&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; = 120K, its LJ cutoff r* = 3.2 in real units was:&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r=r*σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r = 3.2(0.34 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt;) = 1.088 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; m&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, its well depth in real units was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = ε = k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T x N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ε = (1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(120 K)(6.02214 x 10&amp;lt;sup&amp;gt;23 &amp;lt;/sup&amp;gt;&#039;&#039;mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; = 0.997735 kJ mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, the reduced temperature T* = 1.5 can be calculated in real units:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = T*ε/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = 1.5(997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)/(1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(6.02214 &#039;&#039;x 10&amp;lt;sup&amp;gt;23&amp;lt;/sup&amp;gt; mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 180 K&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lattice Structure ===&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Giving atoms random starting coordinates can be problematic as this may generate two atoms close to each other in our simulation, where if the separation between them was below σ, this can cause a strong (or even infinite) repulsion pushing the atoms apart. Therefore, the atoms were initially created in a 3D simple cubic (sc) lattice.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given that the number density (N/V) of lattice points was 0.8, the lattice spacing was found to be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number density, ρ=N/V, V=N/ρ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V = 1/0.8 = 1.25&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;L&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;attice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√1.25 = 1.07722&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or a face-centred cubic (fcc) lattice with number density 1.2, its lattice spacing was calculated:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.2 = 3.33333&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√3.33333 = 1.49380&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Furthermore, a simulation sc box of width 10 was created as a control. Within this region, there were &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;4000 atoms present (4 atoms in each unit cell where there are 10x10x10 = 1000 unit cells). Following this, the mass and pair coefficient of the each type of atom were assigned as below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Definitions for each line in the command code are provided as such:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Assigning mass of value 1.0 to all type 1 atoms&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Specifying a standard 12/6 Lennard-Jones potential with no Coulomb between atom pairs with global LJ cutoff set to distance r*=3.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Setting the pairwise forcefield coefficients for the&lt;br /&gt;
symmetric I,J interaction to the same value of 1.0 for all (given by asterisk) type 1 with type 1 atom pairs&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Timestep Optimisation ===&lt;br /&gt;
The code below was written in the input script with the timestep taking a value of 0.001:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### SPECIFY TIMESTEP ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable timestep equal 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable n_steps equal floor(100/${timestep})&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep ${timestep}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### RUN SIMULATION ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run ${n_steps}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: T&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he variable command is a loop which was assigned a value that is later evaluated in the input script, where in this case timestep was equal to 0.001. This is useful because the defined value can be referenced in subsequent variables, therefore making it reusable and eliminating the need to repeatedly input the value 0.001. For instance, the defined timestep was used in the math function &amp;quot;floor&amp;quot; assigned to variable n_step and subsequently the value n_step is used in the &amp;quot;run&amp;quot; command. Hence, this coding method will be more pragmatic than just writing the script simply as:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choosing the correct timestep was crucial for the subsequent simulations which were undertaken. To determine the optimum timestep, simulations using different timesteps (0.001, 0.0025, 0.0075, 0.01 and 0.015) were tested. To illustrate that the simulation had equilibrated, the graphs of total e&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;nergy, temperature and pressure against time were plotted for the 0.001 timestep experiment:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_1.jpg|&#039;&#039;&#039;Figure 1:&#039;&#039;&#039; Total energy against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_2.jpg|&#039;&#039;&#039;Figure 2:&#039;&#039;&#039; Temperature against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_3.jpg|&#039;&#039;&#039;Figure 3:&#039;&#039;&#039; Pressure against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the plots above, the simulation did achieve equilibrium and the values of total energy, temperature and pressure had converged to a constant average (within a certain degree of error) at approximately 0.5 s into the simulation.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_4.jpg|&#039;&#039;&#039;Figure 4:&#039;&#039;&#039; Single plot of total energy against time for all five timesteps.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Among the five timesteps, 0.001 was most likely to give acceptable results. The data obtained was of high resolution, with the smallest interval between data points. The simulation was said to give the best representation of a physical reality being investigated. On the other hand, a timestep of 0.015 was the least suitable choice because the total energy does not converge. The energy initially stabilised but subsequently diverged (increased) after 20 s and thus system has not fully equilibrated. To give the best balance between resolution and speed (time taken to complete a simulation), timestep within the acceptable range of 0.001 to 0.003 were used. Any timestep above 0.003 would not properly allow for total energy to converge and gives a large gap between data points.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== LAMMPS Toolkit ===&lt;br /&gt;
The LAMMPS Molecular Dynamics Simulator is an extremely useful simulation software containing a vast array of tools that was further utilised throughout this experiment. Among them were the &amp;quot;variable&amp;quot; and &amp;quot;thermo_style&amp;quot; commands used in changing ensembles and measuring thermodynamics properties respectively, which were crucial in obtaining key data. Towards the end of the investigation, the usage of the radial distribution function (RDF), mean squared displacement (MSD) and velocity autocorrelation function (VACF) were also explored and applied into many of the simulations conducted.&lt;br /&gt;
&lt;br /&gt;
=== Visual Molecular Dynamics (VMD) ===&lt;br /&gt;
To help visualise some of the simulations, LAMMPS was also supported by the VMD 3D graphics programme that was able to read trajectory (.trj) files in order to display our simulation through multiple modes and perspectives. This software was also used to conduct further calculations such as evaluating running integrals for the RDF.&lt;br /&gt;
&lt;br /&gt;
== Results and Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== NpT Ensemble ===&lt;br /&gt;
For this section of the investigation, the simulation has been modified so that it can run under NpT conditions (called the isobaric-isothermal ensemble in statistical mechanics) to understand what changes to thermodynamic properties occur at this particular experimental condition. The data collected was used to plot an equation of state at atmospheric pressure for the case of our model fluid.&lt;br /&gt;
&lt;br /&gt;
Five values of temperature (2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;.0, 2.5, 3.0, 3.5, 4.0&amp;lt;/span&amp;gt;) and two values of pressure (3.0, 4.0) given in Lennard-Jones units were chosen based on the results of the optimisation test ran earlier. The timestep was set to 0.0025 and the input script modified accordingly for all ten (p,T) phase points before being submitted to LAMMPS.&lt;br /&gt;
&lt;br /&gt;
==== 1. Controlling Temperature ====&lt;br /&gt;
In general, temperature, T at a given time during the course of the simulation will be prone to fluctuations and will differ slightly from the intended temperature of the system, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;𝛕 (value specified in the input script). However, T can be easily controlled by multiplying each velocity term of each atom by a constant factor, γ whereby:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The kinetic energy of the system can be written as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T &#039;&#039;&#039;&#039;&#039;(Eq. 1)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;𝛕 &#039;&#039;&#039;&#039;&#039;(Eq. 2)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Dividing (Eq. 2) by (Eq. 1):&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)/( v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;) = 𝛕/T&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 𝛕/T, thus γ = √(𝛕/T)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, the value of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;γ can be determined and used to correct any deviations in T.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Sampling and Averaging ====&lt;br /&gt;
In the input script, there were lines entered as:&lt;br /&gt;
 fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
 run 100000&lt;br /&gt;
These lines were needed to measure key thermodynamics properties such as density, temperature and pressure respectively. Most importantly, the values 100, 1000 and 100000 play a vital role in directing how often these properties are averaged and how many measurements contribute to the final average. Each number is represented as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100 = Nevery&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1000 = Nrepeat&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100000 = Nfreq&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The three arguments above specify the timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a multiple of 100000. The average was over 1000 quantities, computed in the preceding portion of the simulation every 100 timesteps. Nfreq must be a multiple of Nevery and Nevery must be non-zero even if Nrepeat was 1. Also, the timesteps contributing to the average value cannot overlap, i.e. Nrepeat*Nevery cannot exceed Nfreq.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;, by referring to the log (.log) output file, the amount of time that has been simulated for this investigation was 50 s.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Equation of State ====&lt;br /&gt;
The density of the system obtained from the log files were plotted against temperature for both of pressures that were simulated, including error bars. Also included in the graphs was a curve for the expected densities as predicted by the ideal gas law, pV =NkT. &amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_5.jpg|&#039;&#039;&#039;Figure 5:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 3.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_6.jpg|&#039;&#039;&#039;Figure 6:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 4.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;It was found that the&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulated density was always lower than the values predicted by the ideal gas law for a given pressure. This was because for an ideal gas, there was no interactions between the atoms whereas the atoms in our simulation had been modeled using a forcefield of the Lennard-Jones potential. Moreover, the discrepancy between the observed and predicted values of density increased with pressure, especially at the lower temperatures where the deviation was larger.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== NVT Ensemble ===&lt;br /&gt;
&lt;br /&gt;
==== 1. Heat Capacity ====&lt;br /&gt;
In a particular system where temperature was fixed, thermodynamic properties such as total energy were likely to fluctuate from its constant average and these fluctuations gives rise to the heat capacity, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv&amp;lt;/span&amp;gt; where its value can be calculated using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv = δE/δT = N&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.Var(E)/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, it was important to note that the simulation carried out here was altered to NVT conditions (canonical ensemble). As with the previous simulation, ten phase points were required, but this time using five values of temperature (2.0, 2.2, 2.4, 2.6, 2.8) and two values of density (0.2, 0.8). A copy of the modified input script for NVT is attached below to highlight the changes made:&lt;br /&gt;
&lt;br /&gt;
https://goo.gl/5GnrfV&lt;br /&gt;
&lt;br /&gt;
==== 2. Results ====&lt;br /&gt;
Once data was collected from the log files (but without standard errors), the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv/V against average temperature was plotted on the same axes, where V was the volume of the simulation cell.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_7.jpg|&#039;&#039;&#039;Figure 7:&#039;&#039;&#039; A plot of heat capacity over volume as a function of average temperature&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the results obtained, this was not the trend that was expected. The data supposed to show a constant heat capacity for both densities, but instead heat capacity decreases when temperature was increased. Comparing both sets of data, for a system having a higher density, its heat capacity will in turn be raised.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Radial Distribution Function (RDF) ===&lt;br /&gt;
The radial pair distribution function or g(r) is &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;defined as the probability of locating the nearest neighbouring atom at a distance r from a reference atom. The visualising software VMD was used to calculate the RDF of three simulations under different states, that were the solid, liquid and vapour phases.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 1. Phase Transitions ====&lt;br /&gt;
In order to set up the various states, the values of d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ensity and temperature of the simulation were modified appropriately based on the phase transitions of the Lennard-Jones system. The following were the set of parameters determined for each state:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.002 was used to run all simulations in LAMMPS.&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_solid.JPG|&#039;&#039;&#039;Figure 8(a):&#039;&#039;&#039; View of solid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_liquid.JPG|&#039;&#039;&#039;Figure 8(b):&#039;&#039;&#039; View of liquid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_vapour.JPG|&#039;&#039;&#039;Figure 8(c):&#039;&#039;&#039; View of gas phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Qualitative Analysis of RDF ====&lt;br /&gt;
When each simulation was completed, its .trj file was inputted into VMD where the value of g(r) and &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ g(r) dr (or running integral) were evaluated. The graph of RDF against reduced distance were plotted on the same axes for all three states.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_8.jpg|&#039;&#039;&#039;Figure 9:&#039;&#039;&#039; Combined g(r) against reduced distance plot for the solid, liquid and vapour systems&lt;br /&gt;
&amp;lt;/gallery&amp;gt;In the s&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;olid RDF, the function showed a regular pattern of peaks with almost the similar intervals over a long range of distance. The peaks were discrete at approximately σ, √2 σ, √3 σ, and so on. There was a very high chance of finding an atom at the position of these peaks whilst the probability of locating an atom between the peaks was very low. This illustrated that solids had a uniform packing structure and had very little defect within the lattice. Moreover, the first three peaks corresponded to the first, second and third coordination shells.&lt;br /&gt;
&lt;br /&gt;
Thus the lattice spacing can be determined:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.4 = 2.85714&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√2.85714 = 1.41898&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;To calculate the coordination number, g(r) was integrated in spherical coordinates to the first minimum of the RDF. Hence, the coordination numbers for the solid were: first peak (12), second peak (4), and third peak (8).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the l&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iquid RDF, the first and sharpest peak occured close to σ and the subsequent peaks appeared at about intervals of σ, but smaller than the first peak. At longer distances of r, the value of g(r) remained unchanged at 1, showing that liquid particles were independent of one another. Thus, liquids were less closely packed compared to solids and had the ability to move dynamically, hence they do not possess a fixed structure. They were able to form multiple coordination spheres, but in most cases, there was only one coordination sphere present at a given time.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the v&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;apour RDF, the function only showed one obvious peak at about σ which then plateaued off at a value of g(r) = 1, the normal bulk density of the system. The regions that experienced the greatest intermolecular forces when g(r) &amp;gt; 1 were for 1 &amp;lt; σ &amp;lt; 2.5. From this result, it was concluded that gases tend to move around randomly in a sporadic motion (Brownian motion) and at most, they only have a single short-lived coordination sphere.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Diffusion Coefficient ===&lt;br /&gt;
In this experiment, the way in which atoms move around in the system (through translational motion) was of particular interest. This form of motion was governed by the diffusion coefficient, D or mass diffusivity, which can be measured using two main methods detailed below: &lt;br /&gt;
&lt;br /&gt;
==== 1. Mean Squared Displacement (MSD) ====&lt;br /&gt;
Since D was closely related to MSD, a simulation was ran (at specific density and temperature) for all three phases with an additional input command to calculate MSD and VACF (mentioned in next section). The set of parameters used to obtain each physical phase were identical those implemented during the RDF investigation:&lt;br /&gt;
&lt;br /&gt;
Timestep = 0.002&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once data was obtained from the &amp;quot;optional output-2&amp;quot; files, the total MSD (resultant MSD from individual Cartesian directions (x,y,z)) was plotted against timestep:&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_9.jpg|&#039;&#039;&#039;Figure 10(a):&#039;&#039;&#039; Total MSD as a function of timestep for the solid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_10.jpg|&#039;&#039;&#039;Figure 10(b):&#039;&#039;&#039; Total MSD as a function of timestep for the liquid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_11.jpg|&#039;&#039;&#039;Figure 10(c):&#039;&#039;&#039; Total MSD as a function of timestep for the gas phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The relationship between total MSD and timestep obtained for the three phases were as expected. Total MSD for solids initially fluctuated before becoming constant whereas for the liquid phase, its values increased linearly but gradually, and as for the vapour phase, total MSD increased linearly and rapidly.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since D = 1/6 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;δ&amp;lt;r&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;(t)&amp;gt; / δt, &amp;lt;/span&amp;gt;then &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/6 (gradient of graph of MSD vs timestep).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus using the gradient of the best-fit line, for:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/6 (2.3514 x 10&amp;lt;sup&amp;gt;-8&amp;lt;/sup&amp;gt;) = 3.919 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/6 (1.3140 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt;) = 2.190 x 10&amp;lt;sup&amp;gt;-4&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/6 (7.2313 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt;) = 1.205 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this, the d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iffusion coefficient was shown to have increased going from solids to gases. Moreover, it was noted that the diffusion coefficient for the solid phase was so small, it was negligible (zero).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. MSD: One Million Atoms ====&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_19.jpg|&#039;&#039;&#039;Figure 11(a):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_20.jpg|&#039;&#039;&#039;Figure 11(b):&#039;&#039;&#039; Total MSD plotted against timestep for the liquid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_21.jpg|&#039;&#039;&#039;Figure 11(c):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;For the same&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulation repeated using one million atoms, values of total MSD obtained were higher compared to that with fewer atoms (except for the solid phase where the total MSD was lowered). Moreover, total MSD for the liquid and vapour phases increased more linearly when using more atoms (and this was most evident for the vapour phase). Hence, the gradient of the best-fit line was used to evaluate the values of D as shown below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/6 (5.26956 x 10&amp;lt;sup&amp;gt;-8&amp;lt;/sup&amp;gt;) = 8.783 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/6 (1.04717 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt;) = 1.745 x 10&amp;lt;sup&amp;gt;-4&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/6 (3.57206 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt;) = 5.953 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Overall, the same trend was observed, with the addition that the diffusion coefficients for the liquid and gas systems were slightly lower than before.&lt;br /&gt;
&lt;br /&gt;
==== 3. Extension: Velocity Autocorrelation Function (VACF) ====&lt;br /&gt;
The other alternative way of calculating D was by using the velocity autocorrelation function. The same input script was used here (as in the previous MSD section) and the simulation was ran for the solid, liquid and vapour phases. All data was obtained from the &amp;quot;optional output-3&amp;quot; files.&lt;br /&gt;
&lt;br /&gt;
In relation to the theoretical concepts covered in the 1D harmonic oscillator, the &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;normalised velocity autocorrelation function, C(τ) was evaluated for this 1D harmonic system:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Given that C(τ) = &amp;lt; v(t).v(t+τ) &amp;gt; and x(t) = cos(ωt+ϕ),&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;VACF of a 1D harmonic oscillator, C(τ) = ∫ v(t).v(t+τ) dt&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, the normalised VACF, C(τ) = ∫ v(t).v(t+τ) dt / ∫ v(t)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; dt&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence to compare between the different oscillating systems, the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;C(τ) with ω=1/(2п) along with the VACFs from the solid and liquid simulations was plotted along the same axes, from x = 0 to 500.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_15.jpg|&#039;&#039;&#039;Figure 12:&#039;&#039;&#039; C(τ) with ω=1/(2п) and the VACFs of the solid and liquid phases as a function of timestep (x = 0 to 500)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;In the solid and liquid phases, where atoms are close to each other and of high density, strong interatomic forces were most evident. Atoms in these systems tend to adopt a position where there was a balance between the attractive and repulsive forces, thus they will not be easily displaced. As a result, these atoms will oscillate as part of their motion, vibrating between points of maxima and minima. Hence, this gave rise to a VACF function which showed a periodic oscillation from positive to negative values.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;For the case of solids, the magnitude of oscillation decayed over time due to forces acting to oppose these motion, thus the function closely resembled a damped oscillation that decreased exponentially. Whilst for liquids, the atoms behaved similarly but they were able to glide among themselves. The process of diffusion also drastically weakened any oscillatory motion the system possessed and the VACF function showed a very damp oscillation, with only a single minima point.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The minima in the VACFs in the solid and liquid system relates to the maximum change in the magnitude or direction (of the atoms in the system), thus altering their velocities, giving rise to a minimum value for the product of v(t=0) and v(t=τ).&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;On the other hand, the 1D harmonic oscillator model has a VACF function of constant amplitude (A=1) and period (T=40 s). Its magnitude of oscillation was greater than that of the solid and liquid systems, implying that no damping or perturbative forces had acted upon the system throughout its motion (and based on Newton’s Law of Motion the oscillation its motion will not change and continue to remain this way). Whereas, unlike the Lennard-Jones model describe earlier, atoms in the 1D harmonic oscillator do not interact with each other by attraction or repulsion and thus no energy was dissipated.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 4. The Trapezium Rule ====&lt;br /&gt;
Utilising the trapezium rule (TR) to approximately calculate the integral or area under the VACF graph, the values of D were estimated for each of the three physical phases.&lt;br /&gt;
&lt;br /&gt;
Given D = 1/3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ &amp;lt;v(0).v(τ)&amp;gt; dτ, then &amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/3 (area under the graph of C(τ) vs timestep).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus using the area under the graph obtained by the TR, for:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/3 (216.9089038) = 72.303 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/3 (277.865793) = 92.622 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/3 (10675.4021) = 3358.467 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The values of D above were as expected, with it increasing in magnitude from the solid to vapour phase. Going a step further, the running integrals for each case were also evaluated (once again using the TR) and plotted as a function of timestep as follows:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_16.jpg|&#039;&#039;&#039;Figure 13(a):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for the solid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_17.jpg|&#039;&#039;&#039;Figure 13(b):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for the liquid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_18.jpg|&#039;&#039;&#039;Figure 13(c):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for the gas phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The running integral for the solid and liquid phases were almost identical, having a rapid increase at the start and leveling off towards the end (due to atomic oscillations and small fluctuations in velocity). For gases on the other hand, its running integral increases gradually as a result of the exponential decay trend seen in its C(τ) against timestep plot. Thus, in statistical mechanics term, it can be concluded that the velocity has decorrelated with time showing the presence of weak forces becoming prominent in the vapour system.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 5. VACF: One Million Atoms ====&lt;br /&gt;
&lt;br /&gt;
The same procedures described above were applied f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or the simulation containing one million atoms, and thus for:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/3 (176.9191107) = 58.973 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/3 (151.586442) = 50.529 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/3 (4902.698696) = 1634.233 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As such, t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he values of diffusion coefficient increased from the solid to vapour phase as predicted, but was anomalous for the liquid phase (a decrease from the trend).&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_22.jpg|&#039;&#039;&#039;Figure 14(a):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for solids for 1 million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_25.jpg|&#039;&#039;&#039;Figure 14(b):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for liquids for 1 million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_26.jpg|&#039;&#039;&#039;Figure 14(c):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for gases for 1 million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;As with the simulation using fewer atoms, the running integral plots for one million atoms were consistent in its trend. One difference was that the final integral (or maximum height) for the solid and liquid phases were lower than before, indicating that the magnitude of oscillation of atoms in the system had decreased and there were smaller fluctuations.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Fill&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_25.jpg&amp;diff=654577</id>
		<title>File:Dw3015 25.jpg</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_25.jpg&amp;diff=654577"/>
		<updated>2017-12-21T00:06:29Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_26.jpg&amp;diff=654576</id>
		<title>File:Dw3015 26.jpg</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_26.jpg&amp;diff=654576"/>
		<updated>2017-12-21T00:06:21Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654575</id>
		<title>Rep:Mod:dw3015 y3c liqsim</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654575"/>
		<updated>2017-12-20T23:45:45Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: /* 5. VACF: One Million Atoms */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Year 3 Computational Labs=&lt;br /&gt;
&lt;br /&gt;
= Molecular Dynamics Simulations of Simple Liquids =&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Aims and Objectives ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
In order for the simulation to replicate a real system as accurately, a few criterion had been defined, namely the simulation model, initial test parameters, forcefield, final parameters and tools used.&lt;br /&gt;
&lt;br /&gt;
=== Velocity-Verlet Algorithm and Timestep ===&lt;br /&gt;
Using approximations, we assumed that atoms will behave classically and therefore the velocity-Verlet algorithm was applied into the simulation, where we&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; have defined the starting positions of the atoms, x&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0) and their velocities at the same time, v&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0). As an example, this algorithm was used in a simple harmonic oscillator: &amp;lt;/span&amp;gt;https://goo.gl/As44o7&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.1 was initially tested. Subsequently, the value of &amp;quot;ERROR&amp;quot; as function of time was investigated and was found that this relationship was given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;y = 0.000422x + 0.000073&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;R-squared value = 0.999977&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The function above remained constant although the value of timestep was varied. It was found that w&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;hen timestep was increased, this will add more cycles to the &amp;quot;ENERGY&amp;quot; and &amp;quot;ERROR&amp;quot; graphs but period remained constant. Amplitude of &amp;quot;ERROR&amp;quot; graph will increase over time leading to bigger magnitude in error. However, the function of maxima in the &amp;quot;ERROR&amp;quot; graph was unchanged. The &amp;quot;ENERGY&amp;quot; graph will also have higher amplitude, hence bigger change in total energy. Timestep must therefore not exceed 0.1990665 for change in total energy to remain below 1%.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The prove of concept is shown here: https://goo.gl/zC9YU9&lt;br /&gt;
&lt;br /&gt;
Moreover, the t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;otal energy of a physical system was measured and expected to remain constant, indicating that the system has completed equilibration and energy has been completely redistributed among the particles in a given system (through collisions) upon the start of the simulation.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Model ===&lt;br /&gt;
A simple particle in a box model was used for all of the simulations. Using LAMMPS, a cubic box of a given length containing a given amount of atoms of mass 1.0 was created. This will form the boundary for the simulations carried out.&lt;br /&gt;
&lt;br /&gt;
For atoms that move beyond this boundary, the periodic boundary conditions was able to correct the atoms&#039; coordinates by allowing its replica to enter from the opposite face.&lt;br /&gt;
&lt;br /&gt;
For instance, a&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;n atom at position (0.5, 0.5, 0.5) in a cubic simulation box which runs from (0, 0, 0) to (1.0, 1.0, 1.0), moving along a vector (0.7, 0.6, 0.2) in a single timestep, its final position is at (1.2, 1.1, 0.7). But after applying periodic boundary conditions, the atom position was corrected to (0.2, 0.1, 0.7).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To give an idea of the number of molecules simulated, the number of moles of 1 ml of water under standard conditions were estimated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of 1 ml water = ρV = 1 g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;n of 1ml water = m/M&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 0.05550843506 mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number of water molecules = nN&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 3.342796 x 10&amp;lt;sup&amp;gt;22&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a large and unsuitable number to simulate. A value of 10000 would be more reasonable, thus the volume of 10000 water molecules was calculated to give a better perspective:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For 10000 water molecules, n of water = n.o.m./N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 1.660539&lt;br /&gt;
x 10&amp;lt;sup&amp;gt;-20&amp;lt;/sup&amp;gt; mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of water = nM&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V of water = m/ρ = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; ml&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Forcefield ===&lt;br /&gt;
The Lennard-Jones potential, which fits well into the physic of the simulation, was utilised knowing that the force acting on the atoms depended on the potential they experienced. At longer distances however, this interaction will be so small that it can be negligible, so a cutoff point of 3.0&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ was put in place.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Lennard-Jones Potential, U = 4ε [(σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To understand the relationship better, the separation &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; at which the potential of zero was evaluated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;When U=0, (σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Let (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = y, thus y&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;-y = 0, y(y-1) = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore, y=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0, undefined; (y-1)=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;= 1, hence R=r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;=σ (F = repulsive force)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along with the separation at equilibrium and hence the well depth &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ϕ(r&amp;lt;sub&amp;gt;eq),&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;At equilibrium, F=0 (minimum), dU/dR = -48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&lt;br /&gt;
+ 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For turning point, dU/dR = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;),&lt;br /&gt;
(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)/(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;, R&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;=2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;,&lt;br /&gt;
hence R=(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)σ, R=r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;=1.12246σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore well depth, ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;)&lt;br /&gt;
- (σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;)]&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(1/4)-(1/2)], ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = -ε (minimum)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Moreover, the values of integrals of 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, 2.5 σ and 3 σ to infinity were calculated respectively:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;∫ϕ(r)dr = -1/3εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;), and when σ=ε=1,&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.020671&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2.5 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0068127&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0027416&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
The quantities used in the simulation were treated and divided with a scaling factor, such as &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ or &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ε, to ensure that our results were more manageable. For example, for argon with Lennard-Jones (LJ) parameters σ = 0.34nm and ε/&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; = 120K, its LJ cutoff r* = 3.2 in real units was:&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r=r*σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r = 3.2(0.34 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt;) = 1.088 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; m&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, its well depth in real units was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = ε = k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T x N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ε = (1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(120 K)(6.02214 x 10&amp;lt;sup&amp;gt;23 &amp;lt;/sup&amp;gt;&#039;&#039;mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; = 0.997735 kJ mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, the reduced temperature T* = 1.5 can be calculated in real units:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = T*ε/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = 1.5(997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)/(1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(6.02214 &#039;&#039;x 10&amp;lt;sup&amp;gt;23&amp;lt;/sup&amp;gt; mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 180 K&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lattice Structure ===&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Giving atoms random starting coordinates can be problematic as this may generate two atoms close to each other in our simulation, where if the separation between them was below σ, this can cause a strong (or even infinite) repulsion pushing the atoms apart. Therefore, the atoms were initially created in a 3D simple cubic (sc) lattice.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given that the number density (N/V) of lattice points was 0.8, the lattice spacing was found to be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number density, ρ=N/V, V=N/ρ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V = 1/0.8 = 1.25&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;L&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;attice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√1.25 = 1.07722&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or a face-centred cubic (fcc) lattice with number density 1.2, its lattice spacing was calculated:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.2 = 3.33333&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√3.33333 = 1.49380&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Furthermore, a simulation sc box of width 10 was created as a control. Within this region, there were &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;4000 atoms present (4 atoms in each unit cell where there are 10x10x10 = 1000 unit cells). Following this, the mass and pair coefficient of the each type of atom were assigned as below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Definitions for each line in the command code are provided as such:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Assigning mass of value 1.0 to all type 1 atoms&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Specifying a standard 12/6 Lennard-Jones potential with no Coulomb between atom pairs with global LJ cutoff set to distance r*=3.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Setting the pairwise forcefield coefficients for the&lt;br /&gt;
symmetric I,J interaction to the same value of 1.0 for all (given by asterisk) type 1 with type 1 atom pairs&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Timestep Optimisation ===&lt;br /&gt;
The code below was written in the input script with the timestep taking a value of 0.001:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### SPECIFY TIMESTEP ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable timestep equal 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable n_steps equal floor(100/${timestep})&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep ${timestep}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### RUN SIMULATION ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run ${n_steps}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: T&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he variable command is a loop which was assigned a value that is later evaluated in the input script, where in this case timestep was equal to 0.001. This is useful because the defined value can be referenced in subsequent variables, therefore making it reusable and eliminating the need to repeatedly input the value 0.001. For instance, the defined timestep was used in the math function &amp;quot;floor&amp;quot; assigned to variable n_step and subsequently the value n_step is used in the &amp;quot;run&amp;quot; command. Hence, this coding method will be more pragmatic than just writing the script simply as:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choosing the correct timestep was crucial for the subsequent simulations which were undertaken. To determine the optimum timestep, simulations using different timesteps (0.001, 0.0025, 0.0075, 0.01 and 0.015) were tested. To illustrate that the simulation had equilibrated, the graphs of total e&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;nergy, temperature and pressure against time were plotted for the 0.001 timestep experiment:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_1.jpg|&#039;&#039;&#039;Figure 1:&#039;&#039;&#039; Total energy against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_2.jpg|&#039;&#039;&#039;Figure 2:&#039;&#039;&#039; Temperature against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_3.jpg|&#039;&#039;&#039;Figure 3:&#039;&#039;&#039; Pressure against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the plots above, the simulation did achieve equilibrium and the values of total energy, temperature and pressure had converged to a constant average (within a certain degree of error) at approximately 0.5 s into the simulation.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_4.jpg|&#039;&#039;&#039;Figure 4:&#039;&#039;&#039; Single plot of total energy against time for all five timesteps.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Among the five timesteps, 0.001 was most likely to give acceptable results. The data obtained was of high resolution, with the smallest interval between data points. The simulation was said to give the best representation of a physical reality being investigated. On the other hand, a timestep of 0.015 was the least suitable choice because the total energy does not converge. The energy initially stabilised but subsequently diverged (increased) after 20 s and thus system has not fully equilibrated. To give the best balance between resolution and speed (time taken to complete a simulation), timestep within the acceptable range of 0.001 to 0.003 were used. Any timestep above 0.003 would not properly allow for total energy to converge and gives a large gap between data points.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== LAMMPS Toolkit ===&lt;br /&gt;
The LAMMPS Molecular Dynamics Simulator is an extremely useful simulation software containing a vast array of tools that was further utilised throughout this experiment. Among them were the &amp;quot;variable&amp;quot; and &amp;quot;thermo_style&amp;quot; commands used in changing ensembles and measuring thermodynamics properties respectively, which were crucial in obtaining key data. Towards the end of the investigation, the usage of the radial distribution function (RDF), mean squared displacement (MSD) and velocity autocorrelation function (VACF) were also explored and applied into many of the simulations conducted.&lt;br /&gt;
&lt;br /&gt;
=== Visual Molecular Dynamics (VMD) ===&lt;br /&gt;
To help visualise some of the simulations, LAMMPS was also supported by the VMD 3D graphics programme that was able to read trajectory (.trj) files in order to display our simulation through multiple modes and perspectives. This software was also used to conduct further calculations such as evaluating running integrals for the RDF.&lt;br /&gt;
&lt;br /&gt;
== Results and Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== NpT Ensemble ===&lt;br /&gt;
For this section of the investigation, the simulation has been modified so that it can run under NpT conditions (called the isobaric-isothermal ensemble in statistical mechanics) to understand what changes to thermodynamic properties occur at this particular experimental condition. The data collected was used to plot an equation of state at atmospheric pressure for the case of our model fluid.&lt;br /&gt;
&lt;br /&gt;
Five values of temperature (2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;.0, 2.5, 3.0, 3.5, 4.0&amp;lt;/span&amp;gt;) and two values of pressure (3.0, 4.0) given in Lennard-Jones units were chosen based on the results of the optimisation test ran earlier. The timestep was set to 0.0025 and the input script modified accordingly for all ten (p,T) phase points before being submitted to LAMMPS.&lt;br /&gt;
&lt;br /&gt;
==== 1. Controlling Temperature ====&lt;br /&gt;
In general, temperature, T at a given time during the course of the simulation will be prone to fluctuations and will differ slightly from the intended temperature of the system, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;𝛕 (value specified in the input script). However, T can be easily controlled by multiplying each velocity term of each atom by a constant factor, γ whereby:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The kinetic energy of the system can be written as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T &#039;&#039;&#039;&#039;&#039;(Eq. 1)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;𝛕 &#039;&#039;&#039;&#039;&#039;(Eq. 2)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Dividing (Eq. 2) by (Eq. 1):&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)/( v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;) = 𝛕/T&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 𝛕/T, thus γ = √(𝛕/T)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, the value of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;γ can be determined and used to correct any deviations in T.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Sampling and Averaging ====&lt;br /&gt;
In the input script, there were lines entered as:&lt;br /&gt;
 fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
 run 100000&lt;br /&gt;
These lines were needed to measure key thermodynamics properties such as density, temperature and pressure respectively. Most importantly, the values 100, 1000 and 100000 play a vital role in directing how often these properties are averaged and how many measurements contribute to the final average. Each number is represented as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100 = Nevery&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1000 = Nrepeat&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100000 = Nfreq&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The three arguments above specify the timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a multiple of 100000. The average was over 1000 quantities, computed in the preceding portion of the simulation every 100 timesteps. Nfreq must be a multiple of Nevery and Nevery must be non-zero even if Nrepeat was 1. Also, the timesteps contributing to the average value cannot overlap, i.e. Nrepeat*Nevery cannot exceed Nfreq.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;, by referring to the log (.log) output file, the amount of time that has been simulated for this investigation was 50 s.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Equation of State ====&lt;br /&gt;
The density of the system obtained from the log files were plotted against temperature for both of pressures that were simulated, including error bars. Also included in the graphs was a curve for the expected densities as predicted by the ideal gas law, pV =NkT. &amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_5.jpg|&#039;&#039;&#039;Figure 5:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 3.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_6.jpg|&#039;&#039;&#039;Figure 6:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 4.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;It was found that the&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulated density was always lower than the values predicted by the ideal gas law for a given pressure. This was because for an ideal gas, there was no interactions between the atoms whereas the atoms in our simulation had been modeled using a forcefield of the Lennard-Jones potential. Moreover, the discrepancy between the observed and predicted values of density increased with pressure, especially at the lower temperatures where the deviation was larger.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== NVT Ensemble ===&lt;br /&gt;
&lt;br /&gt;
==== 1. Heat Capacity ====&lt;br /&gt;
In a particular system where temperature was fixed, thermodynamic properties such as total energy were likely to fluctuate from its constant average and these fluctuations gives rise to the heat capacity, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv&amp;lt;/span&amp;gt; where its value can be calculated using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv = δE/δT = N&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.Var(E)/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, it was important to note that the simulation carried out here was altered to NVT conditions (canonical ensemble). As with the previous simulation, ten phase points were required, but this time using five values of temperature (2.0, 2.2, 2.4, 2.6, 2.8) and two values of density (0.2, 0.8). A copy of the modified input script for NVT is attached below to highlight the changes made:&lt;br /&gt;
&lt;br /&gt;
https://goo.gl/5GnrfV&lt;br /&gt;
&lt;br /&gt;
==== 2. Results ====&lt;br /&gt;
Once data was collected from the log files (but without standard errors), the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv/V against average temperature was plotted on the same axes, where V was the volume of the simulation cell.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_7.jpg|&#039;&#039;&#039;Figure 7:&#039;&#039;&#039; A plot of heat capacity over volume as a function of average temperature&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the results obtained, this was not the trend that was expected. The data supposed to show a constant heat capacity for both densities, but instead heat capacity decreases when temperature was increased. Comparing both sets of data, for a system having a higher density, its heat capacity will in turn be raised.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Radial Distribution Function (RDF) ===&lt;br /&gt;
The radial pair distribution function or g(r) is &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;defined as the probability of locating the nearest neighbouring atom at a distance r from a reference atom. The visualising software VMD was used to calculate the RDF of three simulations under different states, that were the solid, liquid and vapour phases.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 1. Phase Transitions ====&lt;br /&gt;
In order to set up the various states, the values of d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ensity and temperature of the simulation were modified appropriately based on the phase transitions of the Lennard-Jones system. The following were the set of parameters determined for each state:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.002 was used to run all simulations in LAMMPS.&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_solid.JPG|&#039;&#039;&#039;Figure 8(a):&#039;&#039;&#039; View of solid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_liquid.JPG|&#039;&#039;&#039;Figure 8(b):&#039;&#039;&#039; View of liquid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_vapour.JPG|&#039;&#039;&#039;Figure 8(c):&#039;&#039;&#039; View of gas phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Qualitative Analysis of RDF ====&lt;br /&gt;
When each simulation was completed, its .trj file was inputted into VMD where the value of g(r) and &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ g(r) dr (or running integral) were evaluated. The graph of RDF against reduced distance were plotted on the same axes for all three states.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_8.jpg|&#039;&#039;&#039;Figure 9:&#039;&#039;&#039; Combined g(r) against reduced distance plot for the solid, liquid and vapour systems&lt;br /&gt;
&amp;lt;/gallery&amp;gt;In the s&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;olid RDF, the function showed a regular pattern of peaks with almost the similar intervals over a long range of distance. The peaks were discrete at approximately σ, √2 σ, √3 σ, and so on. There was a very high chance of finding an atom at the position of these peaks whilst the probability of locating an atom between the peaks was very low. This illustrated that solids had a uniform packing structure and had very little defect within the lattice. Moreover, the first three peaks corresponded to the first, second and third coordination shells.&lt;br /&gt;
&lt;br /&gt;
Thus the lattice spacing can be determined:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.4 = 2.85714&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√2.85714 = 1.41898&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;To calculate the coordination number, g(r) was integrated in spherical coordinates to the first minimum of the RDF. Hence, the coordination numbers for the solid were: first peak (12), second peak (4), and third peak (8).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the l&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iquid RDF, the first and sharpest peak occured close to σ and the subsequent peaks appeared at about intervals of σ, but smaller than the first peak. At longer distances of r, the value of g(r) remained unchanged at 1, showing that liquid particles were independent of one another. Thus, liquids were less closely packed compared to solids and had the ability to move dynamically, hence they do not possess a fixed structure. They were able to form multiple coordination spheres, but in most cases, there was only one coordination sphere present at a given time.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the v&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;apour RDF, the function only showed one obvious peak at about σ which then plateaued off at a value of g(r) = 1, the normal bulk density of the system. The regions that experienced the greatest intermolecular forces when g(r) &amp;gt; 1 were for 1 &amp;lt; σ &amp;lt; 2.5. From this result, it was concluded that gases tend to move around randomly in a sporadic motion (Brownian motion) and at most, they only have a single short-lived coordination sphere.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Diffusion Coefficient ===&lt;br /&gt;
In this experiment, the way in which atoms move around in the system (through translational motion) was of particular interest. This form of motion was governed by the diffusion coefficient, D or mass diffusivity, which can be measured using two main methods detailed below: &lt;br /&gt;
&lt;br /&gt;
==== 1. Mean Squared Displacement (MSD) ====&lt;br /&gt;
Since D was closely related to MSD, a simulation was ran (at specific density and temperature) for all three phases with an additional input command to calculate MSD and VACF (mentioned in next section). The set of parameters used to obtain each physical phase were identical those implemented during the RDF investigation:&lt;br /&gt;
&lt;br /&gt;
Timestep = 0.002&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once data was obtained from the &amp;quot;optional output-2&amp;quot; files, the total MSD (resultant MSD from individual Cartesian directions (x,y,z)) was plotted against timestep:&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_9.jpg|&#039;&#039;&#039;Figure 10(a):&#039;&#039;&#039; Total MSD as a function of timestep for the solid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_10.jpg|&#039;&#039;&#039;Figure 10(b):&#039;&#039;&#039; Total MSD as a function of timestep for the liquid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_11.jpg|&#039;&#039;&#039;Figure 10(c):&#039;&#039;&#039; Total MSD as a function of timestep for the gas phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The relationship between total MSD and timestep obtained for the three phases were as expected. Total MSD for solids initially fluctuated before becoming constant whereas for the liquid phase, its values increased linearly but gradually, and as for the vapour phase, total MSD increased linearly and rapidly.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since D = 1/6 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;δ&amp;lt;r&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;(t)&amp;gt; / δt, &amp;lt;/span&amp;gt;then &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/6 (gradient of graph of MSD vs timestep).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus using the gradient of the best-fit line, for:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/6 (2.3514 x 10&amp;lt;sup&amp;gt;-8&amp;lt;/sup&amp;gt;) = 3.919 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/6 (1.3140 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt;) = 2.190 x 10&amp;lt;sup&amp;gt;-4&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/6 (7.2313 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt;) = 1.205 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this, the d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iffusion coefficient was shown to have increased going from solids to gases. Moreover, it was noted that the diffusion coefficient for the solid phase was so small, it was negligible (zero).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. MSD: One Million Atoms ====&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_19.jpg|&#039;&#039;&#039;Figure 11(a):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_20.jpg|&#039;&#039;&#039;Figure 11(b):&#039;&#039;&#039; Total MSD plotted against timestep for the liquid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_21.jpg|&#039;&#039;&#039;Figure 11(c):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;For the same&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulation repeated using one million atoms, values of total MSD obtained were higher compared to that with fewer atoms (except for the solid phase where the total MSD was lowered). Moreover, total MSD for the liquid and vapour phases increased more linearly when using more atoms (and this was most evident for the vapour phase). Hence, the gradient of the best-fit line was used to evaluate the values of D as shown below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/6 (5.26956 x 10&amp;lt;sup&amp;gt;-8&amp;lt;/sup&amp;gt;) = 8.783 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/6 (1.04717 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt;) = 1.745 x 10&amp;lt;sup&amp;gt;-4&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/6 (3.57206 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt;) = 5.953 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Overall, the same trend was observed, with the addition that the diffusion coefficients for the liquid and gas systems were slightly lower than before.&lt;br /&gt;
&lt;br /&gt;
==== 3. Extension: Velocity Autocorrelation Function (VACF) ====&lt;br /&gt;
The other alternative way of calculating D was by using the velocity autocorrelation function. The same input script was used here (as in the previous MSD section) and the simulation was ran for the solid, liquid and vapour phases. All data was obtained from the &amp;quot;optional output-3&amp;quot; files.&lt;br /&gt;
&lt;br /&gt;
In relation to the theoretical concepts covered in the 1D harmonic oscillator, the &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;normalised velocity autocorrelation function, C(τ) was evaluated for this 1D harmonic system:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Given that C(τ) = &amp;lt; v(t).v(t+τ) &amp;gt; and x(t) = cos(ωt+ϕ),&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;VACF of a 1D harmonic oscillator, C(τ) = ∫ v(t).v(t+τ) dt&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, the normalised VACF, C(τ) = ∫ v(t).v(t+τ) dt / ∫ v(t)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; dt&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence to compare between the different oscillating systems, the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;C(τ) with ω=1/(2п) along with the VACFs from the solid and liquid simulations was plotted along the same axes, from x = 0 to 500.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_15.jpg|&#039;&#039;&#039;Figure 12:&#039;&#039;&#039; C(τ) with ω=1/(2п) and the VACFs of the solid and liquid phases as a function of timestep (x = 0 to 500)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;In the solid and liquid phases, where atoms are close to each other and of high density, strong interatomic forces were most evident. Atoms in these systems tend to adopt a position where there was a balance between the attractive and repulsive forces, thus they will not be easily displaced. As a result, these atoms will oscillate as part of their motion, vibrating between points of maxima and minima. Hence, this gave rise to a VACF function which showed a periodic oscillation from positive to negative values.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;For the case of solids, the magnitude of oscillation decayed over time due to forces acting to oppose these motion, thus the function closely resembled a damped oscillation that decreased exponentially. Whilst for liquids, the atoms behaved similarly but they were able to glide among themselves. The process of diffusion also drastically weakened any oscillatory motion the system possessed and the VACF function showed a very damp oscillation, with only a single minima point.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The minima in the VACFs in the solid and liquid system relates to the maximum change in the magnitude or direction (of the atoms in the system), thus altering their velocities, giving rise to a minimum value for the product of v(t=0) and v(t=τ).&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;On the other hand, the 1D harmonic oscillator model has a VACF function of constant amplitude (A=1) and period (T=40 s). Its magnitude of oscillation was greater than that of the solid and liquid systems, implying that no damping or perturbative forces had acted upon the system throughout its motion (and based on Newton’s Law of Motion the oscillation its motion will not change and continue to remain this way). Whereas, unlike the Lennard-Jones model describe earlier, atoms in the 1D harmonic oscillator do not interact with each other by attraction or repulsion and thus no energy was dissipated.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 4. The Trapezium Rule ====&lt;br /&gt;
Utilising the trapezium rule (TR) to approximately calculate the integral or area under the VACF graph, the values of D were estimated for each of the three physical phases.&lt;br /&gt;
&lt;br /&gt;
Given D = 1/3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ &amp;lt;v(0).v(τ)&amp;gt; dτ, then &amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/3 (area under the graph of C(τ) vs timestep).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus using the area under the graph obtained by the TR, for:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/3 (216.9089038) = 72.303 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/3 (277.865793) = 92.622 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/3 (10675.4021) = 3358.467 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The values of D above were as expected, with it increasing in magnitude from the solid to vapour phase. Going a step further, the running integrals for each case were also evaluated (once again using the TR) and plotted as a function of timestep as follows:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_16.jpg|&#039;&#039;&#039;Figure 13(a):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for the solid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_17.jpg|&#039;&#039;&#039;Figure 13(b):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for the liquid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_18.jpg|&#039;&#039;&#039;Figure 13(c):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for the gas phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 5. VACF: One Million Atoms ====&lt;br /&gt;
&lt;br /&gt;
The same procedures described above were applied f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or the simulation containing one million atoms, and thus for:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/3 (176.9191107) = 58.973 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/3 (151.586442) = 50.529 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/3 (4902.698696) = 1634.233 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As such, t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he values of diffusion coefficient increased from the solid to vapour phase as predicted, but was anomalous for the liquid phase (a decrease from the trend).&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_22.jpg|&#039;&#039;&#039;Figure 14(a):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for solids for 1 million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_23.jpg|&#039;&#039;&#039;Figure 14(b):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for liquids for 1 million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_24.jpg|&#039;&#039;&#039;Figure 14(c):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for gases for 1 million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Fill&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_24.jpg&amp;diff=654574</id>
		<title>File:Dw3015 24.jpg</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_24.jpg&amp;diff=654574"/>
		<updated>2017-12-20T23:42:14Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_23.jpg&amp;diff=654573</id>
		<title>File:Dw3015 23.jpg</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_23.jpg&amp;diff=654573"/>
		<updated>2017-12-20T23:42:05Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_22.jpg&amp;diff=654572</id>
		<title>File:Dw3015 22.jpg</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_22.jpg&amp;diff=654572"/>
		<updated>2017-12-20T23:41:57Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654571</id>
		<title>Rep:Mod:dw3015 y3c liqsim</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654571"/>
		<updated>2017-12-20T23:34:11Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: /* 5. VACF: One Million Atoms */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Year 3 Computational Labs=&lt;br /&gt;
&lt;br /&gt;
= Molecular Dynamics Simulations of Simple Liquids =&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Aims and Objectives ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
In order for the simulation to replicate a real system as accurately, a few criterion had been defined, namely the simulation model, initial test parameters, forcefield, final parameters and tools used.&lt;br /&gt;
&lt;br /&gt;
=== Velocity-Verlet Algorithm and Timestep ===&lt;br /&gt;
Using approximations, we assumed that atoms will behave classically and therefore the velocity-Verlet algorithm was applied into the simulation, where we&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; have defined the starting positions of the atoms, x&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0) and their velocities at the same time, v&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0). As an example, this algorithm was used in a simple harmonic oscillator: &amp;lt;/span&amp;gt;https://goo.gl/As44o7&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.1 was initially tested. Subsequently, the value of &amp;quot;ERROR&amp;quot; as function of time was investigated and was found that this relationship was given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;y = 0.000422x + 0.000073&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;R-squared value = 0.999977&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The function above remained constant although the value of timestep was varied. It was found that w&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;hen timestep was increased, this will add more cycles to the &amp;quot;ENERGY&amp;quot; and &amp;quot;ERROR&amp;quot; graphs but period remained constant. Amplitude of &amp;quot;ERROR&amp;quot; graph will increase over time leading to bigger magnitude in error. However, the function of maxima in the &amp;quot;ERROR&amp;quot; graph was unchanged. The &amp;quot;ENERGY&amp;quot; graph will also have higher amplitude, hence bigger change in total energy. Timestep must therefore not exceed 0.1990665 for change in total energy to remain below 1%.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The prove of concept is shown here: https://goo.gl/zC9YU9&lt;br /&gt;
&lt;br /&gt;
Moreover, the t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;otal energy of a physical system was measured and expected to remain constant, indicating that the system has completed equilibration and energy has been completely redistributed among the particles in a given system (through collisions) upon the start of the simulation.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Model ===&lt;br /&gt;
A simple particle in a box model was used for all of the simulations. Using LAMMPS, a cubic box of a given length containing a given amount of atoms of mass 1.0 was created. This will form the boundary for the simulations carried out.&lt;br /&gt;
&lt;br /&gt;
For atoms that move beyond this boundary, the periodic boundary conditions was able to correct the atoms&#039; coordinates by allowing its replica to enter from the opposite face.&lt;br /&gt;
&lt;br /&gt;
For instance, a&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;n atom at position (0.5, 0.5, 0.5) in a cubic simulation box which runs from (0, 0, 0) to (1.0, 1.0, 1.0), moving along a vector (0.7, 0.6, 0.2) in a single timestep, its final position is at (1.2, 1.1, 0.7). But after applying periodic boundary conditions, the atom position was corrected to (0.2, 0.1, 0.7).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To give an idea of the number of molecules simulated, the number of moles of 1 ml of water under standard conditions were estimated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of 1 ml water = ρV = 1 g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;n of 1ml water = m/M&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 0.05550843506 mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number of water molecules = nN&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 3.342796 x 10&amp;lt;sup&amp;gt;22&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a large and unsuitable number to simulate. A value of 10000 would be more reasonable, thus the volume of 10000 water molecules was calculated to give a better perspective:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For 10000 water molecules, n of water = n.o.m./N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 1.660539&lt;br /&gt;
x 10&amp;lt;sup&amp;gt;-20&amp;lt;/sup&amp;gt; mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of water = nM&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V of water = m/ρ = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; ml&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Forcefield ===&lt;br /&gt;
The Lennard-Jones potential, which fits well into the physic of the simulation, was utilised knowing that the force acting on the atoms depended on the potential they experienced. At longer distances however, this interaction will be so small that it can be negligible, so a cutoff point of 3.0&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ was put in place.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Lennard-Jones Potential, U = 4ε [(σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To understand the relationship better, the separation &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; at which the potential of zero was evaluated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;When U=0, (σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Let (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = y, thus y&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;-y = 0, y(y-1) = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore, y=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0, undefined; (y-1)=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;= 1, hence R=r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;=σ (F = repulsive force)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along with the separation at equilibrium and hence the well depth &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ϕ(r&amp;lt;sub&amp;gt;eq),&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;At equilibrium, F=0 (minimum), dU/dR = -48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&lt;br /&gt;
+ 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For turning point, dU/dR = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;),&lt;br /&gt;
(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)/(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;, R&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;=2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;,&lt;br /&gt;
hence R=(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)σ, R=r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;=1.12246σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore well depth, ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;)&lt;br /&gt;
- (σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;)]&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(1/4)-(1/2)], ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = -ε (minimum)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Moreover, the values of integrals of 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, 2.5 σ and 3 σ to infinity were calculated respectively:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;∫ϕ(r)dr = -1/3εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;), and when σ=ε=1,&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.020671&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2.5 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0068127&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0027416&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
The quantities used in the simulation were treated and divided with a scaling factor, such as &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ or &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ε, to ensure that our results were more manageable. For example, for argon with Lennard-Jones (LJ) parameters σ = 0.34nm and ε/&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; = 120K, its LJ cutoff r* = 3.2 in real units was:&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r=r*σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r = 3.2(0.34 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt;) = 1.088 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; m&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, its well depth in real units was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = ε = k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T x N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ε = (1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(120 K)(6.02214 x 10&amp;lt;sup&amp;gt;23 &amp;lt;/sup&amp;gt;&#039;&#039;mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; = 0.997735 kJ mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, the reduced temperature T* = 1.5 can be calculated in real units:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = T*ε/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = 1.5(997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)/(1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(6.02214 &#039;&#039;x 10&amp;lt;sup&amp;gt;23&amp;lt;/sup&amp;gt; mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 180 K&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lattice Structure ===&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Giving atoms random starting coordinates can be problematic as this may generate two atoms close to each other in our simulation, where if the separation between them was below σ, this can cause a strong (or even infinite) repulsion pushing the atoms apart. Therefore, the atoms were initially created in a 3D simple cubic (sc) lattice.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given that the number density (N/V) of lattice points was 0.8, the lattice spacing was found to be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number density, ρ=N/V, V=N/ρ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V = 1/0.8 = 1.25&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;L&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;attice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√1.25 = 1.07722&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or a face-centred cubic (fcc) lattice with number density 1.2, its lattice spacing was calculated:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.2 = 3.33333&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√3.33333 = 1.49380&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Furthermore, a simulation sc box of width 10 was created as a control. Within this region, there were &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;4000 atoms present (4 atoms in each unit cell where there are 10x10x10 = 1000 unit cells). Following this, the mass and pair coefficient of the each type of atom were assigned as below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Definitions for each line in the command code are provided as such:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Assigning mass of value 1.0 to all type 1 atoms&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Specifying a standard 12/6 Lennard-Jones potential with no Coulomb between atom pairs with global LJ cutoff set to distance r*=3.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Setting the pairwise forcefield coefficients for the&lt;br /&gt;
symmetric I,J interaction to the same value of 1.0 for all (given by asterisk) type 1 with type 1 atom pairs&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Timestep Optimisation ===&lt;br /&gt;
The code below was written in the input script with the timestep taking a value of 0.001:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### SPECIFY TIMESTEP ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable timestep equal 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable n_steps equal floor(100/${timestep})&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep ${timestep}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### RUN SIMULATION ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run ${n_steps}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: T&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he variable command is a loop which was assigned a value that is later evaluated in the input script, where in this case timestep was equal to 0.001. This is useful because the defined value can be referenced in subsequent variables, therefore making it reusable and eliminating the need to repeatedly input the value 0.001. For instance, the defined timestep was used in the math function &amp;quot;floor&amp;quot; assigned to variable n_step and subsequently the value n_step is used in the &amp;quot;run&amp;quot; command. Hence, this coding method will be more pragmatic than just writing the script simply as:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choosing the correct timestep was crucial for the subsequent simulations which were undertaken. To determine the optimum timestep, simulations using different timesteps (0.001, 0.0025, 0.0075, 0.01 and 0.015) were tested. To illustrate that the simulation had equilibrated, the graphs of total e&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;nergy, temperature and pressure against time were plotted for the 0.001 timestep experiment:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_1.jpg|&#039;&#039;&#039;Figure 1:&#039;&#039;&#039; Total energy against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_2.jpg|&#039;&#039;&#039;Figure 2:&#039;&#039;&#039; Temperature against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_3.jpg|&#039;&#039;&#039;Figure 3:&#039;&#039;&#039; Pressure against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the plots above, the simulation did achieve equilibrium and the values of total energy, temperature and pressure had converged to a constant average (within a certain degree of error) at approximately 0.5 s into the simulation.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_4.jpg|&#039;&#039;&#039;Figure 4:&#039;&#039;&#039; Single plot of total energy against time for all five timesteps.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Among the five timesteps, 0.001 was most likely to give acceptable results. The data obtained was of high resolution, with the smallest interval between data points. The simulation was said to give the best representation of a physical reality being investigated. On the other hand, a timestep of 0.015 was the least suitable choice because the total energy does not converge. The energy initially stabilised but subsequently diverged (increased) after 20 s and thus system has not fully equilibrated. To give the best balance between resolution and speed (time taken to complete a simulation), timestep within the acceptable range of 0.001 to 0.003 were used. Any timestep above 0.003 would not properly allow for total energy to converge and gives a large gap between data points.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== LAMMPS Toolkit ===&lt;br /&gt;
The LAMMPS Molecular Dynamics Simulator is an extremely useful simulation software containing a vast array of tools that was further utilised throughout this experiment. Among them were the &amp;quot;variable&amp;quot; and &amp;quot;thermo_style&amp;quot; commands used in changing ensembles and measuring thermodynamics properties respectively, which were crucial in obtaining key data. Towards the end of the investigation, the usage of the radial distribution function (RDF), mean squared displacement (MSD) and velocity autocorrelation function (VACF) were also explored and applied into many of the simulations conducted.&lt;br /&gt;
&lt;br /&gt;
=== Visual Molecular Dynamics (VMD) ===&lt;br /&gt;
To help visualise some of the simulations, LAMMPS was also supported by the VMD 3D graphics programme that was able to read trajectory (.trj) files in order to display our simulation through multiple modes and perspectives. This software was also used to conduct further calculations such as evaluating running integrals for the RDF.&lt;br /&gt;
&lt;br /&gt;
== Results and Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== NpT Ensemble ===&lt;br /&gt;
For this section of the investigation, the simulation has been modified so that it can run under NpT conditions (called the isobaric-isothermal ensemble in statistical mechanics) to understand what changes to thermodynamic properties occur at this particular experimental condition. The data collected was used to plot an equation of state at atmospheric pressure for the case of our model fluid.&lt;br /&gt;
&lt;br /&gt;
Five values of temperature (2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;.0, 2.5, 3.0, 3.5, 4.0&amp;lt;/span&amp;gt;) and two values of pressure (3.0, 4.0) given in Lennard-Jones units were chosen based on the results of the optimisation test ran earlier. The timestep was set to 0.0025 and the input script modified accordingly for all ten (p,T) phase points before being submitted to LAMMPS.&lt;br /&gt;
&lt;br /&gt;
==== 1. Controlling Temperature ====&lt;br /&gt;
In general, temperature, T at a given time during the course of the simulation will be prone to fluctuations and will differ slightly from the intended temperature of the system, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;𝛕 (value specified in the input script). However, T can be easily controlled by multiplying each velocity term of each atom by a constant factor, γ whereby:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The kinetic energy of the system can be written as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T &#039;&#039;&#039;&#039;&#039;(Eq. 1)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;𝛕 &#039;&#039;&#039;&#039;&#039;(Eq. 2)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Dividing (Eq. 2) by (Eq. 1):&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)/( v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;) = 𝛕/T&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 𝛕/T, thus γ = √(𝛕/T)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, the value of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;γ can be determined and used to correct any deviations in T.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Sampling and Averaging ====&lt;br /&gt;
In the input script, there were lines entered as:&lt;br /&gt;
 fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
 run 100000&lt;br /&gt;
These lines were needed to measure key thermodynamics properties such as density, temperature and pressure respectively. Most importantly, the values 100, 1000 and 100000 play a vital role in directing how often these properties are averaged and how many measurements contribute to the final average. Each number is represented as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100 = Nevery&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1000 = Nrepeat&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100000 = Nfreq&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The three arguments above specify the timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a multiple of 100000. The average was over 1000 quantities, computed in the preceding portion of the simulation every 100 timesteps. Nfreq must be a multiple of Nevery and Nevery must be non-zero even if Nrepeat was 1. Also, the timesteps contributing to the average value cannot overlap, i.e. Nrepeat*Nevery cannot exceed Nfreq.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;, by referring to the log (.log) output file, the amount of time that has been simulated for this investigation was 50 s.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Equation of State ====&lt;br /&gt;
The density of the system obtained from the log files were plotted against temperature for both of pressures that were simulated, including error bars. Also included in the graphs was a curve for the expected densities as predicted by the ideal gas law, pV =NkT. &amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_5.jpg|&#039;&#039;&#039;Figure 5:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 3.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_6.jpg|&#039;&#039;&#039;Figure 6:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 4.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;It was found that the&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulated density was always lower than the values predicted by the ideal gas law for a given pressure. This was because for an ideal gas, there was no interactions between the atoms whereas the atoms in our simulation had been modeled using a forcefield of the Lennard-Jones potential. Moreover, the discrepancy between the observed and predicted values of density increased with pressure, especially at the lower temperatures where the deviation was larger.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== NVT Ensemble ===&lt;br /&gt;
&lt;br /&gt;
==== 1. Heat Capacity ====&lt;br /&gt;
In a particular system where temperature was fixed, thermodynamic properties such as total energy were likely to fluctuate from its constant average and these fluctuations gives rise to the heat capacity, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv&amp;lt;/span&amp;gt; where its value can be calculated using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv = δE/δT = N&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.Var(E)/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, it was important to note that the simulation carried out here was altered to NVT conditions (canonical ensemble). As with the previous simulation, ten phase points were required, but this time using five values of temperature (2.0, 2.2, 2.4, 2.6, 2.8) and two values of density (0.2, 0.8). A copy of the modified input script for NVT is attached below to highlight the changes made:&lt;br /&gt;
&lt;br /&gt;
https://goo.gl/5GnrfV&lt;br /&gt;
&lt;br /&gt;
==== 2. Results ====&lt;br /&gt;
Once data was collected from the log files (but without standard errors), the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv/V against average temperature was plotted on the same axes, where V was the volume of the simulation cell.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_7.jpg|&#039;&#039;&#039;Figure 7:&#039;&#039;&#039; A plot of heat capacity over volume as a function of average temperature&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the results obtained, this was not the trend that was expected. The data supposed to show a constant heat capacity for both densities, but instead heat capacity decreases when temperature was increased. Comparing both sets of data, for a system having a higher density, its heat capacity will in turn be raised.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Radial Distribution Function (RDF) ===&lt;br /&gt;
The radial pair distribution function or g(r) is &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;defined as the probability of locating the nearest neighbouring atom at a distance r from a reference atom. The visualising software VMD was used to calculate the RDF of three simulations under different states, that were the solid, liquid and vapour phases.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 1. Phase Transitions ====&lt;br /&gt;
In order to set up the various states, the values of d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ensity and temperature of the simulation were modified appropriately based on the phase transitions of the Lennard-Jones system. The following were the set of parameters determined for each state:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.002 was used to run all simulations in LAMMPS.&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_solid.JPG|&#039;&#039;&#039;Figure 8(a):&#039;&#039;&#039; View of solid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_liquid.JPG|&#039;&#039;&#039;Figure 8(b):&#039;&#039;&#039; View of liquid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_vapour.JPG|&#039;&#039;&#039;Figure 8(c):&#039;&#039;&#039; View of gas phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Qualitative Analysis of RDF ====&lt;br /&gt;
When each simulation was completed, its .trj file was inputted into VMD where the value of g(r) and &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ g(r) dr (or running integral) were evaluated. The graph of RDF against reduced distance were plotted on the same axes for all three states.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_8.jpg|&#039;&#039;&#039;Figure 9:&#039;&#039;&#039; Combined g(r) against reduced distance plot for the solid, liquid and vapour systems&lt;br /&gt;
&amp;lt;/gallery&amp;gt;In the s&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;olid RDF, the function showed a regular pattern of peaks with almost the similar intervals over a long range of distance. The peaks were discrete at approximately σ, √2 σ, √3 σ, and so on. There was a very high chance of finding an atom at the position of these peaks whilst the probability of locating an atom between the peaks was very low. This illustrated that solids had a uniform packing structure and had very little defect within the lattice. Moreover, the first three peaks corresponded to the first, second and third coordination shells.&lt;br /&gt;
&lt;br /&gt;
Thus the lattice spacing can be determined:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.4 = 2.85714&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√2.85714 = 1.41898&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;To calculate the coordination number, g(r) was integrated in spherical coordinates to the first minimum of the RDF. Hence, the coordination numbers for the solid were: first peak (12), second peak (4), and third peak (8).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the l&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iquid RDF, the first and sharpest peak occured close to σ and the subsequent peaks appeared at about intervals of σ, but smaller than the first peak. At longer distances of r, the value of g(r) remained unchanged at 1, showing that liquid particles were independent of one another. Thus, liquids were less closely packed compared to solids and had the ability to move dynamically, hence they do not possess a fixed structure. They were able to form multiple coordination spheres, but in most cases, there was only one coordination sphere present at a given time.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the v&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;apour RDF, the function only showed one obvious peak at about σ which then plateaued off at a value of g(r) = 1, the normal bulk density of the system. The regions that experienced the greatest intermolecular forces when g(r) &amp;gt; 1 were for 1 &amp;lt; σ &amp;lt; 2.5. From this result, it was concluded that gases tend to move around randomly in a sporadic motion (Brownian motion) and at most, they only have a single short-lived coordination sphere.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Diffusion Coefficient ===&lt;br /&gt;
In this experiment, the way in which atoms move around in the system (through translational motion) was of particular interest. This form of motion was governed by the diffusion coefficient, D or mass diffusivity, which can be measured using two main methods detailed below: &lt;br /&gt;
&lt;br /&gt;
==== 1. Mean Squared Displacement (MSD) ====&lt;br /&gt;
Since D was closely related to MSD, a simulation was ran (at specific density and temperature) for all three phases with an additional input command to calculate MSD and VACF (mentioned in next section). The set of parameters used to obtain each physical phase were identical those implemented during the RDF investigation:&lt;br /&gt;
&lt;br /&gt;
Timestep = 0.002&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once data was obtained from the &amp;quot;optional output-2&amp;quot; files, the total MSD (resultant MSD from individual Cartesian directions (x,y,z)) was plotted against timestep:&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_9.jpg|&#039;&#039;&#039;Figure 10(a):&#039;&#039;&#039; Total MSD as a function of timestep for the solid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_10.jpg|&#039;&#039;&#039;Figure 10(b):&#039;&#039;&#039; Total MSD as a function of timestep for the liquid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_11.jpg|&#039;&#039;&#039;Figure 10(c):&#039;&#039;&#039; Total MSD as a function of timestep for the gas phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The relationship between total MSD and timestep obtained for the three phases were as expected. Total MSD for solids initially fluctuated before becoming constant whereas for the liquid phase, its values increased linearly but gradually, and as for the vapour phase, total MSD increased linearly and rapidly.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since D = 1/6 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;δ&amp;lt;r&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;(t)&amp;gt; / δt, &amp;lt;/span&amp;gt;then &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/6 (gradient of graph of MSD vs timestep).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus using the gradient of the best-fit line, for:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/6 (2.3514 x 10&amp;lt;sup&amp;gt;-8&amp;lt;/sup&amp;gt;) = 3.919 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/6 (1.3140 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt;) = 2.190 x 10&amp;lt;sup&amp;gt;-4&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/6 (7.2313 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt;) = 1.205 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this, the d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iffusion coefficient was shown to have increased going from solids to gases. Moreover, it was noted that the diffusion coefficient for the solid phase was so small, it was negligible (zero).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. MSD: One Million Atoms ====&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_19.jpg|&#039;&#039;&#039;Figure 11(a):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_20.jpg|&#039;&#039;&#039;Figure 11(b):&#039;&#039;&#039; Total MSD plotted against timestep for the liquid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_21.jpg|&#039;&#039;&#039;Figure 11(c):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;For the same&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulation repeated using one million atoms, values of total MSD obtained were higher compared to that with fewer atoms (except for the solid phase where the total MSD was lowered). Moreover, total MSD for the liquid and vapour phases increased more linearly when using more atoms (and this was most evident for the vapour phase). Hence, the gradient of the best-fit line was used to evaluate the values of D as shown below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/6 (5.26956 x 10&amp;lt;sup&amp;gt;-8&amp;lt;/sup&amp;gt;) = 8.783 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/6 (1.04717 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt;) = 1.745 x 10&amp;lt;sup&amp;gt;-4&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/6 (3.57206 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt;) = 5.953 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Overall, the same trend was observed, with the addition that the diffusion coefficients for the liquid and gas systems were slightly lower than before.&lt;br /&gt;
&lt;br /&gt;
==== 3. Extension: Velocity Autocorrelation Function (VACF) ====&lt;br /&gt;
The other alternative way of calculating D was by using the velocity autocorrelation function. The same input script was used here (as in the previous MSD section) and the simulation was ran for the solid, liquid and vapour phases. All data was obtained from the &amp;quot;optional output-3&amp;quot; files.&lt;br /&gt;
&lt;br /&gt;
In relation to the theoretical concepts covered in the 1D harmonic oscillator, the &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;normalised velocity autocorrelation function, C(τ) was evaluated for this 1D harmonic system:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Given that C(τ) = &amp;lt; v(t).v(t+τ) &amp;gt; and x(t) = cos(ωt+ϕ),&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;VACF of a 1D harmonic oscillator, C(τ) = ∫ v(t).v(t+τ) dt&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, the normalised VACF, C(τ) = ∫ v(t).v(t+τ) dt / ∫ v(t)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; dt&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence to compare between the different oscillating systems, the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;C(τ) with ω=1/(2п) along with the VACFs from the solid and liquid simulations was plotted along the same axes, from x = 0 to 500.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_15.jpg|&#039;&#039;&#039;Figure 12:&#039;&#039;&#039; C(τ) with ω=1/(2п) and the VACFs of the solid and liquid phases as a function of timestep (x = 0 to 500)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;In the solid and liquid phases, where atoms are close to each other and of high density, strong interatomic forces were most evident. Atoms in these systems tend to adopt a position where there was a balance between the attractive and repulsive forces, thus they will not be easily displaced. As a result, these atoms will oscillate as part of their motion, vibrating between points of maxima and minima. Hence, this gave rise to a VACF function which showed a periodic oscillation from positive to negative values.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;For the case of solids, the magnitude of oscillation decayed over time due to forces acting to oppose these motion, thus the function closely resembled a damped oscillation that decreased exponentially. Whilst for liquids, the atoms behaved similarly but they were able to glide among themselves. The process of diffusion also drastically weakened any oscillatory motion the system possessed and the VACF function showed a very damp oscillation, with only a single minima point.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The minima in the VACFs in the solid and liquid system relates to the maximum change in the magnitude or direction (of the atoms in the system), thus altering their velocities, giving rise to a minimum value for the product of v(t=0) and v(t=τ).&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;On the other hand, the 1D harmonic oscillator model has a VACF function of constant amplitude (A=1) and period (T=40 s). Its magnitude of oscillation was greater than that of the solid and liquid systems, implying that no damping or perturbative forces had acted upon the system throughout its motion (and based on Newton’s Law of Motion the oscillation its motion will not change and continue to remain this way). Whereas, unlike the Lennard-Jones model describe earlier, atoms in the 1D harmonic oscillator do not interact with each other by attraction or repulsion and thus no energy was dissipated.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 4. The Trapezium Rule ====&lt;br /&gt;
Utilising the trapezium rule (TR) to approximately calculate the integral or area under the VACF graph, the values of D were estimated for each of the three physical phases.&lt;br /&gt;
&lt;br /&gt;
Given D = 1/3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ &amp;lt;v(0).v(τ)&amp;gt; dτ, then &amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/3 (area under the graph of C(τ) vs timestep).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus using the area under the graph obtained by the TR, for:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/3 (216.9089038) = 72.303 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/3 (277.865793) = 92.622 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/3 (10675.4021) = 3358.467 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The values of D above were as expected, with it increasing in magnitude from the solid to vapour phase. Going a step further, the running integrals for each case were also evaluated (once again using the TR) and plotted as a function of timestep as follows:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_16.jpg|&#039;&#039;&#039;Figure 13(a):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for the solid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_17.jpg|&#039;&#039;&#039;Figure 13(b):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for the liquid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_18.jpg|&#039;&#039;&#039;Figure 13(c):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for the gas phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 5. VACF: One Million Atoms ====&lt;br /&gt;
&lt;br /&gt;
The same procedures described above were applied f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or the simulation containing one million atoms, and thus for:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/3 (176.9191107) = 58.973 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/3 (151.586442) = 50.529 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/3 (4902.698696) = 1634.233 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As such, t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he values of diffusion coefficient increased from the solid to vapour phase as predicted, but was anomalous for the liquid phase (a decrease from the trend).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Fill&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654570</id>
		<title>Rep:Mod:dw3015 y3c liqsim</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654570"/>
		<updated>2017-12-20T23:25:35Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: /* 2. MSD: One Million Atoms */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Year 3 Computational Labs=&lt;br /&gt;
&lt;br /&gt;
= Molecular Dynamics Simulations of Simple Liquids =&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Aims and Objectives ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
In order for the simulation to replicate a real system as accurately, a few criterion had been defined, namely the simulation model, initial test parameters, forcefield, final parameters and tools used.&lt;br /&gt;
&lt;br /&gt;
=== Velocity-Verlet Algorithm and Timestep ===&lt;br /&gt;
Using approximations, we assumed that atoms will behave classically and therefore the velocity-Verlet algorithm was applied into the simulation, where we&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; have defined the starting positions of the atoms, x&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0) and their velocities at the same time, v&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0). As an example, this algorithm was used in a simple harmonic oscillator: &amp;lt;/span&amp;gt;https://goo.gl/As44o7&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.1 was initially tested. Subsequently, the value of &amp;quot;ERROR&amp;quot; as function of time was investigated and was found that this relationship was given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;y = 0.000422x + 0.000073&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;R-squared value = 0.999977&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The function above remained constant although the value of timestep was varied. It was found that w&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;hen timestep was increased, this will add more cycles to the &amp;quot;ENERGY&amp;quot; and &amp;quot;ERROR&amp;quot; graphs but period remained constant. Amplitude of &amp;quot;ERROR&amp;quot; graph will increase over time leading to bigger magnitude in error. However, the function of maxima in the &amp;quot;ERROR&amp;quot; graph was unchanged. The &amp;quot;ENERGY&amp;quot; graph will also have higher amplitude, hence bigger change in total energy. Timestep must therefore not exceed 0.1990665 for change in total energy to remain below 1%.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The prove of concept is shown here: https://goo.gl/zC9YU9&lt;br /&gt;
&lt;br /&gt;
Moreover, the t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;otal energy of a physical system was measured and expected to remain constant, indicating that the system has completed equilibration and energy has been completely redistributed among the particles in a given system (through collisions) upon the start of the simulation.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Model ===&lt;br /&gt;
A simple particle in a box model was used for all of the simulations. Using LAMMPS, a cubic box of a given length containing a given amount of atoms of mass 1.0 was created. This will form the boundary for the simulations carried out.&lt;br /&gt;
&lt;br /&gt;
For atoms that move beyond this boundary, the periodic boundary conditions was able to correct the atoms&#039; coordinates by allowing its replica to enter from the opposite face.&lt;br /&gt;
&lt;br /&gt;
For instance, a&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;n atom at position (0.5, 0.5, 0.5) in a cubic simulation box which runs from (0, 0, 0) to (1.0, 1.0, 1.0), moving along a vector (0.7, 0.6, 0.2) in a single timestep, its final position is at (1.2, 1.1, 0.7). But after applying periodic boundary conditions, the atom position was corrected to (0.2, 0.1, 0.7).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To give an idea of the number of molecules simulated, the number of moles of 1 ml of water under standard conditions were estimated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of 1 ml water = ρV = 1 g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;n of 1ml water = m/M&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 0.05550843506 mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number of water molecules = nN&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 3.342796 x 10&amp;lt;sup&amp;gt;22&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a large and unsuitable number to simulate. A value of 10000 would be more reasonable, thus the volume of 10000 water molecules was calculated to give a better perspective:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For 10000 water molecules, n of water = n.o.m./N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 1.660539&lt;br /&gt;
x 10&amp;lt;sup&amp;gt;-20&amp;lt;/sup&amp;gt; mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of water = nM&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V of water = m/ρ = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; ml&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Forcefield ===&lt;br /&gt;
The Lennard-Jones potential, which fits well into the physic of the simulation, was utilised knowing that the force acting on the atoms depended on the potential they experienced. At longer distances however, this interaction will be so small that it can be negligible, so a cutoff point of 3.0&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ was put in place.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Lennard-Jones Potential, U = 4ε [(σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To understand the relationship better, the separation &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; at which the potential of zero was evaluated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;When U=0, (σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Let (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = y, thus y&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;-y = 0, y(y-1) = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore, y=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0, undefined; (y-1)=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;= 1, hence R=r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;=σ (F = repulsive force)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along with the separation at equilibrium and hence the well depth &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ϕ(r&amp;lt;sub&amp;gt;eq),&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;At equilibrium, F=0 (minimum), dU/dR = -48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&lt;br /&gt;
+ 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For turning point, dU/dR = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;),&lt;br /&gt;
(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)/(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;, R&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;=2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;,&lt;br /&gt;
hence R=(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)σ, R=r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;=1.12246σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore well depth, ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;)&lt;br /&gt;
- (σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;)]&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(1/4)-(1/2)], ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = -ε (minimum)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Moreover, the values of integrals of 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, 2.5 σ and 3 σ to infinity were calculated respectively:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;∫ϕ(r)dr = -1/3εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;), and when σ=ε=1,&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.020671&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2.5 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0068127&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0027416&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
The quantities used in the simulation were treated and divided with a scaling factor, such as &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ or &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ε, to ensure that our results were more manageable. For example, for argon with Lennard-Jones (LJ) parameters σ = 0.34nm and ε/&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; = 120K, its LJ cutoff r* = 3.2 in real units was:&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r=r*σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r = 3.2(0.34 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt;) = 1.088 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; m&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, its well depth in real units was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = ε = k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T x N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ε = (1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(120 K)(6.02214 x 10&amp;lt;sup&amp;gt;23 &amp;lt;/sup&amp;gt;&#039;&#039;mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; = 0.997735 kJ mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, the reduced temperature T* = 1.5 can be calculated in real units:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = T*ε/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = 1.5(997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)/(1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(6.02214 &#039;&#039;x 10&amp;lt;sup&amp;gt;23&amp;lt;/sup&amp;gt; mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 180 K&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lattice Structure ===&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Giving atoms random starting coordinates can be problematic as this may generate two atoms close to each other in our simulation, where if the separation between them was below σ, this can cause a strong (or even infinite) repulsion pushing the atoms apart. Therefore, the atoms were initially created in a 3D simple cubic (sc) lattice.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given that the number density (N/V) of lattice points was 0.8, the lattice spacing was found to be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number density, ρ=N/V, V=N/ρ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V = 1/0.8 = 1.25&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;L&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;attice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√1.25 = 1.07722&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or a face-centred cubic (fcc) lattice with number density 1.2, its lattice spacing was calculated:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.2 = 3.33333&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√3.33333 = 1.49380&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Furthermore, a simulation sc box of width 10 was created as a control. Within this region, there were &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;4000 atoms present (4 atoms in each unit cell where there are 10x10x10 = 1000 unit cells). Following this, the mass and pair coefficient of the each type of atom were assigned as below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Definitions for each line in the command code are provided as such:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Assigning mass of value 1.0 to all type 1 atoms&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Specifying a standard 12/6 Lennard-Jones potential with no Coulomb between atom pairs with global LJ cutoff set to distance r*=3.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Setting the pairwise forcefield coefficients for the&lt;br /&gt;
symmetric I,J interaction to the same value of 1.0 for all (given by asterisk) type 1 with type 1 atom pairs&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Timestep Optimisation ===&lt;br /&gt;
The code below was written in the input script with the timestep taking a value of 0.001:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### SPECIFY TIMESTEP ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable timestep equal 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable n_steps equal floor(100/${timestep})&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep ${timestep}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### RUN SIMULATION ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run ${n_steps}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: T&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he variable command is a loop which was assigned a value that is later evaluated in the input script, where in this case timestep was equal to 0.001. This is useful because the defined value can be referenced in subsequent variables, therefore making it reusable and eliminating the need to repeatedly input the value 0.001. For instance, the defined timestep was used in the math function &amp;quot;floor&amp;quot; assigned to variable n_step and subsequently the value n_step is used in the &amp;quot;run&amp;quot; command. Hence, this coding method will be more pragmatic than just writing the script simply as:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choosing the correct timestep was crucial for the subsequent simulations which were undertaken. To determine the optimum timestep, simulations using different timesteps (0.001, 0.0025, 0.0075, 0.01 and 0.015) were tested. To illustrate that the simulation had equilibrated, the graphs of total e&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;nergy, temperature and pressure against time were plotted for the 0.001 timestep experiment:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_1.jpg|&#039;&#039;&#039;Figure 1:&#039;&#039;&#039; Total energy against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_2.jpg|&#039;&#039;&#039;Figure 2:&#039;&#039;&#039; Temperature against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_3.jpg|&#039;&#039;&#039;Figure 3:&#039;&#039;&#039; Pressure against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the plots above, the simulation did achieve equilibrium and the values of total energy, temperature and pressure had converged to a constant average (within a certain degree of error) at approximately 0.5 s into the simulation.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_4.jpg|&#039;&#039;&#039;Figure 4:&#039;&#039;&#039; Single plot of total energy against time for all five timesteps.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Among the five timesteps, 0.001 was most likely to give acceptable results. The data obtained was of high resolution, with the smallest interval between data points. The simulation was said to give the best representation of a physical reality being investigated. On the other hand, a timestep of 0.015 was the least suitable choice because the total energy does not converge. The energy initially stabilised but subsequently diverged (increased) after 20 s and thus system has not fully equilibrated. To give the best balance between resolution and speed (time taken to complete a simulation), timestep within the acceptable range of 0.001 to 0.003 were used. Any timestep above 0.003 would not properly allow for total energy to converge and gives a large gap between data points.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== LAMMPS Toolkit ===&lt;br /&gt;
The LAMMPS Molecular Dynamics Simulator is an extremely useful simulation software containing a vast array of tools that was further utilised throughout this experiment. Among them were the &amp;quot;variable&amp;quot; and &amp;quot;thermo_style&amp;quot; commands used in changing ensembles and measuring thermodynamics properties respectively, which were crucial in obtaining key data. Towards the end of the investigation, the usage of the radial distribution function (RDF), mean squared displacement (MSD) and velocity autocorrelation function (VACF) were also explored and applied into many of the simulations conducted.&lt;br /&gt;
&lt;br /&gt;
=== Visual Molecular Dynamics (VMD) ===&lt;br /&gt;
To help visualise some of the simulations, LAMMPS was also supported by the VMD 3D graphics programme that was able to read trajectory (.trj) files in order to display our simulation through multiple modes and perspectives. This software was also used to conduct further calculations such as evaluating running integrals for the RDF.&lt;br /&gt;
&lt;br /&gt;
== Results and Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== NpT Ensemble ===&lt;br /&gt;
For this section of the investigation, the simulation has been modified so that it can run under NpT conditions (called the isobaric-isothermal ensemble in statistical mechanics) to understand what changes to thermodynamic properties occur at this particular experimental condition. The data collected was used to plot an equation of state at atmospheric pressure for the case of our model fluid.&lt;br /&gt;
&lt;br /&gt;
Five values of temperature (2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;.0, 2.5, 3.0, 3.5, 4.0&amp;lt;/span&amp;gt;) and two values of pressure (3.0, 4.0) given in Lennard-Jones units were chosen based on the results of the optimisation test ran earlier. The timestep was set to 0.0025 and the input script modified accordingly for all ten (p,T) phase points before being submitted to LAMMPS.&lt;br /&gt;
&lt;br /&gt;
==== 1. Controlling Temperature ====&lt;br /&gt;
In general, temperature, T at a given time during the course of the simulation will be prone to fluctuations and will differ slightly from the intended temperature of the system, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;𝛕 (value specified in the input script). However, T can be easily controlled by multiplying each velocity term of each atom by a constant factor, γ whereby:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The kinetic energy of the system can be written as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T &#039;&#039;&#039;&#039;&#039;(Eq. 1)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;𝛕 &#039;&#039;&#039;&#039;&#039;(Eq. 2)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Dividing (Eq. 2) by (Eq. 1):&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)/( v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;) = 𝛕/T&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 𝛕/T, thus γ = √(𝛕/T)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, the value of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;γ can be determined and used to correct any deviations in T.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Sampling and Averaging ====&lt;br /&gt;
In the input script, there were lines entered as:&lt;br /&gt;
 fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
 run 100000&lt;br /&gt;
These lines were needed to measure key thermodynamics properties such as density, temperature and pressure respectively. Most importantly, the values 100, 1000 and 100000 play a vital role in directing how often these properties are averaged and how many measurements contribute to the final average. Each number is represented as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100 = Nevery&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1000 = Nrepeat&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100000 = Nfreq&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The three arguments above specify the timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a multiple of 100000. The average was over 1000 quantities, computed in the preceding portion of the simulation every 100 timesteps. Nfreq must be a multiple of Nevery and Nevery must be non-zero even if Nrepeat was 1. Also, the timesteps contributing to the average value cannot overlap, i.e. Nrepeat*Nevery cannot exceed Nfreq.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;, by referring to the log (.log) output file, the amount of time that has been simulated for this investigation was 50 s.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Equation of State ====&lt;br /&gt;
The density of the system obtained from the log files were plotted against temperature for both of pressures that were simulated, including error bars. Also included in the graphs was a curve for the expected densities as predicted by the ideal gas law, pV =NkT. &amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_5.jpg|&#039;&#039;&#039;Figure 5:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 3.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_6.jpg|&#039;&#039;&#039;Figure 6:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 4.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;It was found that the&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulated density was always lower than the values predicted by the ideal gas law for a given pressure. This was because for an ideal gas, there was no interactions between the atoms whereas the atoms in our simulation had been modeled using a forcefield of the Lennard-Jones potential. Moreover, the discrepancy between the observed and predicted values of density increased with pressure, especially at the lower temperatures where the deviation was larger.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== NVT Ensemble ===&lt;br /&gt;
&lt;br /&gt;
==== 1. Heat Capacity ====&lt;br /&gt;
In a particular system where temperature was fixed, thermodynamic properties such as total energy were likely to fluctuate from its constant average and these fluctuations gives rise to the heat capacity, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv&amp;lt;/span&amp;gt; where its value can be calculated using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv = δE/δT = N&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.Var(E)/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, it was important to note that the simulation carried out here was altered to NVT conditions (canonical ensemble). As with the previous simulation, ten phase points were required, but this time using five values of temperature (2.0, 2.2, 2.4, 2.6, 2.8) and two values of density (0.2, 0.8). A copy of the modified input script for NVT is attached below to highlight the changes made:&lt;br /&gt;
&lt;br /&gt;
https://goo.gl/5GnrfV&lt;br /&gt;
&lt;br /&gt;
==== 2. Results ====&lt;br /&gt;
Once data was collected from the log files (but without standard errors), the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv/V against average temperature was plotted on the same axes, where V was the volume of the simulation cell.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_7.jpg|&#039;&#039;&#039;Figure 7:&#039;&#039;&#039; A plot of heat capacity over volume as a function of average temperature&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the results obtained, this was not the trend that was expected. The data supposed to show a constant heat capacity for both densities, but instead heat capacity decreases when temperature was increased. Comparing both sets of data, for a system having a higher density, its heat capacity will in turn be raised.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Radial Distribution Function (RDF) ===&lt;br /&gt;
The radial pair distribution function or g(r) is &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;defined as the probability of locating the nearest neighbouring atom at a distance r from a reference atom. The visualising software VMD was used to calculate the RDF of three simulations under different states, that were the solid, liquid and vapour phases.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 1. Phase Transitions ====&lt;br /&gt;
In order to set up the various states, the values of d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ensity and temperature of the simulation were modified appropriately based on the phase transitions of the Lennard-Jones system. The following were the set of parameters determined for each state:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.002 was used to run all simulations in LAMMPS.&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_solid.JPG|&#039;&#039;&#039;Figure 8(a):&#039;&#039;&#039; View of solid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_liquid.JPG|&#039;&#039;&#039;Figure 8(b):&#039;&#039;&#039; View of liquid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_vapour.JPG|&#039;&#039;&#039;Figure 8(c):&#039;&#039;&#039; View of gas phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Qualitative Analysis of RDF ====&lt;br /&gt;
When each simulation was completed, its .trj file was inputted into VMD where the value of g(r) and &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ g(r) dr (or running integral) were evaluated. The graph of RDF against reduced distance were plotted on the same axes for all three states.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_8.jpg|&#039;&#039;&#039;Figure 9:&#039;&#039;&#039; Combined g(r) against reduced distance plot for the solid, liquid and vapour systems&lt;br /&gt;
&amp;lt;/gallery&amp;gt;In the s&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;olid RDF, the function showed a regular pattern of peaks with almost the similar intervals over a long range of distance. The peaks were discrete at approximately σ, √2 σ, √3 σ, and so on. There was a very high chance of finding an atom at the position of these peaks whilst the probability of locating an atom between the peaks was very low. This illustrated that solids had a uniform packing structure and had very little defect within the lattice. Moreover, the first three peaks corresponded to the first, second and third coordination shells.&lt;br /&gt;
&lt;br /&gt;
Thus the lattice spacing can be determined:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.4 = 2.85714&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√2.85714 = 1.41898&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;To calculate the coordination number, g(r) was integrated in spherical coordinates to the first minimum of the RDF. Hence, the coordination numbers for the solid were: first peak (12), second peak (4), and third peak (8).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the l&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iquid RDF, the first and sharpest peak occured close to σ and the subsequent peaks appeared at about intervals of σ, but smaller than the first peak. At longer distances of r, the value of g(r) remained unchanged at 1, showing that liquid particles were independent of one another. Thus, liquids were less closely packed compared to solids and had the ability to move dynamically, hence they do not possess a fixed structure. They were able to form multiple coordination spheres, but in most cases, there was only one coordination sphere present at a given time.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the v&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;apour RDF, the function only showed one obvious peak at about σ which then plateaued off at a value of g(r) = 1, the normal bulk density of the system. The regions that experienced the greatest intermolecular forces when g(r) &amp;gt; 1 were for 1 &amp;lt; σ &amp;lt; 2.5. From this result, it was concluded that gases tend to move around randomly in a sporadic motion (Brownian motion) and at most, they only have a single short-lived coordination sphere.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Diffusion Coefficient ===&lt;br /&gt;
In this experiment, the way in which atoms move around in the system (through translational motion) was of particular interest. This form of motion was governed by the diffusion coefficient, D or mass diffusivity, which can be measured using two main methods detailed below: &lt;br /&gt;
&lt;br /&gt;
==== 1. Mean Squared Displacement (MSD) ====&lt;br /&gt;
Since D was closely related to MSD, a simulation was ran (at specific density and temperature) for all three phases with an additional input command to calculate MSD and VACF (mentioned in next section). The set of parameters used to obtain each physical phase were identical those implemented during the RDF investigation:&lt;br /&gt;
&lt;br /&gt;
Timestep = 0.002&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once data was obtained from the &amp;quot;optional output-2&amp;quot; files, the total MSD (resultant MSD from individual Cartesian directions (x,y,z)) was plotted against timestep:&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_9.jpg|&#039;&#039;&#039;Figure 10(a):&#039;&#039;&#039; Total MSD as a function of timestep for the solid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_10.jpg|&#039;&#039;&#039;Figure 10(b):&#039;&#039;&#039; Total MSD as a function of timestep for the liquid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_11.jpg|&#039;&#039;&#039;Figure 10(c):&#039;&#039;&#039; Total MSD as a function of timestep for the gas phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The relationship between total MSD and timestep obtained for the three phases were as expected. Total MSD for solids initially fluctuated before becoming constant whereas for the liquid phase, its values increased linearly but gradually, and as for the vapour phase, total MSD increased linearly and rapidly.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since D = 1/6 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;δ&amp;lt;r&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;(t)&amp;gt; / δt, &amp;lt;/span&amp;gt;then &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/6 (gradient of graph of MSD vs timestep).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus using the gradient of the best-fit line, for:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/6 (2.3514 x 10&amp;lt;sup&amp;gt;-8&amp;lt;/sup&amp;gt;) = 3.919 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/6 (1.3140 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt;) = 2.190 x 10&amp;lt;sup&amp;gt;-4&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/6 (7.2313 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt;) = 1.205 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this, the d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iffusion coefficient was shown to have increased going from solids to gases. Moreover, it was noted that the diffusion coefficient for the solid phase was so small, it was negligible (zero).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. MSD: One Million Atoms ====&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_19.jpg|&#039;&#039;&#039;Figure 11(a):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_20.jpg|&#039;&#039;&#039;Figure 11(b):&#039;&#039;&#039; Total MSD plotted against timestep for the liquid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_21.jpg|&#039;&#039;&#039;Figure 11(c):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;For the same&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulation repeated using one million atoms, values of total MSD obtained were higher compared to that with fewer atoms (except for the solid phase where the total MSD was lowered). Moreover, total MSD for the liquid and vapour phases increased more linearly when using more atoms (and this was most evident for the vapour phase). Hence, the gradient of the best-fit line was used to evaluate the values of D as shown below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/6 (5.26956 x 10&amp;lt;sup&amp;gt;-8&amp;lt;/sup&amp;gt;) = 8.783 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/6 (1.04717 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt;) = 1.745 x 10&amp;lt;sup&amp;gt;-4&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/6 (3.57206 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt;) = 5.953 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Overall, the same trend was observed, with the addition that the diffusion coefficients for the liquid and gas systems were slightly lower than before.&lt;br /&gt;
&lt;br /&gt;
==== 3. Extension: Velocity Autocorrelation Function (VACF) ====&lt;br /&gt;
The other alternative way of calculating D was by using the velocity autocorrelation function. The same input script was used here (as in the previous MSD section) and the simulation was ran for the solid, liquid and vapour phases. All data was obtained from the &amp;quot;optional output-3&amp;quot; files.&lt;br /&gt;
&lt;br /&gt;
In relation to the theoretical concepts covered in the 1D harmonic oscillator, the &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;normalised velocity autocorrelation function, C(τ) was evaluated for this 1D harmonic system:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Given that C(τ) = &amp;lt; v(t).v(t+τ) &amp;gt; and x(t) = cos(ωt+ϕ),&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;VACF of a 1D harmonic oscillator, C(τ) = ∫ v(t).v(t+τ) dt&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, the normalised VACF, C(τ) = ∫ v(t).v(t+τ) dt / ∫ v(t)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; dt&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence to compare between the different oscillating systems, the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;C(τ) with ω=1/(2п) along with the VACFs from the solid and liquid simulations was plotted along the same axes, from x = 0 to 500.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_15.jpg|&#039;&#039;&#039;Figure 12:&#039;&#039;&#039; C(τ) with ω=1/(2п) and the VACFs of the solid and liquid phases as a function of timestep (x = 0 to 500)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;In the solid and liquid phases, where atoms are close to each other and of high density, strong interatomic forces were most evident. Atoms in these systems tend to adopt a position where there was a balance between the attractive and repulsive forces, thus they will not be easily displaced. As a result, these atoms will oscillate as part of their motion, vibrating between points of maxima and minima. Hence, this gave rise to a VACF function which showed a periodic oscillation from positive to negative values.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;For the case of solids, the magnitude of oscillation decayed over time due to forces acting to oppose these motion, thus the function closely resembled a damped oscillation that decreased exponentially. Whilst for liquids, the atoms behaved similarly but they were able to glide among themselves. The process of diffusion also drastically weakened any oscillatory motion the system possessed and the VACF function showed a very damp oscillation, with only a single minima point.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The minima in the VACFs in the solid and liquid system relates to the maximum change in the magnitude or direction (of the atoms in the system), thus altering their velocities, giving rise to a minimum value for the product of v(t=0) and v(t=τ).&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;On the other hand, the 1D harmonic oscillator model has a VACF function of constant amplitude (A=1) and period (T=40 s). Its magnitude of oscillation was greater than that of the solid and liquid systems, implying that no damping or perturbative forces had acted upon the system throughout its motion (and based on Newton’s Law of Motion the oscillation its motion will not change and continue to remain this way). Whereas, unlike the Lennard-Jones model describe earlier, atoms in the 1D harmonic oscillator do not interact with each other by attraction or repulsion and thus no energy was dissipated.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 4. The Trapezium Rule ====&lt;br /&gt;
Utilising the trapezium rule (TR) to approximately calculate the integral or area under the VACF graph, the values of D were estimated for each of the three physical phases.&lt;br /&gt;
&lt;br /&gt;
Given D = 1/3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ &amp;lt;v(0).v(τ)&amp;gt; dτ, then &amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/3 (area under the graph of C(τ) vs timestep).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus using the area under the graph obtained by the TR, for:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/3 (216.9089038) = 72.303 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/3 (277.865793) = 92.622 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/3 (10675.4021) = 3358.467 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The values of D above were as expected, with it increasing in magnitude from the solid to vapour phase. Going a step further, the running integrals for each case were also evaluated (once again using the TR) and plotted as a function of timestep as follows:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_16.jpg|&#039;&#039;&#039;Figure 13(a):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for the solid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_17.jpg|&#039;&#039;&#039;Figure 13(b):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for the liquid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_18.jpg|&#039;&#039;&#039;Figure 13(c):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for the gas phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 5. VACF: One Million Atoms ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;For one million atoms,&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Solid: D = 1/3 (176.9191107) = 58.973 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Liquid: D = 1/3 (151.586442) = 50.529 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Vapour: D = 1/3 (4902.698696) = 1634.233 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The values of diffusion coefficient increases from the solid to vapour phase&lt;br /&gt;
as predicted, but is anomalous for the liquid phase.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Fill&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_21.jpg&amp;diff=654569</id>
		<title>File:Dw3015 21.jpg</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_21.jpg&amp;diff=654569"/>
		<updated>2017-12-20T23:16:31Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_20.jpg&amp;diff=654568</id>
		<title>File:Dw3015 20.jpg</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_20.jpg&amp;diff=654568"/>
		<updated>2017-12-20T23:16:16Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_19.jpg&amp;diff=654567</id>
		<title>File:Dw3015 19.jpg</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_19.jpg&amp;diff=654567"/>
		<updated>2017-12-20T23:15:59Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654566</id>
		<title>Rep:Mod:dw3015 y3c liqsim</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654566"/>
		<updated>2017-12-20T17:29:12Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: /* 3. Extension: Velocity Autocorrelation Function (VACF) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Year 3 Computational Labs=&lt;br /&gt;
&lt;br /&gt;
= Molecular Dynamics Simulations of Simple Liquids =&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Aims and Objectives ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
In order for the simulation to replicate a real system as accurately, a few criterion had been defined, namely the simulation model, initial test parameters, forcefield, final parameters and tools used.&lt;br /&gt;
&lt;br /&gt;
=== Velocity-Verlet Algorithm and Timestep ===&lt;br /&gt;
Using approximations, we assumed that atoms will behave classically and therefore the velocity-Verlet algorithm was applied into the simulation, where we&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; have defined the starting positions of the atoms, x&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0) and their velocities at the same time, v&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0). As an example, this algorithm was used in a simple harmonic oscillator: &amp;lt;/span&amp;gt;https://goo.gl/As44o7&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.1 was initially tested. Subsequently, the value of &amp;quot;ERROR&amp;quot; as function of time was investigated and was found that this relationship was given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;y = 0.000422x + 0.000073&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;R-squared value = 0.999977&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The function above remained constant although the value of timestep was varied. It was found that w&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;hen timestep was increased, this will add more cycles to the &amp;quot;ENERGY&amp;quot; and &amp;quot;ERROR&amp;quot; graphs but period remained constant. Amplitude of &amp;quot;ERROR&amp;quot; graph will increase over time leading to bigger magnitude in error. However, the function of maxima in the &amp;quot;ERROR&amp;quot; graph was unchanged. The &amp;quot;ENERGY&amp;quot; graph will also have higher amplitude, hence bigger change in total energy. Timestep must therefore not exceed 0.1990665 for change in total energy to remain below 1%.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The prove of concept is shown here: https://goo.gl/zC9YU9&lt;br /&gt;
&lt;br /&gt;
Moreover, the t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;otal energy of a physical system was measured and expected to remain constant, indicating that the system has completed equilibration and energy has been completely redistributed among the particles in a given system (through collisions) upon the start of the simulation.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Model ===&lt;br /&gt;
A simple particle in a box model was used for all of the simulations. Using LAMMPS, a cubic box of a given length containing a given amount of atoms of mass 1.0 was created. This will form the boundary for the simulations carried out.&lt;br /&gt;
&lt;br /&gt;
For atoms that move beyond this boundary, the periodic boundary conditions was able to correct the atoms&#039; coordinates by allowing its replica to enter from the opposite face.&lt;br /&gt;
&lt;br /&gt;
For instance, a&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;n atom at position (0.5, 0.5, 0.5) in a cubic simulation box which runs from (0, 0, 0) to (1.0, 1.0, 1.0), moving along a vector (0.7, 0.6, 0.2) in a single timestep, its final position is at (1.2, 1.1, 0.7). But after applying periodic boundary conditions, the atom position was corrected to (0.2, 0.1, 0.7).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To give an idea of the number of molecules simulated, the number of moles of 1 ml of water under standard conditions were estimated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of 1 ml water = ρV = 1 g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;n of 1ml water = m/M&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 0.05550843506 mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number of water molecules = nN&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 3.342796 x 10&amp;lt;sup&amp;gt;22&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a large and unsuitable number to simulate. A value of 10000 would be more reasonable, thus the volume of 10000 water molecules was calculated to give a better perspective:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For 10000 water molecules, n of water = n.o.m./N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 1.660539&lt;br /&gt;
x 10&amp;lt;sup&amp;gt;-20&amp;lt;/sup&amp;gt; mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of water = nM&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V of water = m/ρ = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; ml&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Forcefield ===&lt;br /&gt;
The Lennard-Jones potential, which fits well into the physic of the simulation, was utilised knowing that the force acting on the atoms depended on the potential they experienced. At longer distances however, this interaction will be so small that it can be negligible, so a cutoff point of 3.0&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ was put in place.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Lennard-Jones Potential, U = 4ε [(σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To understand the relationship better, the separation &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; at which the potential of zero was evaluated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;When U=0, (σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Let (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = y, thus y&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;-y = 0, y(y-1) = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore, y=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0, undefined; (y-1)=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;= 1, hence R=r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;=σ (F = repulsive force)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along with the separation at equilibrium and hence the well depth &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ϕ(r&amp;lt;sub&amp;gt;eq),&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;At equilibrium, F=0 (minimum), dU/dR = -48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&lt;br /&gt;
+ 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For turning point, dU/dR = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;),&lt;br /&gt;
(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)/(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;, R&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;=2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;,&lt;br /&gt;
hence R=(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)σ, R=r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;=1.12246σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore well depth, ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;)&lt;br /&gt;
- (σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;)]&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(1/4)-(1/2)], ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = -ε (minimum)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Moreover, the values of integrals of 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, 2.5 σ and 3 σ to infinity were calculated respectively:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;∫ϕ(r)dr = -1/3εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;), and when σ=ε=1,&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.020671&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2.5 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0068127&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0027416&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
The quantities used in the simulation were treated and divided with a scaling factor, such as &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ or &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ε, to ensure that our results were more manageable. For example, for argon with Lennard-Jones (LJ) parameters σ = 0.34nm and ε/&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; = 120K, its LJ cutoff r* = 3.2 in real units was:&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r=r*σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r = 3.2(0.34 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt;) = 1.088 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; m&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, its well depth in real units was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = ε = k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T x N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ε = (1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(120 K)(6.02214 x 10&amp;lt;sup&amp;gt;23 &amp;lt;/sup&amp;gt;&#039;&#039;mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; = 0.997735 kJ mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, the reduced temperature T* = 1.5 can be calculated in real units:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = T*ε/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = 1.5(997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)/(1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(6.02214 &#039;&#039;x 10&amp;lt;sup&amp;gt;23&amp;lt;/sup&amp;gt; mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 180 K&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lattice Structure ===&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Giving atoms random starting coordinates can be problematic as this may generate two atoms close to each other in our simulation, where if the separation between them was below σ, this can cause a strong (or even infinite) repulsion pushing the atoms apart. Therefore, the atoms were initially created in a 3D simple cubic (sc) lattice.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given that the number density (N/V) of lattice points was 0.8, the lattice spacing was found to be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number density, ρ=N/V, V=N/ρ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V = 1/0.8 = 1.25&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;L&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;attice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√1.25 = 1.07722&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or a face-centred cubic (fcc) lattice with number density 1.2, its lattice spacing was calculated:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.2 = 3.33333&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√3.33333 = 1.49380&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Furthermore, a simulation sc box of width 10 was created as a control. Within this region, there were &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;4000 atoms present (4 atoms in each unit cell where there are 10x10x10 = 1000 unit cells). Following this, the mass and pair coefficient of the each type of atom were assigned as below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Definitions for each line in the command code are provided as such:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Assigning mass of value 1.0 to all type 1 atoms&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Specifying a standard 12/6 Lennard-Jones potential with no Coulomb between atom pairs with global LJ cutoff set to distance r*=3.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Setting the pairwise forcefield coefficients for the&lt;br /&gt;
symmetric I,J interaction to the same value of 1.0 for all (given by asterisk) type 1 with type 1 atom pairs&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Timestep Optimisation ===&lt;br /&gt;
The code below was written in the input script with the timestep taking a value of 0.001:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### SPECIFY TIMESTEP ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable timestep equal 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable n_steps equal floor(100/${timestep})&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep ${timestep}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### RUN SIMULATION ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run ${n_steps}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: T&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he variable command is a loop which was assigned a value that is later evaluated in the input script, where in this case timestep was equal to 0.001. This is useful because the defined value can be referenced in subsequent variables, therefore making it reusable and eliminating the need to repeatedly input the value 0.001. For instance, the defined timestep was used in the math function &amp;quot;floor&amp;quot; assigned to variable n_step and subsequently the value n_step is used in the &amp;quot;run&amp;quot; command. Hence, this coding method will be more pragmatic than just writing the script simply as:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choosing the correct timestep was crucial for the subsequent simulations which were undertaken. To determine the optimum timestep, simulations using different timesteps (0.001, 0.0025, 0.0075, 0.01 and 0.015) were tested. To illustrate that the simulation had equilibrated, the graphs of total e&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;nergy, temperature and pressure against time were plotted for the 0.001 timestep experiment:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_1.jpg|&#039;&#039;&#039;Figure 1:&#039;&#039;&#039; Total energy against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_2.jpg|&#039;&#039;&#039;Figure 2:&#039;&#039;&#039; Temperature against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_3.jpg|&#039;&#039;&#039;Figure 3:&#039;&#039;&#039; Pressure against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the plots above, the simulation did achieve equilibrium and the values of total energy, temperature and pressure had converged to a constant average (within a certain degree of error) at approximately 0.5 s into the simulation.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_4.jpg|&#039;&#039;&#039;Figure 4:&#039;&#039;&#039; Single plot of total energy against time for all five timesteps.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Among the five timesteps, 0.001 was most likely to give acceptable results. The data obtained was of high resolution, with the smallest interval between data points. The simulation was said to give the best representation of a physical reality being investigated. On the other hand, a timestep of 0.015 was the least suitable choice because the total energy does not converge. The energy initially stabilised but subsequently diverged (increased) after 20 s and thus system has not fully equilibrated. To give the best balance between resolution and speed (time taken to complete a simulation), timestep within the acceptable range of 0.001 to 0.003 were used. Any timestep above 0.003 would not properly allow for total energy to converge and gives a large gap between data points.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== LAMMPS Toolkit ===&lt;br /&gt;
The LAMMPS Molecular Dynamics Simulator is an extremely useful simulation software containing a vast array of tools that was further utilised throughout this experiment. Among them were the &amp;quot;variable&amp;quot; and &amp;quot;thermo_style&amp;quot; commands used in changing ensembles and measuring thermodynamics properties respectively, which were crucial in obtaining key data. Towards the end of the investigation, the usage of the radial distribution function (RDF), mean squared displacement (MSD) and velocity autocorrelation function (VACF) were also explored and applied into many of the simulations conducted.&lt;br /&gt;
&lt;br /&gt;
=== Visual Molecular Dynamics (VMD) ===&lt;br /&gt;
To help visualise some of the simulations, LAMMPS was also supported by the VMD 3D graphics programme that was able to read trajectory (.trj) files in order to display our simulation through multiple modes and perspectives. This software was also used to conduct further calculations such as evaluating running integrals for the RDF.&lt;br /&gt;
&lt;br /&gt;
== Results and Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== NpT Ensemble ===&lt;br /&gt;
For this section of the investigation, the simulation has been modified so that it can run under NpT conditions (called the isobaric-isothermal ensemble in statistical mechanics) to understand what changes to thermodynamic properties occur at this particular experimental condition. The data collected was used to plot an equation of state at atmospheric pressure for the case of our model fluid.&lt;br /&gt;
&lt;br /&gt;
Five values of temperature (2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;.0, 2.5, 3.0, 3.5, 4.0&amp;lt;/span&amp;gt;) and two values of pressure (3.0, 4.0) given in Lennard-Jones units were chosen based on the results of the optimisation test ran earlier. The timestep was set to 0.0025 and the input script modified accordingly for all ten (p,T) phase points before being submitted to LAMMPS.&lt;br /&gt;
&lt;br /&gt;
==== 1. Controlling Temperature ====&lt;br /&gt;
In general, temperature, T at a given time during the course of the simulation will be prone to fluctuations and will differ slightly from the intended temperature of the system, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;𝛕 (value specified in the input script). However, T can be easily controlled by multiplying each velocity term of each atom by a constant factor, γ whereby:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The kinetic energy of the system can be written as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T &#039;&#039;&#039;&#039;&#039;(Eq. 1)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;𝛕 &#039;&#039;&#039;&#039;&#039;(Eq. 2)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Dividing (Eq. 2) by (Eq. 1):&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)/( v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;) = 𝛕/T&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 𝛕/T, thus γ = √(𝛕/T)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, the value of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;γ can be determined and used to correct any deviations in T.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Sampling and Averaging ====&lt;br /&gt;
In the input script, there were lines entered as:&lt;br /&gt;
 fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
 run 100000&lt;br /&gt;
These lines were needed to measure key thermodynamics properties such as density, temperature and pressure respectively. Most importantly, the values 100, 1000 and 100000 play a vital role in directing how often these properties are averaged and how many measurements contribute to the final average. Each number is represented as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100 = Nevery&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1000 = Nrepeat&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100000 = Nfreq&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The three arguments above specify the timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a multiple of 100000. The average was over 1000 quantities, computed in the preceding portion of the simulation every 100 timesteps. Nfreq must be a multiple of Nevery and Nevery must be non-zero even if Nrepeat was 1. Also, the timesteps contributing to the average value cannot overlap, i.e. Nrepeat*Nevery cannot exceed Nfreq.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;, by referring to the log (.log) output file, the amount of time that has been simulated for this investigation was 50 s.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Equation of State ====&lt;br /&gt;
The density of the system obtained from the log files were plotted against temperature for both of pressures that were simulated, including error bars. Also included in the graphs was a curve for the expected densities as predicted by the ideal gas law, pV =NkT. &amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_5.jpg|&#039;&#039;&#039;Figure 5:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 3.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_6.jpg|&#039;&#039;&#039;Figure 6:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 4.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;It was found that the&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulated density was always lower than the values predicted by the ideal gas law for a given pressure. This was because for an ideal gas, there was no interactions between the atoms whereas the atoms in our simulation had been modeled using a forcefield of the Lennard-Jones potential. Moreover, the discrepancy between the observed and predicted values of density increased with pressure, especially at the lower temperatures where the deviation was larger.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== NVT Ensemble ===&lt;br /&gt;
&lt;br /&gt;
==== 1. Heat Capacity ====&lt;br /&gt;
In a particular system where temperature was fixed, thermodynamic properties such as total energy were likely to fluctuate from its constant average and these fluctuations gives rise to the heat capacity, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv&amp;lt;/span&amp;gt; where its value can be calculated using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv = δE/δT = N&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.Var(E)/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, it was important to note that the simulation carried out here was altered to NVT conditions (canonical ensemble). As with the previous simulation, ten phase points were required, but this time using five values of temperature (2.0, 2.2, 2.4, 2.6, 2.8) and two values of density (0.2, 0.8). A copy of the modified input script for NVT is attached below to highlight the changes made:&lt;br /&gt;
&lt;br /&gt;
https://goo.gl/5GnrfV&lt;br /&gt;
&lt;br /&gt;
==== 2. Results ====&lt;br /&gt;
Once data was collected from the log files (but without standard errors), the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv/V against average temperature was plotted on the same axes, where V was the volume of the simulation cell.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_7.jpg|&#039;&#039;&#039;Figure 7:&#039;&#039;&#039; A plot of heat capacity over volume as a function of average temperature&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the results obtained, this was not the trend that was expected. The data supposed to show a constant heat capacity for both densities, but instead heat capacity decreases when temperature was increased. Comparing both sets of data, for a system having a higher density, its heat capacity will in turn be raised.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Radial Distribution Function (RDF) ===&lt;br /&gt;
The radial pair distribution function or g(r) is &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;defined as the probability of locating the nearest neighbouring atom at a distance r from a reference atom. The visualising software VMD was used to calculate the RDF of three simulations under different states, that were the solid, liquid and vapour phases.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 1. Phase Transitions ====&lt;br /&gt;
In order to set up the various states, the values of d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ensity and temperature of the simulation were modified appropriately based on the phase transitions of the Lennard-Jones system. The following were the set of parameters determined for each state:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.002 was used to run all simulations in LAMMPS.&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_solid.JPG|&#039;&#039;&#039;Figure 8(a):&#039;&#039;&#039; View of solid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_liquid.JPG|&#039;&#039;&#039;Figure 8(b):&#039;&#039;&#039; View of liquid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_vapour.JPG|&#039;&#039;&#039;Figure 8(c):&#039;&#039;&#039; View of gas phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Qualitative Analysis of RDF ====&lt;br /&gt;
When each simulation was completed, its .trj file was inputted into VMD where the value of g(r) and &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ g(r) dr (or running integral) were evaluated. The graph of RDF against reduced distance were plotted on the same axes for all three states.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_8.jpg|&#039;&#039;&#039;Figure 9:&#039;&#039;&#039; Combined g(r) against reduced distance plot for the solid, liquid and vapour systems&lt;br /&gt;
&amp;lt;/gallery&amp;gt;In the s&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;olid RDF, the function showed a regular pattern of peaks with almost the similar intervals over a long range of distance. The peaks were discrete at approximately σ, √2 σ, √3 σ, and so on. There was a very high chance of finding an atom at the position of these peaks whilst the probability of locating an atom between the peaks was very low. This illustrated that solids had a uniform packing structure and had very little defect within the lattice. Moreover, the first three peaks corresponded to the first, second and third coordination shells.&lt;br /&gt;
&lt;br /&gt;
Thus the lattice spacing can be determined:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.4 = 2.85714&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√2.85714 = 1.41898&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;To calculate the coordination number, g(r) was integrated in spherical coordinates to the first minimum of the RDF. Hence, the coordination numbers for the solid were: first peak (12), second peak (4), and third peak (8).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the l&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iquid RDF, the first and sharpest peak occured close to σ and the subsequent peaks appeared at about intervals of σ, but smaller than the first peak. At longer distances of r, the value of g(r) remained unchanged at 1, showing that liquid particles were independent of one another. Thus, liquids were less closely packed compared to solids and had the ability to move dynamically, hence they do not possess a fixed structure. They were able to form multiple coordination spheres, but in most cases, there was only one coordination sphere present at a given time.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the v&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;apour RDF, the function only showed one obvious peak at about σ which then plateaued off at a value of g(r) = 1, the normal bulk density of the system. The regions that experienced the greatest intermolecular forces when g(r) &amp;gt; 1 were for 1 &amp;lt; σ &amp;lt; 2.5. From this result, it was concluded that gases tend to move around randomly in a sporadic motion (Brownian motion) and at most, they only have a single short-lived coordination sphere.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Diffusion Coefficient ===&lt;br /&gt;
In this experiment, the way in which atoms move around in the system (through translational motion) was of particular interest. This form of motion was governed by the diffusion coefficient, D or mass diffusivity, which can be measured using two main methods detailed below: &lt;br /&gt;
&lt;br /&gt;
==== 1. Mean Squared Displacement (MSD) ====&lt;br /&gt;
Since D was closely related to MSD, a simulation was ran (at specific density and temperature) for all three phases with an additional input command to calculate MSD and VACF (mentioned in next section). The set of parameters used to obtain each physical phase were identical those implemented during the RDF investigation:&lt;br /&gt;
&lt;br /&gt;
Timestep = 0.002&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once data was obtained from the &amp;quot;optional output-2&amp;quot; files, the total MSD (resultant MSD from individual Cartesian directions (x,y,z)) was plotted against timestep:&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_9.jpg|&#039;&#039;&#039;Figure 10(a):&#039;&#039;&#039; Total MSD as a function of timestep for the solid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_10.jpg|&#039;&#039;&#039;Figure 10(b):&#039;&#039;&#039; Total MSD as a function of timestep for the liquid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_11.jpg|&#039;&#039;&#039;Figure 10(c):&#039;&#039;&#039; Total MSD as a function of timestep for the gas phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The relationship between total MSD and timestep obtained for the three phases were as expected. Total MSD for solids initially fluctuated before becoming constant whereas for the liquid phase, its values increased linearly but gradually, and as for the vapour phase, total MSD increased linearly and rapidly.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since D = 1/6 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;δ&amp;lt;r&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;(t)&amp;gt; / δt, &amp;lt;/span&amp;gt;then &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/6 (gradient of graph of MSD vs timestep).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus using the gradient of the best-fit line, for:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/6 (2.3514 x 10&amp;lt;sup&amp;gt;-8&amp;lt;/sup&amp;gt;) = 3.919 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/6 (1.3140 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt;) = 2.190 x 10&amp;lt;sup&amp;gt;-4&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/6 (7.2313 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt;) = 1.205 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this, the d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iffusion coefficient was shown to have increased going from solids to gases. Moreover, it was noted that the diffusion coefficient for the solid phase was so small, it was negligible (zero).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. MSD: One Million Atoms ====&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_12.jpg|&#039;&#039;&#039;Figure 11(a):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_13.jpg|&#039;&#039;&#039;Figure 11(b):&#039;&#039;&#039; Total MSD plotted against timestep for the liquid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_14.jpg|&#039;&#039;&#039;Figure 11(c):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;For the same&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulation repeated using one million atoms, values of total MSD obtained were higher compared to that with fewer atoms (except for the solid phase where the total MSD was lowered). Moreover, total MSD for the liquid and vapour phases increased more linearly when using more atoms (and this was most evident for the vapour phase).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Extension: Velocity Autocorrelation Function (VACF) ====&lt;br /&gt;
The other alternative way of calculating D was by using the velocity autocorrelation function. The same input script was used here (as in the previous MSD section) and the simulation was ran for the solid, liquid and vapour phases. All data was obtained from the &amp;quot;optional output-3&amp;quot; files.&lt;br /&gt;
&lt;br /&gt;
In relation to the theoretical concepts covered in the 1D harmonic oscillator, the &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;normalised velocity autocorrelation function, C(τ) was evaluated for this 1D harmonic system:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Given that C(τ) = &amp;lt; v(t).v(t+τ) &amp;gt; and x(t) = cos(ωt+ϕ),&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;VACF of a 1D harmonic oscillator, C(τ) = ∫ v(t).v(t+τ) dt&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, the normalised VACF, C(τ) = ∫ v(t).v(t+τ) dt / ∫ v(t)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; dt&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence to compare between the different oscillating systems, the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;C(τ) with ω=1/(2п) along with the VACFs from the solid and liquid simulations was plotted along the same axes, from x = 0 to 500.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_15.jpg|&#039;&#039;&#039;Figure 12:&#039;&#039;&#039; C(τ) with ω=1/(2п) and the VACFs of the solid and liquid phases as a function of timestep (x = 0 to 500)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;In the solid and liquid phases, where atoms are close to each other and of high density, strong interatomic forces were most evident. Atoms in these systems tend to adopt a position where there was a balance between the attractive and repulsive forces, thus they will not be easily displaced. As a result, these atoms will oscillate as part of their motion, vibrating between points of maxima and minima. Hence, this gave rise to a VACF function which showed a periodic oscillation from positive to negative values.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;For the case of solids, the magnitude of oscillation decayed over time due to forces acting to oppose these motion, thus the function closely resembled a damped oscillation that decreased exponentially. Whilst for liquids, the atoms behaved similarly but they were able to glide among themselves. The process of diffusion also drastically weakened any oscillatory motion the system possessed and the VACF function showed a very damp oscillation, with only a single minima point.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The minima in the VACFs in the solid and liquid system relates to the maximum change in the magnitude or direction (of the atoms in the system), thus altering their velocities, giving rise to a minimum value for the product of v(t=0) and v(t=τ).&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;On the other hand, the 1D harmonic oscillator model has a VACF function of constant amplitude (A=1) and period (T=40 s). Its magnitude of oscillation was greater than that of the solid and liquid systems, implying that no damping or perturbative forces had acted upon the system throughout its motion (and based on Newton’s Law of Motion the oscillation its motion will not change and continue to remain this way). Whereas, unlike the Lennard-Jones model describe earlier, atoms in the 1D harmonic oscillator do not interact with each other by attraction or repulsion and thus no energy was dissipated.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 4. The Trapezium Rule ====&lt;br /&gt;
Utilising the trapezium rule (TR) to approximately calculate the integral or area under the VACF graph, the values of D were estimated for each of the three physical phases.&lt;br /&gt;
&lt;br /&gt;
Given D = 1/3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ &amp;lt;v(0).v(τ)&amp;gt; dτ, then &amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/3 (area under the graph of C(τ) vs timestep).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus using the area under the graph obtained by the TR, for:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/3 (216.9089038) = 72.303 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/3 (277.865793) = 92.622 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/3 (10675.4021) = 3358.467 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The values of D above were as expected, with it increasing in magnitude from the solid to vapour phase. Going a step further, the running integrals for each case were also evaluated (once again using the TR) and plotted as a function of timestep as follows:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_16.jpg|&#039;&#039;&#039;Figure 13(a):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for the solid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_17.jpg|&#039;&#039;&#039;Figure 13(b):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for the liquid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_18.jpg|&#039;&#039;&#039;Figure 13(c):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for the gas phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 5. VACF: One Million Atoms ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;For one million atoms,&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Solid: D = 1/3 (176.9191107) = 58.973 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Liquid: D = 1/3 (151.586442) = 50.529 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Vapour: D = 1/3 (4902.698696) = 1634.233 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The values of diffusion coefficient increases from the solid to vapour phase&lt;br /&gt;
as predicted, but is anomalous for the liquid phase.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Fill&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654565</id>
		<title>Rep:Mod:dw3015 y3c liqsim</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654565"/>
		<updated>2017-12-20T17:16:22Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: /* 5. VACF: One Million Atoms */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Year 3 Computational Labs=&lt;br /&gt;
&lt;br /&gt;
= Molecular Dynamics Simulations of Simple Liquids =&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Aims and Objectives ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
In order for the simulation to replicate a real system as accurately, a few criterion had been defined, namely the simulation model, initial test parameters, forcefield, final parameters and tools used.&lt;br /&gt;
&lt;br /&gt;
=== Velocity-Verlet Algorithm and Timestep ===&lt;br /&gt;
Using approximations, we assumed that atoms will behave classically and therefore the velocity-Verlet algorithm was applied into the simulation, where we&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; have defined the starting positions of the atoms, x&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0) and their velocities at the same time, v&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0). As an example, this algorithm was used in a simple harmonic oscillator: &amp;lt;/span&amp;gt;https://goo.gl/As44o7&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.1 was initially tested. Subsequently, the value of &amp;quot;ERROR&amp;quot; as function of time was investigated and was found that this relationship was given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;y = 0.000422x + 0.000073&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;R-squared value = 0.999977&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The function above remained constant although the value of timestep was varied. It was found that w&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;hen timestep was increased, this will add more cycles to the &amp;quot;ENERGY&amp;quot; and &amp;quot;ERROR&amp;quot; graphs but period remained constant. Amplitude of &amp;quot;ERROR&amp;quot; graph will increase over time leading to bigger magnitude in error. However, the function of maxima in the &amp;quot;ERROR&amp;quot; graph was unchanged. The &amp;quot;ENERGY&amp;quot; graph will also have higher amplitude, hence bigger change in total energy. Timestep must therefore not exceed 0.1990665 for change in total energy to remain below 1%.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The prove of concept is shown here: https://goo.gl/zC9YU9&lt;br /&gt;
&lt;br /&gt;
Moreover, the t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;otal energy of a physical system was measured and expected to remain constant, indicating that the system has completed equilibration and energy has been completely redistributed among the particles in a given system (through collisions) upon the start of the simulation.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Model ===&lt;br /&gt;
A simple particle in a box model was used for all of the simulations. Using LAMMPS, a cubic box of a given length containing a given amount of atoms of mass 1.0 was created. This will form the boundary for the simulations carried out.&lt;br /&gt;
&lt;br /&gt;
For atoms that move beyond this boundary, the periodic boundary conditions was able to correct the atoms&#039; coordinates by allowing its replica to enter from the opposite face.&lt;br /&gt;
&lt;br /&gt;
For instance, a&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;n atom at position (0.5, 0.5, 0.5) in a cubic simulation box which runs from (0, 0, 0) to (1.0, 1.0, 1.0), moving along a vector (0.7, 0.6, 0.2) in a single timestep, its final position is at (1.2, 1.1, 0.7). But after applying periodic boundary conditions, the atom position was corrected to (0.2, 0.1, 0.7).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To give an idea of the number of molecules simulated, the number of moles of 1 ml of water under standard conditions were estimated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of 1 ml water = ρV = 1 g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;n of 1ml water = m/M&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 0.05550843506 mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number of water molecules = nN&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 3.342796 x 10&amp;lt;sup&amp;gt;22&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a large and unsuitable number to simulate. A value of 10000 would be more reasonable, thus the volume of 10000 water molecules was calculated to give a better perspective:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For 10000 water molecules, n of water = n.o.m./N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 1.660539&lt;br /&gt;
x 10&amp;lt;sup&amp;gt;-20&amp;lt;/sup&amp;gt; mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of water = nM&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V of water = m/ρ = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; ml&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Forcefield ===&lt;br /&gt;
The Lennard-Jones potential, which fits well into the physic of the simulation, was utilised knowing that the force acting on the atoms depended on the potential they experienced. At longer distances however, this interaction will be so small that it can be negligible, so a cutoff point of 3.0&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ was put in place.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Lennard-Jones Potential, U = 4ε [(σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To understand the relationship better, the separation &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; at which the potential of zero was evaluated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;When U=0, (σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Let (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = y, thus y&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;-y = 0, y(y-1) = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore, y=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0, undefined; (y-1)=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;= 1, hence R=r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;=σ (F = repulsive force)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along with the separation at equilibrium and hence the well depth &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ϕ(r&amp;lt;sub&amp;gt;eq),&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;At equilibrium, F=0 (minimum), dU/dR = -48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&lt;br /&gt;
+ 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For turning point, dU/dR = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;),&lt;br /&gt;
(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)/(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;, R&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;=2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;,&lt;br /&gt;
hence R=(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)σ, R=r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;=1.12246σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore well depth, ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;)&lt;br /&gt;
- (σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;)]&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(1/4)-(1/2)], ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = -ε (minimum)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Moreover, the values of integrals of 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, 2.5 σ and 3 σ to infinity were calculated respectively:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;∫ϕ(r)dr = -1/3εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;), and when σ=ε=1,&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.020671&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2.5 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0068127&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0027416&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
The quantities used in the simulation were treated and divided with a scaling factor, such as &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ or &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ε, to ensure that our results were more manageable. For example, for argon with Lennard-Jones (LJ) parameters σ = 0.34nm and ε/&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; = 120K, its LJ cutoff r* = 3.2 in real units was:&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r=r*σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r = 3.2(0.34 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt;) = 1.088 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; m&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, its well depth in real units was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = ε = k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T x N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ε = (1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(120 K)(6.02214 x 10&amp;lt;sup&amp;gt;23 &amp;lt;/sup&amp;gt;&#039;&#039;mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; = 0.997735 kJ mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, the reduced temperature T* = 1.5 can be calculated in real units:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = T*ε/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = 1.5(997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)/(1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(6.02214 &#039;&#039;x 10&amp;lt;sup&amp;gt;23&amp;lt;/sup&amp;gt; mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 180 K&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lattice Structure ===&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Giving atoms random starting coordinates can be problematic as this may generate two atoms close to each other in our simulation, where if the separation between them was below σ, this can cause a strong (or even infinite) repulsion pushing the atoms apart. Therefore, the atoms were initially created in a 3D simple cubic (sc) lattice.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given that the number density (N/V) of lattice points was 0.8, the lattice spacing was found to be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number density, ρ=N/V, V=N/ρ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V = 1/0.8 = 1.25&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;L&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;attice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√1.25 = 1.07722&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or a face-centred cubic (fcc) lattice with number density 1.2, its lattice spacing was calculated:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.2 = 3.33333&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√3.33333 = 1.49380&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Furthermore, a simulation sc box of width 10 was created as a control. Within this region, there were &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;4000 atoms present (4 atoms in each unit cell where there are 10x10x10 = 1000 unit cells). Following this, the mass and pair coefficient of the each type of atom were assigned as below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Definitions for each line in the command code are provided as such:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Assigning mass of value 1.0 to all type 1 atoms&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Specifying a standard 12/6 Lennard-Jones potential with no Coulomb between atom pairs with global LJ cutoff set to distance r*=3.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Setting the pairwise forcefield coefficients for the&lt;br /&gt;
symmetric I,J interaction to the same value of 1.0 for all (given by asterisk) type 1 with type 1 atom pairs&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Timestep Optimisation ===&lt;br /&gt;
The code below was written in the input script with the timestep taking a value of 0.001:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### SPECIFY TIMESTEP ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable timestep equal 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable n_steps equal floor(100/${timestep})&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep ${timestep}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### RUN SIMULATION ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run ${n_steps}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: T&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he variable command is a loop which was assigned a value that is later evaluated in the input script, where in this case timestep was equal to 0.001. This is useful because the defined value can be referenced in subsequent variables, therefore making it reusable and eliminating the need to repeatedly input the value 0.001. For instance, the defined timestep was used in the math function &amp;quot;floor&amp;quot; assigned to variable n_step and subsequently the value n_step is used in the &amp;quot;run&amp;quot; command. Hence, this coding method will be more pragmatic than just writing the script simply as:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choosing the correct timestep was crucial for the subsequent simulations which were undertaken. To determine the optimum timestep, simulations using different timesteps (0.001, 0.0025, 0.0075, 0.01 and 0.015) were tested. To illustrate that the simulation had equilibrated, the graphs of total e&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;nergy, temperature and pressure against time were plotted for the 0.001 timestep experiment:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_1.jpg|&#039;&#039;&#039;Figure 1:&#039;&#039;&#039; Total energy against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_2.jpg|&#039;&#039;&#039;Figure 2:&#039;&#039;&#039; Temperature against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_3.jpg|&#039;&#039;&#039;Figure 3:&#039;&#039;&#039; Pressure against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the plots above, the simulation did achieve equilibrium and the values of total energy, temperature and pressure had converged to a constant average (within a certain degree of error) at approximately 0.5 s into the simulation.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_4.jpg|&#039;&#039;&#039;Figure 4:&#039;&#039;&#039; Single plot of total energy against time for all five timesteps.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Among the five timesteps, 0.001 was most likely to give acceptable results. The data obtained was of high resolution, with the smallest interval between data points. The simulation was said to give the best representation of a physical reality being investigated. On the other hand, a timestep of 0.015 was the least suitable choice because the total energy does not converge. The energy initially stabilised but subsequently diverged (increased) after 20 s and thus system has not fully equilibrated. To give the best balance between resolution and speed (time taken to complete a simulation), timestep within the acceptable range of 0.001 to 0.003 were used. Any timestep above 0.003 would not properly allow for total energy to converge and gives a large gap between data points.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== LAMMPS Toolkit ===&lt;br /&gt;
The LAMMPS Molecular Dynamics Simulator is an extremely useful simulation software containing a vast array of tools that was further utilised throughout this experiment. Among them were the &amp;quot;variable&amp;quot; and &amp;quot;thermo_style&amp;quot; commands used in changing ensembles and measuring thermodynamics properties respectively, which were crucial in obtaining key data. Towards the end of the investigation, the usage of the radial distribution function (RDF), mean squared displacement (MSD) and velocity autocorrelation function (VACF) were also explored and applied into many of the simulations conducted.&lt;br /&gt;
&lt;br /&gt;
=== Visual Molecular Dynamics (VMD) ===&lt;br /&gt;
To help visualise some of the simulations, LAMMPS was also supported by the VMD 3D graphics programme that was able to read trajectory (.trj) files in order to display our simulation through multiple modes and perspectives. This software was also used to conduct further calculations such as evaluating running integrals for the RDF.&lt;br /&gt;
&lt;br /&gt;
== Results and Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== NpT Ensemble ===&lt;br /&gt;
For this section of the investigation, the simulation has been modified so that it can run under NpT conditions (called the isobaric-isothermal ensemble in statistical mechanics) to understand what changes to thermodynamic properties occur at this particular experimental condition. The data collected was used to plot an equation of state at atmospheric pressure for the case of our model fluid.&lt;br /&gt;
&lt;br /&gt;
Five values of temperature (2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;.0, 2.5, 3.0, 3.5, 4.0&amp;lt;/span&amp;gt;) and two values of pressure (3.0, 4.0) given in Lennard-Jones units were chosen based on the results of the optimisation test ran earlier. The timestep was set to 0.0025 and the input script modified accordingly for all ten (p,T) phase points before being submitted to LAMMPS.&lt;br /&gt;
&lt;br /&gt;
==== 1. Controlling Temperature ====&lt;br /&gt;
In general, temperature, T at a given time during the course of the simulation will be prone to fluctuations and will differ slightly from the intended temperature of the system, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;𝛕 (value specified in the input script). However, T can be easily controlled by multiplying each velocity term of each atom by a constant factor, γ whereby:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The kinetic energy of the system can be written as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T &#039;&#039;&#039;&#039;&#039;(Eq. 1)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;𝛕 &#039;&#039;&#039;&#039;&#039;(Eq. 2)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Dividing (Eq. 2) by (Eq. 1):&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)/( v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;) = 𝛕/T&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 𝛕/T, thus γ = √(𝛕/T)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, the value of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;γ can be determined and used to correct any deviations in T.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Sampling and Averaging ====&lt;br /&gt;
In the input script, there were lines entered as:&lt;br /&gt;
 fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
 run 100000&lt;br /&gt;
These lines were needed to measure key thermodynamics properties such as density, temperature and pressure respectively. Most importantly, the values 100, 1000 and 100000 play a vital role in directing how often these properties are averaged and how many measurements contribute to the final average. Each number is represented as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100 = Nevery&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1000 = Nrepeat&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100000 = Nfreq&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The three arguments above specify the timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a multiple of 100000. The average was over 1000 quantities, computed in the preceding portion of the simulation every 100 timesteps. Nfreq must be a multiple of Nevery and Nevery must be non-zero even if Nrepeat was 1. Also, the timesteps contributing to the average value cannot overlap, i.e. Nrepeat*Nevery cannot exceed Nfreq.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;, by referring to the log (.log) output file, the amount of time that has been simulated for this investigation was 50 s.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Equation of State ====&lt;br /&gt;
The density of the system obtained from the log files were plotted against temperature for both of pressures that were simulated, including error bars. Also included in the graphs was a curve for the expected densities as predicted by the ideal gas law, pV =NkT. &amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_5.jpg|&#039;&#039;&#039;Figure 5:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 3.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_6.jpg|&#039;&#039;&#039;Figure 6:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 4.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;It was found that the&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulated density was always lower than the values predicted by the ideal gas law for a given pressure. This was because for an ideal gas, there was no interactions between the atoms whereas the atoms in our simulation had been modeled using a forcefield of the Lennard-Jones potential. Moreover, the discrepancy between the observed and predicted values of density increased with pressure, especially at the lower temperatures where the deviation was larger.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== NVT Ensemble ===&lt;br /&gt;
&lt;br /&gt;
==== 1. Heat Capacity ====&lt;br /&gt;
In a particular system where temperature was fixed, thermodynamic properties such as total energy were likely to fluctuate from its constant average and these fluctuations gives rise to the heat capacity, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv&amp;lt;/span&amp;gt; where its value can be calculated using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv = δE/δT = N&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.Var(E)/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, it was important to note that the simulation carried out here was altered to NVT conditions (canonical ensemble). As with the previous simulation, ten phase points were required, but this time using five values of temperature (2.0, 2.2, 2.4, 2.6, 2.8) and two values of density (0.2, 0.8). A copy of the modified input script for NVT is attached below to highlight the changes made:&lt;br /&gt;
&lt;br /&gt;
https://goo.gl/5GnrfV&lt;br /&gt;
&lt;br /&gt;
==== 2. Results ====&lt;br /&gt;
Once data was collected from the log files (but without standard errors), the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv/V against average temperature was plotted on the same axes, where V was the volume of the simulation cell.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_7.jpg|&#039;&#039;&#039;Figure 7:&#039;&#039;&#039; A plot of heat capacity over volume as a function of average temperature&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the results obtained, this was not the trend that was expected. The data supposed to show a constant heat capacity for both densities, but instead heat capacity decreases when temperature was increased. Comparing both sets of data, for a system having a higher density, its heat capacity will in turn be raised.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Radial Distribution Function (RDF) ===&lt;br /&gt;
The radial pair distribution function or g(r) is &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;defined as the probability of locating the nearest neighbouring atom at a distance r from a reference atom. The visualising software VMD was used to calculate the RDF of three simulations under different states, that were the solid, liquid and vapour phases.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 1. Phase Transitions ====&lt;br /&gt;
In order to set up the various states, the values of d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ensity and temperature of the simulation were modified appropriately based on the phase transitions of the Lennard-Jones system. The following were the set of parameters determined for each state:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.002 was used to run all simulations in LAMMPS.&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_solid.JPG|&#039;&#039;&#039;Figure 8(a):&#039;&#039;&#039; View of solid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_liquid.JPG|&#039;&#039;&#039;Figure 8(b):&#039;&#039;&#039; View of liquid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_vapour.JPG|&#039;&#039;&#039;Figure 8(c):&#039;&#039;&#039; View of gas phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Qualitative Analysis of RDF ====&lt;br /&gt;
When each simulation was completed, its .trj file was inputted into VMD where the value of g(r) and &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ g(r) dr (or running integral) were evaluated. The graph of RDF against reduced distance were plotted on the same axes for all three states.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_8.jpg|&#039;&#039;&#039;Figure 9:&#039;&#039;&#039; Combined g(r) against reduced distance plot for the solid, liquid and vapour systems&lt;br /&gt;
&amp;lt;/gallery&amp;gt;In the s&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;olid RDF, the function showed a regular pattern of peaks with almost the similar intervals over a long range of distance. The peaks were discrete at approximately σ, √2 σ, √3 σ, and so on. There was a very high chance of finding an atom at the position of these peaks whilst the probability of locating an atom between the peaks was very low. This illustrated that solids had a uniform packing structure and had very little defect within the lattice. Moreover, the first three peaks corresponded to the first, second and third coordination shells.&lt;br /&gt;
&lt;br /&gt;
Thus the lattice spacing can be determined:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.4 = 2.85714&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√2.85714 = 1.41898&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;To calculate the coordination number, g(r) was integrated in spherical coordinates to the first minimum of the RDF. Hence, the coordination numbers for the solid were: first peak (12), second peak (4), and third peak (8).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the l&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iquid RDF, the first and sharpest peak occured close to σ and the subsequent peaks appeared at about intervals of σ, but smaller than the first peak. At longer distances of r, the value of g(r) remained unchanged at 1, showing that liquid particles were independent of one another. Thus, liquids were less closely packed compared to solids and had the ability to move dynamically, hence they do not possess a fixed structure. They were able to form multiple coordination spheres, but in most cases, there was only one coordination sphere present at a given time.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the v&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;apour RDF, the function only showed one obvious peak at about σ which then plateaued off at a value of g(r) = 1, the normal bulk density of the system. The regions that experienced the greatest intermolecular forces when g(r) &amp;gt; 1 were for 1 &amp;lt; σ &amp;lt; 2.5. From this result, it was concluded that gases tend to move around randomly in a sporadic motion (Brownian motion) and at most, they only have a single short-lived coordination sphere.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Diffusion Coefficient ===&lt;br /&gt;
In this experiment, the way in which atoms move around in the system (through translational motion) was of particular interest. This form of motion was governed by the diffusion coefficient, D or mass diffusivity, which can be measured using two main methods detailed below: &lt;br /&gt;
&lt;br /&gt;
==== 1. Mean Squared Displacement (MSD) ====&lt;br /&gt;
Since D was closely related to MSD, a simulation was ran (at specific density and temperature) for all three phases with an additional input command to calculate MSD and VACF (mentioned in next section). The set of parameters used to obtain each physical phase were identical those implemented during the RDF investigation:&lt;br /&gt;
&lt;br /&gt;
Timestep = 0.002&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once data was obtained from the &amp;quot;optional output-2&amp;quot; files, the total MSD (resultant MSD from individual Cartesian directions (x,y,z)) was plotted against timestep:&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_9.jpg|&#039;&#039;&#039;Figure 10(a):&#039;&#039;&#039; Total MSD as a function of timestep for the solid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_10.jpg|&#039;&#039;&#039;Figure 10(b):&#039;&#039;&#039; Total MSD as a function of timestep for the liquid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_11.jpg|&#039;&#039;&#039;Figure 10(c):&#039;&#039;&#039; Total MSD as a function of timestep for the gas phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The relationship between total MSD and timestep obtained for the three phases were as expected. Total MSD for solids initially fluctuated before becoming constant whereas for the liquid phase, its values increased linearly but gradually, and as for the vapour phase, total MSD increased linearly and rapidly.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since D = 1/6 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;δ&amp;lt;r&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;(t)&amp;gt; / δt, &amp;lt;/span&amp;gt;then &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/6 (gradient of graph of MSD vs timestep).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus using the gradient of the best-fit line, for:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/6 (2.3514 x 10&amp;lt;sup&amp;gt;-8&amp;lt;/sup&amp;gt;) = 3.919 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/6 (1.3140 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt;) = 2.190 x 10&amp;lt;sup&amp;gt;-4&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/6 (7.2313 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt;) = 1.205 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this, the d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iffusion coefficient was shown to have increased going from solids to gases. Moreover, it was noted that the diffusion coefficient for the solid phase was so small, it was negligible (zero).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. MSD: One Million Atoms ====&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_12.jpg|&#039;&#039;&#039;Figure 11(a):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_13.jpg|&#039;&#039;&#039;Figure 11(b):&#039;&#039;&#039; Total MSD plotted against timestep for the liquid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_14.jpg|&#039;&#039;&#039;Figure 11(c):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;For the same&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulation repeated using one million atoms, values of total MSD obtained were higher compared to that with fewer atoms (except for the solid phase where the total MSD was lowered). Moreover, total MSD for the liquid and vapour phases increased more linearly when using more atoms (and this was most evident for the vapour phase).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Extension: Velocity Autocorrelation Function (VACF) ====&lt;br /&gt;
The other alternative way of calculating D was by using the velocity autocorrelation function. The same input script was used here (as in the previous MSD section) and the simulation was ran for the solid, liquid and vapour phases.&lt;br /&gt;
&lt;br /&gt;
In relation to the theoretical concepts covered in the 1D harmonic oscillator, the &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;normalised velocity autocorrelation function, C(τ) was evaluated for this 1D harmonic system:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Given that C(τ) = &amp;lt; v(t).v(t+τ) &amp;gt; and x(t) = cos(ωt+ϕ),&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;VACF of a 1D harmonic oscillator, C(τ) = ∫ v(t).v(t+τ) dt&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, the normalised VACF, C(τ) = ∫ v(t).v(t+τ) dt / ∫ v(t)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; dt&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence to compare between the different oscillating systems, the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;C(τ) with ω=1/(2п) along with the VACFs from the solid and liquid simulations was plotted along the same axes, from x = 0 to 500.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_15.jpg|&#039;&#039;&#039;Figure 12:&#039;&#039;&#039; C(τ) with ω=1/(2п) and the VACFs of the solid and liquid phases as a function of timestep (x = 0 to 500)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;In the solid and liquid phases, where atoms are close to each other and of high density, strong interatomic forces were most evident. Atoms in these systems tend to adopt a position where there was a balance between the attractive and repulsive forces, thus they will not be easily displaced. As a result, these atoms will oscillate as part of their motion, vibrating between points of maxima and minima. Hence, this gave rise to a VACF function which showed a periodic oscillation from positive to negative values.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;For the case of solids, the magnitude of oscillation decayed over time due to forces acting to oppose these motion, thus the function closely resembled a damped oscillation that decreased exponentially. Whilst for liquids, the atoms behaved similarly but they were able to glide among themselves. The process of diffusion also drastically weakened any oscillatory motion the system possessed and the VACF function showed a very damp oscillation, with only a single minima point.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The minima in the VACFs in the solid and liquid system relates to the maximum change in the magnitude or direction (of the atoms in the system), thus altering their velocities, giving rise to a minimum value for the product of v(t=0) and v(t=τ).&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;On the other hand, the 1D harmonic oscillator model has a VACF function of constant amplitude (A=1) and period (T=40 s). Its magnitude of oscillation was greater than that of the solid and liquid systems, implying that no damping or perturbative forces had acted upon the system throughout its motion (and based on Newton’s Law of Motion the oscillation its motion will not change and continue to remain this way). Whereas, unlike the Lennard-Jones model describe earlier, atoms in the 1D harmonic oscillator do not interact with each other by attraction or repulsion and thus no energy was dissipated.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 4. The Trapezium Rule ====&lt;br /&gt;
Utilising the trapezium rule (TR) to approximately calculate the integral or area under the VACF graph, the values of D were estimated for each of the three physical phases.&lt;br /&gt;
&lt;br /&gt;
Given D = 1/3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ &amp;lt;v(0).v(τ)&amp;gt; dτ, then &amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/3 (area under the graph of C(τ) vs timestep).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus using the area under the graph obtained by the TR, for:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/3 (216.9089038) = 72.303 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/3 (277.865793) = 92.622 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/3 (10675.4021) = 3358.467 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The values of D above were as expected, with it increasing in magnitude from the solid to vapour phase. Going a step further, the running integrals for each case were also evaluated (once again using the TR) and plotted as a function of timestep as follows:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_16.jpg|&#039;&#039;&#039;Figure 13(a):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for the solid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_17.jpg|&#039;&#039;&#039;Figure 13(b):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for the liquid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_18.jpg|&#039;&#039;&#039;Figure 13(c):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for the gas phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 5. VACF: One Million Atoms ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;For one million atoms,&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Solid: D = 1/3 (176.9191107) = 58.973 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Liquid: D = 1/3 (151.586442) = 50.529 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Vapour: D = 1/3 (4902.698696) = 1634.233 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The values of diffusion coefficient increases from the solid to vapour phase&lt;br /&gt;
as predicted, but is anomalous for the liquid phase.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Fill&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654564</id>
		<title>Rep:Mod:dw3015 y3c liqsim</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654564"/>
		<updated>2017-12-20T17:14:14Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: /* 5. VACF: One Million Atoms */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Year 3 Computational Labs=&lt;br /&gt;
&lt;br /&gt;
= Molecular Dynamics Simulations of Simple Liquids =&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Aims and Objectives ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
In order for the simulation to replicate a real system as accurately, a few criterion had been defined, namely the simulation model, initial test parameters, forcefield, final parameters and tools used.&lt;br /&gt;
&lt;br /&gt;
=== Velocity-Verlet Algorithm and Timestep ===&lt;br /&gt;
Using approximations, we assumed that atoms will behave classically and therefore the velocity-Verlet algorithm was applied into the simulation, where we&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; have defined the starting positions of the atoms, x&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0) and their velocities at the same time, v&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0). As an example, this algorithm was used in a simple harmonic oscillator: &amp;lt;/span&amp;gt;https://goo.gl/As44o7&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.1 was initially tested. Subsequently, the value of &amp;quot;ERROR&amp;quot; as function of time was investigated and was found that this relationship was given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;y = 0.000422x + 0.000073&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;R-squared value = 0.999977&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The function above remained constant although the value of timestep was varied. It was found that w&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;hen timestep was increased, this will add more cycles to the &amp;quot;ENERGY&amp;quot; and &amp;quot;ERROR&amp;quot; graphs but period remained constant. Amplitude of &amp;quot;ERROR&amp;quot; graph will increase over time leading to bigger magnitude in error. However, the function of maxima in the &amp;quot;ERROR&amp;quot; graph was unchanged. The &amp;quot;ENERGY&amp;quot; graph will also have higher amplitude, hence bigger change in total energy. Timestep must therefore not exceed 0.1990665 for change in total energy to remain below 1%.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The prove of concept is shown here: https://goo.gl/zC9YU9&lt;br /&gt;
&lt;br /&gt;
Moreover, the t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;otal energy of a physical system was measured and expected to remain constant, indicating that the system has completed equilibration and energy has been completely redistributed among the particles in a given system (through collisions) upon the start of the simulation.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Model ===&lt;br /&gt;
A simple particle in a box model was used for all of the simulations. Using LAMMPS, a cubic box of a given length containing a given amount of atoms of mass 1.0 was created. This will form the boundary for the simulations carried out.&lt;br /&gt;
&lt;br /&gt;
For atoms that move beyond this boundary, the periodic boundary conditions was able to correct the atoms&#039; coordinates by allowing its replica to enter from the opposite face.&lt;br /&gt;
&lt;br /&gt;
For instance, a&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;n atom at position (0.5, 0.5, 0.5) in a cubic simulation box which runs from (0, 0, 0) to (1.0, 1.0, 1.0), moving along a vector (0.7, 0.6, 0.2) in a single timestep, its final position is at (1.2, 1.1, 0.7). But after applying periodic boundary conditions, the atom position was corrected to (0.2, 0.1, 0.7).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To give an idea of the number of molecules simulated, the number of moles of 1 ml of water under standard conditions were estimated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of 1 ml water = ρV = 1 g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;n of 1ml water = m/M&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 0.05550843506 mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number of water molecules = nN&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 3.342796 x 10&amp;lt;sup&amp;gt;22&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a large and unsuitable number to simulate. A value of 10000 would be more reasonable, thus the volume of 10000 water molecules was calculated to give a better perspective:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For 10000 water molecules, n of water = n.o.m./N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 1.660539&lt;br /&gt;
x 10&amp;lt;sup&amp;gt;-20&amp;lt;/sup&amp;gt; mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of water = nM&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V of water = m/ρ = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; ml&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Forcefield ===&lt;br /&gt;
The Lennard-Jones potential, which fits well into the physic of the simulation, was utilised knowing that the force acting on the atoms depended on the potential they experienced. At longer distances however, this interaction will be so small that it can be negligible, so a cutoff point of 3.0&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ was put in place.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Lennard-Jones Potential, U = 4ε [(σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To understand the relationship better, the separation &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; at which the potential of zero was evaluated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;When U=0, (σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Let (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = y, thus y&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;-y = 0, y(y-1) = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore, y=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0, undefined; (y-1)=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;= 1, hence R=r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;=σ (F = repulsive force)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along with the separation at equilibrium and hence the well depth &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ϕ(r&amp;lt;sub&amp;gt;eq),&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;At equilibrium, F=0 (minimum), dU/dR = -48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&lt;br /&gt;
+ 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For turning point, dU/dR = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;),&lt;br /&gt;
(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)/(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;, R&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;=2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;,&lt;br /&gt;
hence R=(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)σ, R=r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;=1.12246σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore well depth, ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;)&lt;br /&gt;
- (σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;)]&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(1/4)-(1/2)], ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = -ε (minimum)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Moreover, the values of integrals of 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, 2.5 σ and 3 σ to infinity were calculated respectively:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;∫ϕ(r)dr = -1/3εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;), and when σ=ε=1,&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.020671&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2.5 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0068127&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0027416&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
The quantities used in the simulation were treated and divided with a scaling factor, such as &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ or &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ε, to ensure that our results were more manageable. For example, for argon with Lennard-Jones (LJ) parameters σ = 0.34nm and ε/&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; = 120K, its LJ cutoff r* = 3.2 in real units was:&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r=r*σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r = 3.2(0.34 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt;) = 1.088 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; m&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, its well depth in real units was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = ε = k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T x N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ε = (1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(120 K)(6.02214 x 10&amp;lt;sup&amp;gt;23 &amp;lt;/sup&amp;gt;&#039;&#039;mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; = 0.997735 kJ mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, the reduced temperature T* = 1.5 can be calculated in real units:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = T*ε/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = 1.5(997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)/(1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(6.02214 &#039;&#039;x 10&amp;lt;sup&amp;gt;23&amp;lt;/sup&amp;gt; mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 180 K&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lattice Structure ===&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Giving atoms random starting coordinates can be problematic as this may generate two atoms close to each other in our simulation, where if the separation between them was below σ, this can cause a strong (or even infinite) repulsion pushing the atoms apart. Therefore, the atoms were initially created in a 3D simple cubic (sc) lattice.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given that the number density (N/V) of lattice points was 0.8, the lattice spacing was found to be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number density, ρ=N/V, V=N/ρ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V = 1/0.8 = 1.25&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;L&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;attice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√1.25 = 1.07722&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or a face-centred cubic (fcc) lattice with number density 1.2, its lattice spacing was calculated:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.2 = 3.33333&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√3.33333 = 1.49380&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Furthermore, a simulation sc box of width 10 was created as a control. Within this region, there were &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;4000 atoms present (4 atoms in each unit cell where there are 10x10x10 = 1000 unit cells). Following this, the mass and pair coefficient of the each type of atom were assigned as below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Definitions for each line in the command code are provided as such:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Assigning mass of value 1.0 to all type 1 atoms&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Specifying a standard 12/6 Lennard-Jones potential with no Coulomb between atom pairs with global LJ cutoff set to distance r*=3.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Setting the pairwise forcefield coefficients for the&lt;br /&gt;
symmetric I,J interaction to the same value of 1.0 for all (given by asterisk) type 1 with type 1 atom pairs&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Timestep Optimisation ===&lt;br /&gt;
The code below was written in the input script with the timestep taking a value of 0.001:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### SPECIFY TIMESTEP ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable timestep equal 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable n_steps equal floor(100/${timestep})&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep ${timestep}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### RUN SIMULATION ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run ${n_steps}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: T&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he variable command is a loop which was assigned a value that is later evaluated in the input script, where in this case timestep was equal to 0.001. This is useful because the defined value can be referenced in subsequent variables, therefore making it reusable and eliminating the need to repeatedly input the value 0.001. For instance, the defined timestep was used in the math function &amp;quot;floor&amp;quot; assigned to variable n_step and subsequently the value n_step is used in the &amp;quot;run&amp;quot; command. Hence, this coding method will be more pragmatic than just writing the script simply as:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choosing the correct timestep was crucial for the subsequent simulations which were undertaken. To determine the optimum timestep, simulations using different timesteps (0.001, 0.0025, 0.0075, 0.01 and 0.015) were tested. To illustrate that the simulation had equilibrated, the graphs of total e&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;nergy, temperature and pressure against time were plotted for the 0.001 timestep experiment:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_1.jpg|&#039;&#039;&#039;Figure 1:&#039;&#039;&#039; Total energy against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_2.jpg|&#039;&#039;&#039;Figure 2:&#039;&#039;&#039; Temperature against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_3.jpg|&#039;&#039;&#039;Figure 3:&#039;&#039;&#039; Pressure against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the plots above, the simulation did achieve equilibrium and the values of total energy, temperature and pressure had converged to a constant average (within a certain degree of error) at approximately 0.5 s into the simulation.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_4.jpg|&#039;&#039;&#039;Figure 4:&#039;&#039;&#039; Single plot of total energy against time for all five timesteps.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Among the five timesteps, 0.001 was most likely to give acceptable results. The data obtained was of high resolution, with the smallest interval between data points. The simulation was said to give the best representation of a physical reality being investigated. On the other hand, a timestep of 0.015 was the least suitable choice because the total energy does not converge. The energy initially stabilised but subsequently diverged (increased) after 20 s and thus system has not fully equilibrated. To give the best balance between resolution and speed (time taken to complete a simulation), timestep within the acceptable range of 0.001 to 0.003 were used. Any timestep above 0.003 would not properly allow for total energy to converge and gives a large gap between data points.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== LAMMPS Toolkit ===&lt;br /&gt;
The LAMMPS Molecular Dynamics Simulator is an extremely useful simulation software containing a vast array of tools that was further utilised throughout this experiment. Among them were the &amp;quot;variable&amp;quot; and &amp;quot;thermo_style&amp;quot; commands used in changing ensembles and measuring thermodynamics properties respectively, which were crucial in obtaining key data. Towards the end of the investigation, the usage of the radial distribution function (RDF), mean squared displacement (MSD) and velocity autocorrelation function (VACF) were also explored and applied into many of the simulations conducted.&lt;br /&gt;
&lt;br /&gt;
=== Visual Molecular Dynamics (VMD) ===&lt;br /&gt;
To help visualise some of the simulations, LAMMPS was also supported by the VMD 3D graphics programme that was able to read trajectory (.trj) files in order to display our simulation through multiple modes and perspectives. This software was also used to conduct further calculations such as evaluating running integrals for the RDF.&lt;br /&gt;
&lt;br /&gt;
== Results and Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== NpT Ensemble ===&lt;br /&gt;
For this section of the investigation, the simulation has been modified so that it can run under NpT conditions (called the isobaric-isothermal ensemble in statistical mechanics) to understand what changes to thermodynamic properties occur at this particular experimental condition. The data collected was used to plot an equation of state at atmospheric pressure for the case of our model fluid.&lt;br /&gt;
&lt;br /&gt;
Five values of temperature (2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;.0, 2.5, 3.0, 3.5, 4.0&amp;lt;/span&amp;gt;) and two values of pressure (3.0, 4.0) given in Lennard-Jones units were chosen based on the results of the optimisation test ran earlier. The timestep was set to 0.0025 and the input script modified accordingly for all ten (p,T) phase points before being submitted to LAMMPS.&lt;br /&gt;
&lt;br /&gt;
==== 1. Controlling Temperature ====&lt;br /&gt;
In general, temperature, T at a given time during the course of the simulation will be prone to fluctuations and will differ slightly from the intended temperature of the system, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;𝛕 (value specified in the input script). However, T can be easily controlled by multiplying each velocity term of each atom by a constant factor, γ whereby:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The kinetic energy of the system can be written as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T &#039;&#039;&#039;&#039;&#039;(Eq. 1)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;𝛕 &#039;&#039;&#039;&#039;&#039;(Eq. 2)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Dividing (Eq. 2) by (Eq. 1):&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)/( v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;) = 𝛕/T&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 𝛕/T, thus γ = √(𝛕/T)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, the value of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;γ can be determined and used to correct any deviations in T.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Sampling and Averaging ====&lt;br /&gt;
In the input script, there were lines entered as:&lt;br /&gt;
 fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
 run 100000&lt;br /&gt;
These lines were needed to measure key thermodynamics properties such as density, temperature and pressure respectively. Most importantly, the values 100, 1000 and 100000 play a vital role in directing how often these properties are averaged and how many measurements contribute to the final average. Each number is represented as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100 = Nevery&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1000 = Nrepeat&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100000 = Nfreq&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The three arguments above specify the timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a multiple of 100000. The average was over 1000 quantities, computed in the preceding portion of the simulation every 100 timesteps. Nfreq must be a multiple of Nevery and Nevery must be non-zero even if Nrepeat was 1. Also, the timesteps contributing to the average value cannot overlap, i.e. Nrepeat*Nevery cannot exceed Nfreq.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;, by referring to the log (.log) output file, the amount of time that has been simulated for this investigation was 50 s.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Equation of State ====&lt;br /&gt;
The density of the system obtained from the log files were plotted against temperature for both of pressures that were simulated, including error bars. Also included in the graphs was a curve for the expected densities as predicted by the ideal gas law, pV =NkT. &amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_5.jpg|&#039;&#039;&#039;Figure 5:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 3.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_6.jpg|&#039;&#039;&#039;Figure 6:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 4.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;It was found that the&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulated density was always lower than the values predicted by the ideal gas law for a given pressure. This was because for an ideal gas, there was no interactions between the atoms whereas the atoms in our simulation had been modeled using a forcefield of the Lennard-Jones potential. Moreover, the discrepancy between the observed and predicted values of density increased with pressure, especially at the lower temperatures where the deviation was larger.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== NVT Ensemble ===&lt;br /&gt;
&lt;br /&gt;
==== 1. Heat Capacity ====&lt;br /&gt;
In a particular system where temperature was fixed, thermodynamic properties such as total energy were likely to fluctuate from its constant average and these fluctuations gives rise to the heat capacity, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv&amp;lt;/span&amp;gt; where its value can be calculated using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv = δE/δT = N&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.Var(E)/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, it was important to note that the simulation carried out here was altered to NVT conditions (canonical ensemble). As with the previous simulation, ten phase points were required, but this time using five values of temperature (2.0, 2.2, 2.4, 2.6, 2.8) and two values of density (0.2, 0.8). A copy of the modified input script for NVT is attached below to highlight the changes made:&lt;br /&gt;
&lt;br /&gt;
https://goo.gl/5GnrfV&lt;br /&gt;
&lt;br /&gt;
==== 2. Results ====&lt;br /&gt;
Once data was collected from the log files (but without standard errors), the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv/V against average temperature was plotted on the same axes, where V was the volume of the simulation cell.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_7.jpg|&#039;&#039;&#039;Figure 7:&#039;&#039;&#039; A plot of heat capacity over volume as a function of average temperature&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the results obtained, this was not the trend that was expected. The data supposed to show a constant heat capacity for both densities, but instead heat capacity decreases when temperature was increased. Comparing both sets of data, for a system having a higher density, its heat capacity will in turn be raised.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Radial Distribution Function (RDF) ===&lt;br /&gt;
The radial pair distribution function or g(r) is &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;defined as the probability of locating the nearest neighbouring atom at a distance r from a reference atom. The visualising software VMD was used to calculate the RDF of three simulations under different states, that were the solid, liquid and vapour phases.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 1. Phase Transitions ====&lt;br /&gt;
In order to set up the various states, the values of d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ensity and temperature of the simulation were modified appropriately based on the phase transitions of the Lennard-Jones system. The following were the set of parameters determined for each state:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.002 was used to run all simulations in LAMMPS.&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_solid.JPG|&#039;&#039;&#039;Figure 8(a):&#039;&#039;&#039; View of solid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_liquid.JPG|&#039;&#039;&#039;Figure 8(b):&#039;&#039;&#039; View of liquid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_vapour.JPG|&#039;&#039;&#039;Figure 8(c):&#039;&#039;&#039; View of gas phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Qualitative Analysis of RDF ====&lt;br /&gt;
When each simulation was completed, its .trj file was inputted into VMD where the value of g(r) and &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ g(r) dr (or running integral) were evaluated. The graph of RDF against reduced distance were plotted on the same axes for all three states.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_8.jpg|&#039;&#039;&#039;Figure 9:&#039;&#039;&#039; Combined g(r) against reduced distance plot for the solid, liquid and vapour systems&lt;br /&gt;
&amp;lt;/gallery&amp;gt;In the s&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;olid RDF, the function showed a regular pattern of peaks with almost the similar intervals over a long range of distance. The peaks were discrete at approximately σ, √2 σ, √3 σ, and so on. There was a very high chance of finding an atom at the position of these peaks whilst the probability of locating an atom between the peaks was very low. This illustrated that solids had a uniform packing structure and had very little defect within the lattice. Moreover, the first three peaks corresponded to the first, second and third coordination shells.&lt;br /&gt;
&lt;br /&gt;
Thus the lattice spacing can be determined:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.4 = 2.85714&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√2.85714 = 1.41898&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;To calculate the coordination number, g(r) was integrated in spherical coordinates to the first minimum of the RDF. Hence, the coordination numbers for the solid were: first peak (12), second peak (4), and third peak (8).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the l&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iquid RDF, the first and sharpest peak occured close to σ and the subsequent peaks appeared at about intervals of σ, but smaller than the first peak. At longer distances of r, the value of g(r) remained unchanged at 1, showing that liquid particles were independent of one another. Thus, liquids were less closely packed compared to solids and had the ability to move dynamically, hence they do not possess a fixed structure. They were able to form multiple coordination spheres, but in most cases, there was only one coordination sphere present at a given time.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the v&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;apour RDF, the function only showed one obvious peak at about σ which then plateaued off at a value of g(r) = 1, the normal bulk density of the system. The regions that experienced the greatest intermolecular forces when g(r) &amp;gt; 1 were for 1 &amp;lt; σ &amp;lt; 2.5. From this result, it was concluded that gases tend to move around randomly in a sporadic motion (Brownian motion) and at most, they only have a single short-lived coordination sphere.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Diffusion Coefficient ===&lt;br /&gt;
In this experiment, the way in which atoms move around in the system (through translational motion) was of particular interest. This form of motion was governed by the diffusion coefficient, D or mass diffusivity, which can be measured using two main methods detailed below: &lt;br /&gt;
&lt;br /&gt;
==== 1. Mean Squared Displacement (MSD) ====&lt;br /&gt;
Since D was closely related to MSD, a simulation was ran (at specific density and temperature) for all three phases with an additional input command to calculate MSD and VACF (mentioned in next section). The set of parameters used to obtain each physical phase were identical those implemented during the RDF investigation:&lt;br /&gt;
&lt;br /&gt;
Timestep = 0.002&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once data was obtained from the &amp;quot;optional output-2&amp;quot; files, the total MSD (resultant MSD from individual Cartesian directions (x,y,z)) was plotted against timestep:&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_9.jpg|&#039;&#039;&#039;Figure 10(a):&#039;&#039;&#039; Total MSD as a function of timestep for the solid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_10.jpg|&#039;&#039;&#039;Figure 10(b):&#039;&#039;&#039; Total MSD as a function of timestep for the liquid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_11.jpg|&#039;&#039;&#039;Figure 10(c):&#039;&#039;&#039; Total MSD as a function of timestep for the gas phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The relationship between total MSD and timestep obtained for the three phases were as expected. Total MSD for solids initially fluctuated before becoming constant whereas for the liquid phase, its values increased linearly but gradually, and as for the vapour phase, total MSD increased linearly and rapidly.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since D = 1/6 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;δ&amp;lt;r&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;(t)&amp;gt; / δt, &amp;lt;/span&amp;gt;then &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/6 (gradient of graph of MSD vs timestep).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus using the gradient of the best-fit line, for:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/6 (2.3514 x 10&amp;lt;sup&amp;gt;-8&amp;lt;/sup&amp;gt;) = 3.919 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/6 (1.3140 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt;) = 2.190 x 10&amp;lt;sup&amp;gt;-4&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/6 (7.2313 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt;) = 1.205 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this, the d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iffusion coefficient was shown to have increased going from solids to gases. Moreover, it was noted that the diffusion coefficient for the solid phase was so small, it was negligible (zero).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. MSD: One Million Atoms ====&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_12.jpg|&#039;&#039;&#039;Figure 11(a):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_13.jpg|&#039;&#039;&#039;Figure 11(b):&#039;&#039;&#039; Total MSD plotted against timestep for the liquid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_14.jpg|&#039;&#039;&#039;Figure 11(c):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;For the same&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulation repeated using one million atoms, values of total MSD obtained were higher compared to that with fewer atoms (except for the solid phase where the total MSD was lowered). Moreover, total MSD for the liquid and vapour phases increased more linearly when using more atoms (and this was most evident for the vapour phase).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Extension: Velocity Autocorrelation Function (VACF) ====&lt;br /&gt;
The other alternative way of calculating D was by using the velocity autocorrelation function. The same input script was used here (as in the previous MSD section) and the simulation was ran for the solid, liquid and vapour phases.&lt;br /&gt;
&lt;br /&gt;
In relation to the theoretical concepts covered in the 1D harmonic oscillator, the &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;normalised velocity autocorrelation function, C(τ) was evaluated for this 1D harmonic system:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Given that C(τ) = &amp;lt; v(t).v(t+τ) &amp;gt; and x(t) = cos(ωt+ϕ),&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;VACF of a 1D harmonic oscillator, C(τ) = ∫ v(t).v(t+τ) dt&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, the normalised VACF, C(τ) = ∫ v(t).v(t+τ) dt / ∫ v(t)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; dt&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence to compare between the different oscillating systems, the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;C(τ) with ω=1/(2п) along with the VACFs from the solid and liquid simulations was plotted along the same axes, from x = 0 to 500.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_15.jpg|&#039;&#039;&#039;Figure 12:&#039;&#039;&#039; C(τ) with ω=1/(2п) and the VACFs of the solid and liquid phases as a function of timestep (x = 0 to 500)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;In the solid and liquid phases, where atoms are close to each other and of high density, strong interatomic forces were most evident. Atoms in these systems tend to adopt a position where there was a balance between the attractive and repulsive forces, thus they will not be easily displaced. As a result, these atoms will oscillate as part of their motion, vibrating between points of maxima and minima. Hence, this gave rise to a VACF function which showed a periodic oscillation from positive to negative values.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;For the case of solids, the magnitude of oscillation decayed over time due to forces acting to oppose these motion, thus the function closely resembled a damped oscillation that decreased exponentially. Whilst for liquids, the atoms behaved similarly but they were able to glide among themselves. The process of diffusion also drastically weakened any oscillatory motion the system possessed and the VACF function showed a very damp oscillation, with only a single minima point.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The minima in the VACFs in the solid and liquid system relates to the maximum change in the magnitude or direction (of the atoms in the system), thus altering their velocities, giving rise to a minimum value for the product of v(t=0) and v(t=τ).&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;On the other hand, the 1D harmonic oscillator model has a VACF function of constant amplitude (A=1) and period (T=40 s). Its magnitude of oscillation was greater than that of the solid and liquid systems, implying that no damping or perturbative forces had acted upon the system throughout its motion (and based on Newton’s Law of Motion the oscillation its motion will not change and continue to remain this way). Whereas, unlike the Lennard-Jones model describe earlier, atoms in the 1D harmonic oscillator do not interact with each other by attraction or repulsion and thus no energy was dissipated.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 4. The Trapezium Rule ====&lt;br /&gt;
Utilising the trapezium rule (TR) to approximately calculate the integral or area under the VACF graph, the values of D were estimated for each of the three physical phases.&lt;br /&gt;
&lt;br /&gt;
Given D = 1/3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ &amp;lt;v(0).v(τ)&amp;gt; dτ, then &amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/3 (area under the graph of C(τ) vs timestep).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus using the area under the graph obtained by the TR, for:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/3 (216.9089038) = 72.303 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/3 (277.865793) = 92.622 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/3 (10675.4021) = 3358.467 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The values of D above were as expected, with it increasing in magnitude from the solid to vapour phase. Going a step further, the running integrals for each case were also evaluated (once again using the TR) and plotted as a function of timestep as follows:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_16.jpg|&#039;&#039;&#039;Figure 13(a):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for the solid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_17.jpg|&#039;&#039;&#039;Figure 13(b):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for the liquid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_16.jpg|&#039;&#039;&#039;Figure 13(c):&#039;&#039;&#039; Graph of number integral of C(τ) against timestep for the gas phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 5. VACF: One Million Atoms ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;For one million atoms,&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Solid: D = 1/3 (176.9191107) = 58.973 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Liquid: D = 1/3 (151.586442) = 50.529 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Vapour: D = 1/3 (4902.698696) = 1634.233 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The values of diffusion coefficient increases from the solid to vapour phase&lt;br /&gt;
as predicted, but is anomalous for the liquid phase.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Fill&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_18.jpg&amp;diff=654563</id>
		<title>File:Dw3015 18.jpg</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_18.jpg&amp;diff=654563"/>
		<updated>2017-12-20T17:08:23Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_17.jpg&amp;diff=654562</id>
		<title>File:Dw3015 17.jpg</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_17.jpg&amp;diff=654562"/>
		<updated>2017-12-20T17:08:07Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_16.jpg&amp;diff=654561</id>
		<title>File:Dw3015 16.jpg</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_16.jpg&amp;diff=654561"/>
		<updated>2017-12-20T17:07:51Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654560</id>
		<title>Rep:Mod:dw3015 y3c liqsim</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654560"/>
		<updated>2017-12-20T17:05:28Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: /* 4. The Trapezium Rule */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Year 3 Computational Labs=&lt;br /&gt;
&lt;br /&gt;
= Molecular Dynamics Simulations of Simple Liquids =&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Aims and Objectives ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
In order for the simulation to replicate a real system as accurately, a few criterion had been defined, namely the simulation model, initial test parameters, forcefield, final parameters and tools used.&lt;br /&gt;
&lt;br /&gt;
=== Velocity-Verlet Algorithm and Timestep ===&lt;br /&gt;
Using approximations, we assumed that atoms will behave classically and therefore the velocity-Verlet algorithm was applied into the simulation, where we&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; have defined the starting positions of the atoms, x&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0) and their velocities at the same time, v&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0). As an example, this algorithm was used in a simple harmonic oscillator: &amp;lt;/span&amp;gt;https://goo.gl/As44o7&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.1 was initially tested. Subsequently, the value of &amp;quot;ERROR&amp;quot; as function of time was investigated and was found that this relationship was given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;y = 0.000422x + 0.000073&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;R-squared value = 0.999977&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The function above remained constant although the value of timestep was varied. It was found that w&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;hen timestep was increased, this will add more cycles to the &amp;quot;ENERGY&amp;quot; and &amp;quot;ERROR&amp;quot; graphs but period remained constant. Amplitude of &amp;quot;ERROR&amp;quot; graph will increase over time leading to bigger magnitude in error. However, the function of maxima in the &amp;quot;ERROR&amp;quot; graph was unchanged. The &amp;quot;ENERGY&amp;quot; graph will also have higher amplitude, hence bigger change in total energy. Timestep must therefore not exceed 0.1990665 for change in total energy to remain below 1%.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The prove of concept is shown here: https://goo.gl/zC9YU9&lt;br /&gt;
&lt;br /&gt;
Moreover, the t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;otal energy of a physical system was measured and expected to remain constant, indicating that the system has completed equilibration and energy has been completely redistributed among the particles in a given system (through collisions) upon the start of the simulation.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Model ===&lt;br /&gt;
A simple particle in a box model was used for all of the simulations. Using LAMMPS, a cubic box of a given length containing a given amount of atoms of mass 1.0 was created. This will form the boundary for the simulations carried out.&lt;br /&gt;
&lt;br /&gt;
For atoms that move beyond this boundary, the periodic boundary conditions was able to correct the atoms&#039; coordinates by allowing its replica to enter from the opposite face.&lt;br /&gt;
&lt;br /&gt;
For instance, a&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;n atom at position (0.5, 0.5, 0.5) in a cubic simulation box which runs from (0, 0, 0) to (1.0, 1.0, 1.0), moving along a vector (0.7, 0.6, 0.2) in a single timestep, its final position is at (1.2, 1.1, 0.7). But after applying periodic boundary conditions, the atom position was corrected to (0.2, 0.1, 0.7).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To give an idea of the number of molecules simulated, the number of moles of 1 ml of water under standard conditions were estimated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of 1 ml water = ρV = 1 g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;n of 1ml water = m/M&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 0.05550843506 mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number of water molecules = nN&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 3.342796 x 10&amp;lt;sup&amp;gt;22&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a large and unsuitable number to simulate. A value of 10000 would be more reasonable, thus the volume of 10000 water molecules was calculated to give a better perspective:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For 10000 water molecules, n of water = n.o.m./N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 1.660539&lt;br /&gt;
x 10&amp;lt;sup&amp;gt;-20&amp;lt;/sup&amp;gt; mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of water = nM&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V of water = m/ρ = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; ml&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Forcefield ===&lt;br /&gt;
The Lennard-Jones potential, which fits well into the physic of the simulation, was utilised knowing that the force acting on the atoms depended on the potential they experienced. At longer distances however, this interaction will be so small that it can be negligible, so a cutoff point of 3.0&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ was put in place.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Lennard-Jones Potential, U = 4ε [(σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To understand the relationship better, the separation &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; at which the potential of zero was evaluated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;When U=0, (σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Let (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = y, thus y&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;-y = 0, y(y-1) = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore, y=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0, undefined; (y-1)=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;= 1, hence R=r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;=σ (F = repulsive force)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along with the separation at equilibrium and hence the well depth &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ϕ(r&amp;lt;sub&amp;gt;eq),&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;At equilibrium, F=0 (minimum), dU/dR = -48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&lt;br /&gt;
+ 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For turning point, dU/dR = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;),&lt;br /&gt;
(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)/(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;, R&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;=2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;,&lt;br /&gt;
hence R=(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)σ, R=r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;=1.12246σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore well depth, ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;)&lt;br /&gt;
- (σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;)]&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(1/4)-(1/2)], ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = -ε (minimum)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Moreover, the values of integrals of 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, 2.5 σ and 3 σ to infinity were calculated respectively:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;∫ϕ(r)dr = -1/3εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;), and when σ=ε=1,&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.020671&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2.5 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0068127&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0027416&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
The quantities used in the simulation were treated and divided with a scaling factor, such as &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ or &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ε, to ensure that our results were more manageable. For example, for argon with Lennard-Jones (LJ) parameters σ = 0.34nm and ε/&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; = 120K, its LJ cutoff r* = 3.2 in real units was:&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r=r*σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r = 3.2(0.34 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt;) = 1.088 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; m&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, its well depth in real units was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = ε = k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T x N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ε = (1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(120 K)(6.02214 x 10&amp;lt;sup&amp;gt;23 &amp;lt;/sup&amp;gt;&#039;&#039;mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; = 0.997735 kJ mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, the reduced temperature T* = 1.5 can be calculated in real units:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = T*ε/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = 1.5(997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)/(1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(6.02214 &#039;&#039;x 10&amp;lt;sup&amp;gt;23&amp;lt;/sup&amp;gt; mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 180 K&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lattice Structure ===&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Giving atoms random starting coordinates can be problematic as this may generate two atoms close to each other in our simulation, where if the separation between them was below σ, this can cause a strong (or even infinite) repulsion pushing the atoms apart. Therefore, the atoms were initially created in a 3D simple cubic (sc) lattice.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given that the number density (N/V) of lattice points was 0.8, the lattice spacing was found to be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number density, ρ=N/V, V=N/ρ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V = 1/0.8 = 1.25&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;L&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;attice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√1.25 = 1.07722&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or a face-centred cubic (fcc) lattice with number density 1.2, its lattice spacing was calculated:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.2 = 3.33333&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√3.33333 = 1.49380&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Furthermore, a simulation sc box of width 10 was created as a control. Within this region, there were &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;4000 atoms present (4 atoms in each unit cell where there are 10x10x10 = 1000 unit cells). Following this, the mass and pair coefficient of the each type of atom were assigned as below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Definitions for each line in the command code are provided as such:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Assigning mass of value 1.0 to all type 1 atoms&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Specifying a standard 12/6 Lennard-Jones potential with no Coulomb between atom pairs with global LJ cutoff set to distance r*=3.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Setting the pairwise forcefield coefficients for the&lt;br /&gt;
symmetric I,J interaction to the same value of 1.0 for all (given by asterisk) type 1 with type 1 atom pairs&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Timestep Optimisation ===&lt;br /&gt;
The code below was written in the input script with the timestep taking a value of 0.001:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### SPECIFY TIMESTEP ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable timestep equal 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable n_steps equal floor(100/${timestep})&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep ${timestep}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### RUN SIMULATION ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run ${n_steps}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: T&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he variable command is a loop which was assigned a value that is later evaluated in the input script, where in this case timestep was equal to 0.001. This is useful because the defined value can be referenced in subsequent variables, therefore making it reusable and eliminating the need to repeatedly input the value 0.001. For instance, the defined timestep was used in the math function &amp;quot;floor&amp;quot; assigned to variable n_step and subsequently the value n_step is used in the &amp;quot;run&amp;quot; command. Hence, this coding method will be more pragmatic than just writing the script simply as:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choosing the correct timestep was crucial for the subsequent simulations which were undertaken. To determine the optimum timestep, simulations using different timesteps (0.001, 0.0025, 0.0075, 0.01 and 0.015) were tested. To illustrate that the simulation had equilibrated, the graphs of total e&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;nergy, temperature and pressure against time were plotted for the 0.001 timestep experiment:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_1.jpg|&#039;&#039;&#039;Figure 1:&#039;&#039;&#039; Total energy against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_2.jpg|&#039;&#039;&#039;Figure 2:&#039;&#039;&#039; Temperature against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_3.jpg|&#039;&#039;&#039;Figure 3:&#039;&#039;&#039; Pressure against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the plots above, the simulation did achieve equilibrium and the values of total energy, temperature and pressure had converged to a constant average (within a certain degree of error) at approximately 0.5 s into the simulation.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_4.jpg|&#039;&#039;&#039;Figure 4:&#039;&#039;&#039; Single plot of total energy against time for all five timesteps.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Among the five timesteps, 0.001 was most likely to give acceptable results. The data obtained was of high resolution, with the smallest interval between data points. The simulation was said to give the best representation of a physical reality being investigated. On the other hand, a timestep of 0.015 was the least suitable choice because the total energy does not converge. The energy initially stabilised but subsequently diverged (increased) after 20 s and thus system has not fully equilibrated. To give the best balance between resolution and speed (time taken to complete a simulation), timestep within the acceptable range of 0.001 to 0.003 were used. Any timestep above 0.003 would not properly allow for total energy to converge and gives a large gap between data points.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== LAMMPS Toolkit ===&lt;br /&gt;
The LAMMPS Molecular Dynamics Simulator is an extremely useful simulation software containing a vast array of tools that was further utilised throughout this experiment. Among them were the &amp;quot;variable&amp;quot; and &amp;quot;thermo_style&amp;quot; commands used in changing ensembles and measuring thermodynamics properties respectively, which were crucial in obtaining key data. Towards the end of the investigation, the usage of the radial distribution function (RDF), mean squared displacement (MSD) and velocity autocorrelation function (VACF) were also explored and applied into many of the simulations conducted.&lt;br /&gt;
&lt;br /&gt;
=== Visual Molecular Dynamics (VMD) ===&lt;br /&gt;
To help visualise some of the simulations, LAMMPS was also supported by the VMD 3D graphics programme that was able to read trajectory (.trj) files in order to display our simulation through multiple modes and perspectives. This software was also used to conduct further calculations such as evaluating running integrals for the RDF.&lt;br /&gt;
&lt;br /&gt;
== Results and Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== NpT Ensemble ===&lt;br /&gt;
For this section of the investigation, the simulation has been modified so that it can run under NpT conditions (called the isobaric-isothermal ensemble in statistical mechanics) to understand what changes to thermodynamic properties occur at this particular experimental condition. The data collected was used to plot an equation of state at atmospheric pressure for the case of our model fluid.&lt;br /&gt;
&lt;br /&gt;
Five values of temperature (2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;.0, 2.5, 3.0, 3.5, 4.0&amp;lt;/span&amp;gt;) and two values of pressure (3.0, 4.0) given in Lennard-Jones units were chosen based on the results of the optimisation test ran earlier. The timestep was set to 0.0025 and the input script modified accordingly for all ten (p,T) phase points before being submitted to LAMMPS.&lt;br /&gt;
&lt;br /&gt;
==== 1. Controlling Temperature ====&lt;br /&gt;
In general, temperature, T at a given time during the course of the simulation will be prone to fluctuations and will differ slightly from the intended temperature of the system, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;𝛕 (value specified in the input script). However, T can be easily controlled by multiplying each velocity term of each atom by a constant factor, γ whereby:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The kinetic energy of the system can be written as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T &#039;&#039;&#039;&#039;&#039;(Eq. 1)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;𝛕 &#039;&#039;&#039;&#039;&#039;(Eq. 2)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Dividing (Eq. 2) by (Eq. 1):&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)/( v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;) = 𝛕/T&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 𝛕/T, thus γ = √(𝛕/T)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, the value of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;γ can be determined and used to correct any deviations in T.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Sampling and Averaging ====&lt;br /&gt;
In the input script, there were lines entered as:&lt;br /&gt;
 fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
 run 100000&lt;br /&gt;
These lines were needed to measure key thermodynamics properties such as density, temperature and pressure respectively. Most importantly, the values 100, 1000 and 100000 play a vital role in directing how often these properties are averaged and how many measurements contribute to the final average. Each number is represented as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100 = Nevery&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1000 = Nrepeat&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100000 = Nfreq&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The three arguments above specify the timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a multiple of 100000. The average was over 1000 quantities, computed in the preceding portion of the simulation every 100 timesteps. Nfreq must be a multiple of Nevery and Nevery must be non-zero even if Nrepeat was 1. Also, the timesteps contributing to the average value cannot overlap, i.e. Nrepeat*Nevery cannot exceed Nfreq.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;, by referring to the log (.log) output file, the amount of time that has been simulated for this investigation was 50 s.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Equation of State ====&lt;br /&gt;
The density of the system obtained from the log files were plotted against temperature for both of pressures that were simulated, including error bars. Also included in the graphs was a curve for the expected densities as predicted by the ideal gas law, pV =NkT. &amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_5.jpg|&#039;&#039;&#039;Figure 5:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 3.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_6.jpg|&#039;&#039;&#039;Figure 6:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 4.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;It was found that the&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulated density was always lower than the values predicted by the ideal gas law for a given pressure. This was because for an ideal gas, there was no interactions between the atoms whereas the atoms in our simulation had been modeled using a forcefield of the Lennard-Jones potential. Moreover, the discrepancy between the observed and predicted values of density increased with pressure, especially at the lower temperatures where the deviation was larger.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== NVT Ensemble ===&lt;br /&gt;
&lt;br /&gt;
==== 1. Heat Capacity ====&lt;br /&gt;
In a particular system where temperature was fixed, thermodynamic properties such as total energy were likely to fluctuate from its constant average and these fluctuations gives rise to the heat capacity, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv&amp;lt;/span&amp;gt; where its value can be calculated using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv = δE/δT = N&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.Var(E)/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, it was important to note that the simulation carried out here was altered to NVT conditions (canonical ensemble). As with the previous simulation, ten phase points were required, but this time using five values of temperature (2.0, 2.2, 2.4, 2.6, 2.8) and two values of density (0.2, 0.8). A copy of the modified input script for NVT is attached below to highlight the changes made:&lt;br /&gt;
&lt;br /&gt;
https://goo.gl/5GnrfV&lt;br /&gt;
&lt;br /&gt;
==== 2. Results ====&lt;br /&gt;
Once data was collected from the log files (but without standard errors), the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv/V against average temperature was plotted on the same axes, where V was the volume of the simulation cell.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_7.jpg|&#039;&#039;&#039;Figure 7:&#039;&#039;&#039; A plot of heat capacity over volume as a function of average temperature&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the results obtained, this was not the trend that was expected. The data supposed to show a constant heat capacity for both densities, but instead heat capacity decreases when temperature was increased. Comparing both sets of data, for a system having a higher density, its heat capacity will in turn be raised.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Radial Distribution Function (RDF) ===&lt;br /&gt;
The radial pair distribution function or g(r) is &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;defined as the probability of locating the nearest neighbouring atom at a distance r from a reference atom. The visualising software VMD was used to calculate the RDF of three simulations under different states, that were the solid, liquid and vapour phases.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 1. Phase Transitions ====&lt;br /&gt;
In order to set up the various states, the values of d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ensity and temperature of the simulation were modified appropriately based on the phase transitions of the Lennard-Jones system. The following were the set of parameters determined for each state:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.002 was used to run all simulations in LAMMPS.&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_solid.JPG|&#039;&#039;&#039;Figure 8(a):&#039;&#039;&#039; View of solid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_liquid.JPG|&#039;&#039;&#039;Figure 8(b):&#039;&#039;&#039; View of liquid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_vapour.JPG|&#039;&#039;&#039;Figure 8(c):&#039;&#039;&#039; View of gas phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Qualitative Analysis of RDF ====&lt;br /&gt;
When each simulation was completed, its .trj file was inputted into VMD where the value of g(r) and &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ g(r) dr (or running integral) were evaluated. The graph of RDF against reduced distance were plotted on the same axes for all three states.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_8.jpg|&#039;&#039;&#039;Figure 9:&#039;&#039;&#039; Combined g(r) against reduced distance plot for the solid, liquid and vapour systems&lt;br /&gt;
&amp;lt;/gallery&amp;gt;In the s&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;olid RDF, the function showed a regular pattern of peaks with almost the similar intervals over a long range of distance. The peaks were discrete at approximately σ, √2 σ, √3 σ, and so on. There was a very high chance of finding an atom at the position of these peaks whilst the probability of locating an atom between the peaks was very low. This illustrated that solids had a uniform packing structure and had very little defect within the lattice. Moreover, the first three peaks corresponded to the first, second and third coordination shells.&lt;br /&gt;
&lt;br /&gt;
Thus the lattice spacing can be determined:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.4 = 2.85714&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√2.85714 = 1.41898&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;To calculate the coordination number, g(r) was integrated in spherical coordinates to the first minimum of the RDF. Hence, the coordination numbers for the solid were: first peak (12), second peak (4), and third peak (8).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the l&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iquid RDF, the first and sharpest peak occured close to σ and the subsequent peaks appeared at about intervals of σ, but smaller than the first peak. At longer distances of r, the value of g(r) remained unchanged at 1, showing that liquid particles were independent of one another. Thus, liquids were less closely packed compared to solids and had the ability to move dynamically, hence they do not possess a fixed structure. They were able to form multiple coordination spheres, but in most cases, there was only one coordination sphere present at a given time.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the v&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;apour RDF, the function only showed one obvious peak at about σ which then plateaued off at a value of g(r) = 1, the normal bulk density of the system. The regions that experienced the greatest intermolecular forces when g(r) &amp;gt; 1 were for 1 &amp;lt; σ &amp;lt; 2.5. From this result, it was concluded that gases tend to move around randomly in a sporadic motion (Brownian motion) and at most, they only have a single short-lived coordination sphere.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Diffusion Coefficient ===&lt;br /&gt;
In this experiment, the way in which atoms move around in the system (through translational motion) was of particular interest. This form of motion was governed by the diffusion coefficient, D or mass diffusivity, which can be measured using two main methods detailed below: &lt;br /&gt;
&lt;br /&gt;
==== 1. Mean Squared Displacement (MSD) ====&lt;br /&gt;
Since D was closely related to MSD, a simulation was ran (at specific density and temperature) for all three phases with an additional input command to calculate MSD and VACF (mentioned in next section). The set of parameters used to obtain each physical phase were identical those implemented during the RDF investigation:&lt;br /&gt;
&lt;br /&gt;
Timestep = 0.002&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once data was obtained from the &amp;quot;optional output-2&amp;quot; files, the total MSD (resultant MSD from individual Cartesian directions (x,y,z)) was plotted against timestep:&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_9.jpg|&#039;&#039;&#039;Figure 10(a):&#039;&#039;&#039; Total MSD as a function of timestep for the solid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_10.jpg|&#039;&#039;&#039;Figure 10(b):&#039;&#039;&#039; Total MSD as a function of timestep for the liquid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_11.jpg|&#039;&#039;&#039;Figure 10(c):&#039;&#039;&#039; Total MSD as a function of timestep for the gas phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The relationship between total MSD and timestep obtained for the three phases were as expected. Total MSD for solids initially fluctuated before becoming constant whereas for the liquid phase, its values increased linearly but gradually, and as for the vapour phase, total MSD increased linearly and rapidly.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since D = 1/6 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;δ&amp;lt;r&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;(t)&amp;gt; / δt, &amp;lt;/span&amp;gt;then &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/6 (gradient of graph of MSD vs timestep).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus using the gradient of the best-fit line, for:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/6 (2.3514 x 10&amp;lt;sup&amp;gt;-8&amp;lt;/sup&amp;gt;) = 3.919 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/6 (1.3140 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt;) = 2.190 x 10&amp;lt;sup&amp;gt;-4&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/6 (7.2313 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt;) = 1.205 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this, the d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iffusion coefficient was shown to have increased going from solids to gases. Moreover, it was noted that the diffusion coefficient for the solid phase was so small, it was negligible (zero).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. MSD: One Million Atoms ====&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_12.jpg|&#039;&#039;&#039;Figure 11(a):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_13.jpg|&#039;&#039;&#039;Figure 11(b):&#039;&#039;&#039; Total MSD plotted against timestep for the liquid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_14.jpg|&#039;&#039;&#039;Figure 11(c):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;For the same&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulation repeated using one million atoms, values of total MSD obtained were higher compared to that with fewer atoms (except for the solid phase where the total MSD was lowered). Moreover, total MSD for the liquid and vapour phases increased more linearly when using more atoms (and this was most evident for the vapour phase).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Extension: Velocity Autocorrelation Function (VACF) ====&lt;br /&gt;
The other alternative way of calculating D was by using the velocity autocorrelation function. The same input script was used here (as in the previous MSD section) and the simulation was ran for the solid, liquid and vapour phases.&lt;br /&gt;
&lt;br /&gt;
In relation to the theoretical concepts covered in the 1D harmonic oscillator, the &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;normalised velocity autocorrelation function, C(τ) was evaluated for this 1D harmonic system:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Given that C(τ) = &amp;lt; v(t).v(t+τ) &amp;gt; and x(t) = cos(ωt+ϕ),&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;VACF of a 1D harmonic oscillator, C(τ) = ∫ v(t).v(t+τ) dt&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, the normalised VACF, C(τ) = ∫ v(t).v(t+τ) dt / ∫ v(t)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; dt&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence to compare between the different oscillating systems, the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;C(τ) with ω=1/(2п) along with the VACFs from the solid and liquid simulations was plotted along the same axes, from x = 0 to 500.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_15.jpg|&#039;&#039;&#039;Figure 12:&#039;&#039;&#039; C(τ) with ω=1/(2п) and the VACFs of the solid and liquid phases as a function of timestep (x = 0 to 500)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;In the solid and liquid phases, where atoms are close to each other and of high density, strong interatomic forces were most evident. Atoms in these systems tend to adopt a position where there was a balance between the attractive and repulsive forces, thus they will not be easily displaced. As a result, these atoms will oscillate as part of their motion, vibrating between points of maxima and minima. Hence, this gave rise to a VACF function which showed a periodic oscillation from positive to negative values.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;For the case of solids, the magnitude of oscillation decayed over time due to forces acting to oppose these motion, thus the function closely resembled a damped oscillation that decreased exponentially. Whilst for liquids, the atoms behaved similarly but they were able to glide among themselves. The process of diffusion also drastically weakened any oscillatory motion the system possessed and the VACF function showed a very damp oscillation, with only a single minima point.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The minima in the VACFs in the solid and liquid system relates to the maximum change in the magnitude or direction (of the atoms in the system), thus altering their velocities, giving rise to a minimum value for the product of v(t=0) and v(t=τ).&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;On the other hand, the 1D harmonic oscillator model has a VACF function of constant amplitude (A=1) and period (T=40 s). Its magnitude of oscillation was greater than that of the solid and liquid systems, implying that no damping or perturbative forces had acted upon the system throughout its motion (and based on Newton’s Law of Motion the oscillation its motion will not change and continue to remain this way). Whereas, unlike the Lennard-Jones model describe earlier, atoms in the 1D harmonic oscillator do not interact with each other by attraction or repulsion and thus no energy was dissipated.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 4. The Trapezium Rule ====&lt;br /&gt;
Utilising the trapezium rule to approximately calculate the integral or area under the VACF graph, the values of D were estimated for each of the three physical phases.&lt;br /&gt;
&lt;br /&gt;
Given D = 1/3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ &amp;lt;v(0).v(τ)&amp;gt; dτ, then &amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/3 (area under the graph of C(τ) vs timestep).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus using the area under the graph obtained by the trapezium rule, for:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/3 (216.9089038) = 72.303 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/3 (277.865793) = 92.622 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/3 (10675.4021) = 3358.467 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The values of D above were as expected, with it increasing in magnitude from the solid to vapour phase. Going a step further, the running integrals for each case were also plotted as follows:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 5. VACF: One Million Atoms ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;For one million atoms,&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Solid: D = 1/3 (176.9191107) = 58.973 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Liquid: D = 1/3 (151.586442) = 50.529 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Vapour: D = 1/3 (4902.698696) = 1634.233 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The values of diffusion coefficient increases from the solid to vapour phase&lt;br /&gt;
as predicted, but is anomalous for the liquid phase.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Fill&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654559</id>
		<title>Rep:Mod:dw3015 y3c liqsim</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654559"/>
		<updated>2017-12-20T17:02:50Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: /* 4. VACF: One Million Atoms */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Year 3 Computational Labs=&lt;br /&gt;
&lt;br /&gt;
= Molecular Dynamics Simulations of Simple Liquids =&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Aims and Objectives ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
In order for the simulation to replicate a real system as accurately, a few criterion had been defined, namely the simulation model, initial test parameters, forcefield, final parameters and tools used.&lt;br /&gt;
&lt;br /&gt;
=== Velocity-Verlet Algorithm and Timestep ===&lt;br /&gt;
Using approximations, we assumed that atoms will behave classically and therefore the velocity-Verlet algorithm was applied into the simulation, where we&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; have defined the starting positions of the atoms, x&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0) and their velocities at the same time, v&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0). As an example, this algorithm was used in a simple harmonic oscillator: &amp;lt;/span&amp;gt;https://goo.gl/As44o7&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.1 was initially tested. Subsequently, the value of &amp;quot;ERROR&amp;quot; as function of time was investigated and was found that this relationship was given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;y = 0.000422x + 0.000073&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;R-squared value = 0.999977&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The function above remained constant although the value of timestep was varied. It was found that w&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;hen timestep was increased, this will add more cycles to the &amp;quot;ENERGY&amp;quot; and &amp;quot;ERROR&amp;quot; graphs but period remained constant. Amplitude of &amp;quot;ERROR&amp;quot; graph will increase over time leading to bigger magnitude in error. However, the function of maxima in the &amp;quot;ERROR&amp;quot; graph was unchanged. The &amp;quot;ENERGY&amp;quot; graph will also have higher amplitude, hence bigger change in total energy. Timestep must therefore not exceed 0.1990665 for change in total energy to remain below 1%.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The prove of concept is shown here: https://goo.gl/zC9YU9&lt;br /&gt;
&lt;br /&gt;
Moreover, the t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;otal energy of a physical system was measured and expected to remain constant, indicating that the system has completed equilibration and energy has been completely redistributed among the particles in a given system (through collisions) upon the start of the simulation.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Model ===&lt;br /&gt;
A simple particle in a box model was used for all of the simulations. Using LAMMPS, a cubic box of a given length containing a given amount of atoms of mass 1.0 was created. This will form the boundary for the simulations carried out.&lt;br /&gt;
&lt;br /&gt;
For atoms that move beyond this boundary, the periodic boundary conditions was able to correct the atoms&#039; coordinates by allowing its replica to enter from the opposite face.&lt;br /&gt;
&lt;br /&gt;
For instance, a&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;n atom at position (0.5, 0.5, 0.5) in a cubic simulation box which runs from (0, 0, 0) to (1.0, 1.0, 1.0), moving along a vector (0.7, 0.6, 0.2) in a single timestep, its final position is at (1.2, 1.1, 0.7). But after applying periodic boundary conditions, the atom position was corrected to (0.2, 0.1, 0.7).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To give an idea of the number of molecules simulated, the number of moles of 1 ml of water under standard conditions were estimated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of 1 ml water = ρV = 1 g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;n of 1ml water = m/M&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 0.05550843506 mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number of water molecules = nN&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 3.342796 x 10&amp;lt;sup&amp;gt;22&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a large and unsuitable number to simulate. A value of 10000 would be more reasonable, thus the volume of 10000 water molecules was calculated to give a better perspective:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For 10000 water molecules, n of water = n.o.m./N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 1.660539&lt;br /&gt;
x 10&amp;lt;sup&amp;gt;-20&amp;lt;/sup&amp;gt; mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of water = nM&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V of water = m/ρ = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; ml&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Forcefield ===&lt;br /&gt;
The Lennard-Jones potential, which fits well into the physic of the simulation, was utilised knowing that the force acting on the atoms depended on the potential they experienced. At longer distances however, this interaction will be so small that it can be negligible, so a cutoff point of 3.0&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ was put in place.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Lennard-Jones Potential, U = 4ε [(σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To understand the relationship better, the separation &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; at which the potential of zero was evaluated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;When U=0, (σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Let (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = y, thus y&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;-y = 0, y(y-1) = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore, y=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0, undefined; (y-1)=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;= 1, hence R=r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;=σ (F = repulsive force)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along with the separation at equilibrium and hence the well depth &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ϕ(r&amp;lt;sub&amp;gt;eq),&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;At equilibrium, F=0 (minimum), dU/dR = -48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&lt;br /&gt;
+ 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For turning point, dU/dR = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;),&lt;br /&gt;
(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)/(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;, R&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;=2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;,&lt;br /&gt;
hence R=(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)σ, R=r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;=1.12246σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore well depth, ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;)&lt;br /&gt;
- (σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;)]&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(1/4)-(1/2)], ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = -ε (minimum)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Moreover, the values of integrals of 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, 2.5 σ and 3 σ to infinity were calculated respectively:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;∫ϕ(r)dr = -1/3εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;), and when σ=ε=1,&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.020671&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2.5 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0068127&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0027416&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
The quantities used in the simulation were treated and divided with a scaling factor, such as &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ or &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ε, to ensure that our results were more manageable. For example, for argon with Lennard-Jones (LJ) parameters σ = 0.34nm and ε/&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; = 120K, its LJ cutoff r* = 3.2 in real units was:&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r=r*σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r = 3.2(0.34 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt;) = 1.088 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; m&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, its well depth in real units was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = ε = k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T x N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ε = (1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(120 K)(6.02214 x 10&amp;lt;sup&amp;gt;23 &amp;lt;/sup&amp;gt;&#039;&#039;mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; = 0.997735 kJ mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, the reduced temperature T* = 1.5 can be calculated in real units:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = T*ε/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = 1.5(997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)/(1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(6.02214 &#039;&#039;x 10&amp;lt;sup&amp;gt;23&amp;lt;/sup&amp;gt; mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 180 K&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lattice Structure ===&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Giving atoms random starting coordinates can be problematic as this may generate two atoms close to each other in our simulation, where if the separation between them was below σ, this can cause a strong (or even infinite) repulsion pushing the atoms apart. Therefore, the atoms were initially created in a 3D simple cubic (sc) lattice.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given that the number density (N/V) of lattice points was 0.8, the lattice spacing was found to be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number density, ρ=N/V, V=N/ρ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V = 1/0.8 = 1.25&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;L&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;attice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√1.25 = 1.07722&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or a face-centred cubic (fcc) lattice with number density 1.2, its lattice spacing was calculated:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.2 = 3.33333&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√3.33333 = 1.49380&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Furthermore, a simulation sc box of width 10 was created as a control. Within this region, there were &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;4000 atoms present (4 atoms in each unit cell where there are 10x10x10 = 1000 unit cells). Following this, the mass and pair coefficient of the each type of atom were assigned as below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Definitions for each line in the command code are provided as such:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Assigning mass of value 1.0 to all type 1 atoms&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Specifying a standard 12/6 Lennard-Jones potential with no Coulomb between atom pairs with global LJ cutoff set to distance r*=3.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Setting the pairwise forcefield coefficients for the&lt;br /&gt;
symmetric I,J interaction to the same value of 1.0 for all (given by asterisk) type 1 with type 1 atom pairs&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Timestep Optimisation ===&lt;br /&gt;
The code below was written in the input script with the timestep taking a value of 0.001:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### SPECIFY TIMESTEP ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable timestep equal 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable n_steps equal floor(100/${timestep})&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep ${timestep}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### RUN SIMULATION ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run ${n_steps}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: T&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he variable command is a loop which was assigned a value that is later evaluated in the input script, where in this case timestep was equal to 0.001. This is useful because the defined value can be referenced in subsequent variables, therefore making it reusable and eliminating the need to repeatedly input the value 0.001. For instance, the defined timestep was used in the math function &amp;quot;floor&amp;quot; assigned to variable n_step and subsequently the value n_step is used in the &amp;quot;run&amp;quot; command. Hence, this coding method will be more pragmatic than just writing the script simply as:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choosing the correct timestep was crucial for the subsequent simulations which were undertaken. To determine the optimum timestep, simulations using different timesteps (0.001, 0.0025, 0.0075, 0.01 and 0.015) were tested. To illustrate that the simulation had equilibrated, the graphs of total e&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;nergy, temperature and pressure against time were plotted for the 0.001 timestep experiment:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_1.jpg|&#039;&#039;&#039;Figure 1:&#039;&#039;&#039; Total energy against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_2.jpg|&#039;&#039;&#039;Figure 2:&#039;&#039;&#039; Temperature against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_3.jpg|&#039;&#039;&#039;Figure 3:&#039;&#039;&#039; Pressure against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the plots above, the simulation did achieve equilibrium and the values of total energy, temperature and pressure had converged to a constant average (within a certain degree of error) at approximately 0.5 s into the simulation.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_4.jpg|&#039;&#039;&#039;Figure 4:&#039;&#039;&#039; Single plot of total energy against time for all five timesteps.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Among the five timesteps, 0.001 was most likely to give acceptable results. The data obtained was of high resolution, with the smallest interval between data points. The simulation was said to give the best representation of a physical reality being investigated. On the other hand, a timestep of 0.015 was the least suitable choice because the total energy does not converge. The energy initially stabilised but subsequently diverged (increased) after 20 s and thus system has not fully equilibrated. To give the best balance between resolution and speed (time taken to complete a simulation), timestep within the acceptable range of 0.001 to 0.003 were used. Any timestep above 0.003 would not properly allow for total energy to converge and gives a large gap between data points.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== LAMMPS Toolkit ===&lt;br /&gt;
The LAMMPS Molecular Dynamics Simulator is an extremely useful simulation software containing a vast array of tools that was further utilised throughout this experiment. Among them were the &amp;quot;variable&amp;quot; and &amp;quot;thermo_style&amp;quot; commands used in changing ensembles and measuring thermodynamics properties respectively, which were crucial in obtaining key data. Towards the end of the investigation, the usage of the radial distribution function (RDF), mean squared displacement (MSD) and velocity autocorrelation function (VACF) were also explored and applied into many of the simulations conducted.&lt;br /&gt;
&lt;br /&gt;
=== Visual Molecular Dynamics (VMD) ===&lt;br /&gt;
To help visualise some of the simulations, LAMMPS was also supported by the VMD 3D graphics programme that was able to read trajectory (.trj) files in order to display our simulation through multiple modes and perspectives. This software was also used to conduct further calculations such as evaluating running integrals for the RDF.&lt;br /&gt;
&lt;br /&gt;
== Results and Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== NpT Ensemble ===&lt;br /&gt;
For this section of the investigation, the simulation has been modified so that it can run under NpT conditions (called the isobaric-isothermal ensemble in statistical mechanics) to understand what changes to thermodynamic properties occur at this particular experimental condition. The data collected was used to plot an equation of state at atmospheric pressure for the case of our model fluid.&lt;br /&gt;
&lt;br /&gt;
Five values of temperature (2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;.0, 2.5, 3.0, 3.5, 4.0&amp;lt;/span&amp;gt;) and two values of pressure (3.0, 4.0) given in Lennard-Jones units were chosen based on the results of the optimisation test ran earlier. The timestep was set to 0.0025 and the input script modified accordingly for all ten (p,T) phase points before being submitted to LAMMPS.&lt;br /&gt;
&lt;br /&gt;
==== 1. Controlling Temperature ====&lt;br /&gt;
In general, temperature, T at a given time during the course of the simulation will be prone to fluctuations and will differ slightly from the intended temperature of the system, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;𝛕 (value specified in the input script). However, T can be easily controlled by multiplying each velocity term of each atom by a constant factor, γ whereby:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The kinetic energy of the system can be written as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T &#039;&#039;&#039;&#039;&#039;(Eq. 1)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;𝛕 &#039;&#039;&#039;&#039;&#039;(Eq. 2)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Dividing (Eq. 2) by (Eq. 1):&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)/( v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;) = 𝛕/T&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 𝛕/T, thus γ = √(𝛕/T)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, the value of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;γ can be determined and used to correct any deviations in T.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Sampling and Averaging ====&lt;br /&gt;
In the input script, there were lines entered as:&lt;br /&gt;
 fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
 run 100000&lt;br /&gt;
These lines were needed to measure key thermodynamics properties such as density, temperature and pressure respectively. Most importantly, the values 100, 1000 and 100000 play a vital role in directing how often these properties are averaged and how many measurements contribute to the final average. Each number is represented as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100 = Nevery&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1000 = Nrepeat&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100000 = Nfreq&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The three arguments above specify the timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a multiple of 100000. The average was over 1000 quantities, computed in the preceding portion of the simulation every 100 timesteps. Nfreq must be a multiple of Nevery and Nevery must be non-zero even if Nrepeat was 1. Also, the timesteps contributing to the average value cannot overlap, i.e. Nrepeat*Nevery cannot exceed Nfreq.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;, by referring to the log (.log) output file, the amount of time that has been simulated for this investigation was 50 s.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Equation of State ====&lt;br /&gt;
The density of the system obtained from the log files were plotted against temperature for both of pressures that were simulated, including error bars. Also included in the graphs was a curve for the expected densities as predicted by the ideal gas law, pV =NkT. &amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_5.jpg|&#039;&#039;&#039;Figure 5:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 3.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_6.jpg|&#039;&#039;&#039;Figure 6:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 4.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;It was found that the&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulated density was always lower than the values predicted by the ideal gas law for a given pressure. This was because for an ideal gas, there was no interactions between the atoms whereas the atoms in our simulation had been modeled using a forcefield of the Lennard-Jones potential. Moreover, the discrepancy between the observed and predicted values of density increased with pressure, especially at the lower temperatures where the deviation was larger.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== NVT Ensemble ===&lt;br /&gt;
&lt;br /&gt;
==== 1. Heat Capacity ====&lt;br /&gt;
In a particular system where temperature was fixed, thermodynamic properties such as total energy were likely to fluctuate from its constant average and these fluctuations gives rise to the heat capacity, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv&amp;lt;/span&amp;gt; where its value can be calculated using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv = δE/δT = N&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.Var(E)/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, it was important to note that the simulation carried out here was altered to NVT conditions (canonical ensemble). As with the previous simulation, ten phase points were required, but this time using five values of temperature (2.0, 2.2, 2.4, 2.6, 2.8) and two values of density (0.2, 0.8). A copy of the modified input script for NVT is attached below to highlight the changes made:&lt;br /&gt;
&lt;br /&gt;
https://goo.gl/5GnrfV&lt;br /&gt;
&lt;br /&gt;
==== 2. Results ====&lt;br /&gt;
Once data was collected from the log files (but without standard errors), the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv/V against average temperature was plotted on the same axes, where V was the volume of the simulation cell.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_7.jpg|&#039;&#039;&#039;Figure 7:&#039;&#039;&#039; A plot of heat capacity over volume as a function of average temperature&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the results obtained, this was not the trend that was expected. The data supposed to show a constant heat capacity for both densities, but instead heat capacity decreases when temperature was increased. Comparing both sets of data, for a system having a higher density, its heat capacity will in turn be raised.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Radial Distribution Function (RDF) ===&lt;br /&gt;
The radial pair distribution function or g(r) is &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;defined as the probability of locating the nearest neighbouring atom at a distance r from a reference atom. The visualising software VMD was used to calculate the RDF of three simulations under different states, that were the solid, liquid and vapour phases.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 1. Phase Transitions ====&lt;br /&gt;
In order to set up the various states, the values of d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ensity and temperature of the simulation were modified appropriately based on the phase transitions of the Lennard-Jones system. The following were the set of parameters determined for each state:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.002 was used to run all simulations in LAMMPS.&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_solid.JPG|&#039;&#039;&#039;Figure 8(a):&#039;&#039;&#039; View of solid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_liquid.JPG|&#039;&#039;&#039;Figure 8(b):&#039;&#039;&#039; View of liquid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_vapour.JPG|&#039;&#039;&#039;Figure 8(c):&#039;&#039;&#039; View of gas phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Qualitative Analysis of RDF ====&lt;br /&gt;
When each simulation was completed, its .trj file was inputted into VMD where the value of g(r) and &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ g(r) dr (or running integral) were evaluated. The graph of RDF against reduced distance were plotted on the same axes for all three states.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_8.jpg|&#039;&#039;&#039;Figure 9:&#039;&#039;&#039; Combined g(r) against reduced distance plot for the solid, liquid and vapour systems&lt;br /&gt;
&amp;lt;/gallery&amp;gt;In the s&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;olid RDF, the function showed a regular pattern of peaks with almost the similar intervals over a long range of distance. The peaks were discrete at approximately σ, √2 σ, √3 σ, and so on. There was a very high chance of finding an atom at the position of these peaks whilst the probability of locating an atom between the peaks was very low. This illustrated that solids had a uniform packing structure and had very little defect within the lattice. Moreover, the first three peaks corresponded to the first, second and third coordination shells.&lt;br /&gt;
&lt;br /&gt;
Thus the lattice spacing can be determined:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.4 = 2.85714&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√2.85714 = 1.41898&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;To calculate the coordination number, g(r) was integrated in spherical coordinates to the first minimum of the RDF. Hence, the coordination numbers for the solid were: first peak (12), second peak (4), and third peak (8).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the l&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iquid RDF, the first and sharpest peak occured close to σ and the subsequent peaks appeared at about intervals of σ, but smaller than the first peak. At longer distances of r, the value of g(r) remained unchanged at 1, showing that liquid particles were independent of one another. Thus, liquids were less closely packed compared to solids and had the ability to move dynamically, hence they do not possess a fixed structure. They were able to form multiple coordination spheres, but in most cases, there was only one coordination sphere present at a given time.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the v&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;apour RDF, the function only showed one obvious peak at about σ which then plateaued off at a value of g(r) = 1, the normal bulk density of the system. The regions that experienced the greatest intermolecular forces when g(r) &amp;gt; 1 were for 1 &amp;lt; σ &amp;lt; 2.5. From this result, it was concluded that gases tend to move around randomly in a sporadic motion (Brownian motion) and at most, they only have a single short-lived coordination sphere.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Diffusion Coefficient ===&lt;br /&gt;
In this experiment, the way in which atoms move around in the system (through translational motion) was of particular interest. This form of motion was governed by the diffusion coefficient, D or mass diffusivity, which can be measured using two main methods detailed below: &lt;br /&gt;
&lt;br /&gt;
==== 1. Mean Squared Displacement (MSD) ====&lt;br /&gt;
Since D was closely related to MSD, a simulation was ran (at specific density and temperature) for all three phases with an additional input command to calculate MSD and VACF (mentioned in next section). The set of parameters used to obtain each physical phase were identical those implemented during the RDF investigation:&lt;br /&gt;
&lt;br /&gt;
Timestep = 0.002&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once data was obtained from the &amp;quot;optional output-2&amp;quot; files, the total MSD (resultant MSD from individual Cartesian directions (x,y,z)) was plotted against timestep:&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_9.jpg|&#039;&#039;&#039;Figure 10(a):&#039;&#039;&#039; Total MSD as a function of timestep for the solid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_10.jpg|&#039;&#039;&#039;Figure 10(b):&#039;&#039;&#039; Total MSD as a function of timestep for the liquid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_11.jpg|&#039;&#039;&#039;Figure 10(c):&#039;&#039;&#039; Total MSD as a function of timestep for the gas phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The relationship between total MSD and timestep obtained for the three phases were as expected. Total MSD for solids initially fluctuated before becoming constant whereas for the liquid phase, its values increased linearly but gradually, and as for the vapour phase, total MSD increased linearly and rapidly.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since D = 1/6 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;δ&amp;lt;r&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;(t)&amp;gt; / δt, &amp;lt;/span&amp;gt;then &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/6 (gradient of graph of MSD vs timestep).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus using the gradient of the best-fit line, for:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/6 (2.3514 x 10&amp;lt;sup&amp;gt;-8&amp;lt;/sup&amp;gt;) = 3.919 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/6 (1.3140 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt;) = 2.190 x 10&amp;lt;sup&amp;gt;-4&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/6 (7.2313 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt;) = 1.205 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this, the d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iffusion coefficient was shown to have increased going from solids to gases. Moreover, it was noted that the diffusion coefficient for the solid phase was so small, it was negligible (zero).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. MSD: One Million Atoms ====&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_12.jpg|&#039;&#039;&#039;Figure 11(a):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_13.jpg|&#039;&#039;&#039;Figure 11(b):&#039;&#039;&#039; Total MSD plotted against timestep for the liquid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_14.jpg|&#039;&#039;&#039;Figure 11(c):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;For the same&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulation repeated using one million atoms, values of total MSD obtained were higher compared to that with fewer atoms (except for the solid phase where the total MSD was lowered). Moreover, total MSD for the liquid and vapour phases increased more linearly when using more atoms (and this was most evident for the vapour phase).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Extension: Velocity Autocorrelation Function (VACF) ====&lt;br /&gt;
The other alternative way of calculating D was by using the velocity autocorrelation function. The same input script was used here (as in the previous MSD section) and the simulation was ran for the solid, liquid and vapour phases.&lt;br /&gt;
&lt;br /&gt;
In relation to the theoretical concepts covered in the 1D harmonic oscillator, the &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;normalised velocity autocorrelation function, C(τ) was evaluated for this 1D harmonic system:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Given that C(τ) = &amp;lt; v(t).v(t+τ) &amp;gt; and x(t) = cos(ωt+ϕ),&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;VACF of a 1D harmonic oscillator, C(τ) = ∫ v(t).v(t+τ) dt&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, the normalised VACF, C(τ) = ∫ v(t).v(t+τ) dt / ∫ v(t)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; dt&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence to compare between the different oscillating systems, the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;C(τ) with ω=1/(2п) along with the VACFs from the solid and liquid simulations was plotted along the same axes, from x = 0 to 500.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_15.jpg|&#039;&#039;&#039;Figure 12:&#039;&#039;&#039; C(τ) with ω=1/(2п) and the VACFs of the solid and liquid phases as a function of timestep (x = 0 to 500)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;In the solid and liquid phases, where atoms are close to each other and of high density, strong interatomic forces were most evident. Atoms in these systems tend to adopt a position where there was a balance between the attractive and repulsive forces, thus they will not be easily displaced. As a result, these atoms will oscillate as part of their motion, vibrating between points of maxima and minima. Hence, this gave rise to a VACF function which showed a periodic oscillation from positive to negative values.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;For the case of solids, the magnitude of oscillation decayed over time due to forces acting to oppose these motion, thus the function closely resembled a damped oscillation that decreased exponentially. Whilst for liquids, the atoms behaved similarly but they were able to glide among themselves. The process of diffusion also drastically weakened any oscillatory motion the system possessed and the VACF function showed a very damp oscillation, with only a single minima point.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The minima in the VACFs in the solid and liquid system relates to the maximum change in the magnitude or direction (of the atoms in the system), thus altering their velocities, giving rise to a minimum value for the product of v(t=0) and v(t=τ).&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;On the other hand, the 1D harmonic oscillator model has a VACF function of constant amplitude (A=1) and period (T=40 s). Its magnitude of oscillation was greater than that of the solid and liquid systems, implying that no damping or perturbative forces had acted upon the system throughout its motion (and based on Newton’s Law of Motion the oscillation its motion will not change and continue to remain this way). Whereas, unlike the Lennard-Jones model describe earlier, atoms in the 1D harmonic oscillator do not interact with each other by attraction or repulsion and thus no energy was dissipated.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 4. The Trapezium Rule ====&lt;br /&gt;
Utilising the trapezium rule to approximately calculate the integral or area under the VACF graph, the values of D were estimated for each of the three physical phases.&lt;br /&gt;
&lt;br /&gt;
Given D = 1/3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ &amp;lt;v(0).v(τ)&amp;gt; dτ, then &amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/3 (area under the graph of C(τ) vs timestep).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus using the area under the graph calculated using trapezium rule, for:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/3 (216.9089038) = 72.303 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/3 (277.865793) = 92.622 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/3 (10675.4021) = 3358.467 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The values of D above were as expected, with them increasing in magnitude from the solid to vapour phase. Going a step further, the running integrals for each case were plotted as follows:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 5. VACF: One Million Atoms ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;For one million atoms,&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Solid: D = 1/3 (176.9191107) = 58.973 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Liquid: D = 1/3 (151.586442) = 50.529 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Vapour: D = 1/3 (4902.698696) = 1634.233 s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The values of diffusion coefficient increases from the solid to vapour phase&lt;br /&gt;
as predicted, but is anomalous for the liquid phase.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Fill&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654558</id>
		<title>Rep:Mod:dw3015 y3c liqsim</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654558"/>
		<updated>2017-12-20T16:42:53Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: /* 4. VACF: One Million Atoms */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Year 3 Computational Labs=&lt;br /&gt;
&lt;br /&gt;
= Molecular Dynamics Simulations of Simple Liquids =&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Aims and Objectives ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
In order for the simulation to replicate a real system as accurately, a few criterion had been defined, namely the simulation model, initial test parameters, forcefield, final parameters and tools used.&lt;br /&gt;
&lt;br /&gt;
=== Velocity-Verlet Algorithm and Timestep ===&lt;br /&gt;
Using approximations, we assumed that atoms will behave classically and therefore the velocity-Verlet algorithm was applied into the simulation, where we&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; have defined the starting positions of the atoms, x&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0) and their velocities at the same time, v&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0). As an example, this algorithm was used in a simple harmonic oscillator: &amp;lt;/span&amp;gt;https://goo.gl/As44o7&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.1 was initially tested. Subsequently, the value of &amp;quot;ERROR&amp;quot; as function of time was investigated and was found that this relationship was given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;y = 0.000422x + 0.000073&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;R-squared value = 0.999977&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The function above remained constant although the value of timestep was varied. It was found that w&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;hen timestep was increased, this will add more cycles to the &amp;quot;ENERGY&amp;quot; and &amp;quot;ERROR&amp;quot; graphs but period remained constant. Amplitude of &amp;quot;ERROR&amp;quot; graph will increase over time leading to bigger magnitude in error. However, the function of maxima in the &amp;quot;ERROR&amp;quot; graph was unchanged. The &amp;quot;ENERGY&amp;quot; graph will also have higher amplitude, hence bigger change in total energy. Timestep must therefore not exceed 0.1990665 for change in total energy to remain below 1%.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The prove of concept is shown here: https://goo.gl/zC9YU9&lt;br /&gt;
&lt;br /&gt;
Moreover, the t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;otal energy of a physical system was measured and expected to remain constant, indicating that the system has completed equilibration and energy has been completely redistributed among the particles in a given system (through collisions) upon the start of the simulation.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Model ===&lt;br /&gt;
A simple particle in a box model was used for all of the simulations. Using LAMMPS, a cubic box of a given length containing a given amount of atoms of mass 1.0 was created. This will form the boundary for the simulations carried out.&lt;br /&gt;
&lt;br /&gt;
For atoms that move beyond this boundary, the periodic boundary conditions was able to correct the atoms&#039; coordinates by allowing its replica to enter from the opposite face.&lt;br /&gt;
&lt;br /&gt;
For instance, a&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;n atom at position (0.5, 0.5, 0.5) in a cubic simulation box which runs from (0, 0, 0) to (1.0, 1.0, 1.0), moving along a vector (0.7, 0.6, 0.2) in a single timestep, its final position is at (1.2, 1.1, 0.7). But after applying periodic boundary conditions, the atom position was corrected to (0.2, 0.1, 0.7).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To give an idea of the number of molecules simulated, the number of moles of 1 ml of water under standard conditions were estimated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of 1 ml water = ρV = 1 g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;n of 1ml water = m/M&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 0.05550843506 mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number of water molecules = nN&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 3.342796 x 10&amp;lt;sup&amp;gt;22&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a large and unsuitable number to simulate. A value of 10000 would be more reasonable, thus the volume of 10000 water molecules was calculated to give a better perspective:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For 10000 water molecules, n of water = n.o.m./N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 1.660539&lt;br /&gt;
x 10&amp;lt;sup&amp;gt;-20&amp;lt;/sup&amp;gt; mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of water = nM&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V of water = m/ρ = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; ml&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Forcefield ===&lt;br /&gt;
The Lennard-Jones potential, which fits well into the physic of the simulation, was utilised knowing that the force acting on the atoms depended on the potential they experienced. At longer distances however, this interaction will be so small that it can be negligible, so a cutoff point of 3.0&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ was put in place.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Lennard-Jones Potential, U = 4ε [(σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To understand the relationship better, the separation &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; at which the potential of zero was evaluated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;When U=0, (σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Let (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = y, thus y&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;-y = 0, y(y-1) = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore, y=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0, undefined; (y-1)=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;= 1, hence R=r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;=σ (F = repulsive force)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along with the separation at equilibrium and hence the well depth &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ϕ(r&amp;lt;sub&amp;gt;eq),&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;At equilibrium, F=0 (minimum), dU/dR = -48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&lt;br /&gt;
+ 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For turning point, dU/dR = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;),&lt;br /&gt;
(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)/(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;, R&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;=2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;,&lt;br /&gt;
hence R=(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)σ, R=r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;=1.12246σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore well depth, ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;)&lt;br /&gt;
- (σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;)]&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(1/4)-(1/2)], ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = -ε (minimum)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Moreover, the values of integrals of 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, 2.5 σ and 3 σ to infinity were calculated respectively:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;∫ϕ(r)dr = -1/3εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;), and when σ=ε=1,&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.020671&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2.5 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0068127&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0027416&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
The quantities used in the simulation were treated and divided with a scaling factor, such as &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ or &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ε, to ensure that our results were more manageable. For example, for argon with Lennard-Jones (LJ) parameters σ = 0.34nm and ε/&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; = 120K, its LJ cutoff r* = 3.2 in real units was:&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r=r*σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r = 3.2(0.34 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt;) = 1.088 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; m&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, its well depth in real units was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = ε = k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T x N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ε = (1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(120 K)(6.02214 x 10&amp;lt;sup&amp;gt;23 &amp;lt;/sup&amp;gt;&#039;&#039;mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; = 0.997735 kJ mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, the reduced temperature T* = 1.5 can be calculated in real units:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = T*ε/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = 1.5(997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)/(1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(6.02214 &#039;&#039;x 10&amp;lt;sup&amp;gt;23&amp;lt;/sup&amp;gt; mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 180 K&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lattice Structure ===&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Giving atoms random starting coordinates can be problematic as this may generate two atoms close to each other in our simulation, where if the separation between them was below σ, this can cause a strong (or even infinite) repulsion pushing the atoms apart. Therefore, the atoms were initially created in a 3D simple cubic (sc) lattice.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given that the number density (N/V) of lattice points was 0.8, the lattice spacing was found to be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number density, ρ=N/V, V=N/ρ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V = 1/0.8 = 1.25&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;L&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;attice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√1.25 = 1.07722&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or a face-centred cubic (fcc) lattice with number density 1.2, its lattice spacing was calculated:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.2 = 3.33333&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√3.33333 = 1.49380&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Furthermore, a simulation sc box of width 10 was created as a control. Within this region, there were &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;4000 atoms present (4 atoms in each unit cell where there are 10x10x10 = 1000 unit cells). Following this, the mass and pair coefficient of the each type of atom were assigned as below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Definitions for each line in the command code are provided as such:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Assigning mass of value 1.0 to all type 1 atoms&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Specifying a standard 12/6 Lennard-Jones potential with no Coulomb between atom pairs with global LJ cutoff set to distance r*=3.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Setting the pairwise forcefield coefficients for the&lt;br /&gt;
symmetric I,J interaction to the same value of 1.0 for all (given by asterisk) type 1 with type 1 atom pairs&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Timestep Optimisation ===&lt;br /&gt;
The code below was written in the input script with the timestep taking a value of 0.001:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### SPECIFY TIMESTEP ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable timestep equal 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable n_steps equal floor(100/${timestep})&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep ${timestep}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### RUN SIMULATION ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run ${n_steps}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: T&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he variable command is a loop which was assigned a value that is later evaluated in the input script, where in this case timestep was equal to 0.001. This is useful because the defined value can be referenced in subsequent variables, therefore making it reusable and eliminating the need to repeatedly input the value 0.001. For instance, the defined timestep was used in the math function &amp;quot;floor&amp;quot; assigned to variable n_step and subsequently the value n_step is used in the &amp;quot;run&amp;quot; command. Hence, this coding method will be more pragmatic than just writing the script simply as:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choosing the correct timestep was crucial for the subsequent simulations which were undertaken. To determine the optimum timestep, simulations using different timesteps (0.001, 0.0025, 0.0075, 0.01 and 0.015) were tested. To illustrate that the simulation had equilibrated, the graphs of total e&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;nergy, temperature and pressure against time were plotted for the 0.001 timestep experiment:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_1.jpg|&#039;&#039;&#039;Figure 1:&#039;&#039;&#039; Total energy against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_2.jpg|&#039;&#039;&#039;Figure 2:&#039;&#039;&#039; Temperature against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_3.jpg|&#039;&#039;&#039;Figure 3:&#039;&#039;&#039; Pressure against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the plots above, the simulation did achieve equilibrium and the values of total energy, temperature and pressure had converged to a constant average (within a certain degree of error) at approximately 0.5 s into the simulation.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_4.jpg|&#039;&#039;&#039;Figure 4:&#039;&#039;&#039; Single plot of total energy against time for all five timesteps.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Among the five timesteps, 0.001 was most likely to give acceptable results. The data obtained was of high resolution, with the smallest interval between data points. The simulation was said to give the best representation of a physical reality being investigated. On the other hand, a timestep of 0.015 was the least suitable choice because the total energy does not converge. The energy initially stabilised but subsequently diverged (increased) after 20 s and thus system has not fully equilibrated. To give the best balance between resolution and speed (time taken to complete a simulation), timestep within the acceptable range of 0.001 to 0.003 were used. Any timestep above 0.003 would not properly allow for total energy to converge and gives a large gap between data points.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== LAMMPS Toolkit ===&lt;br /&gt;
The LAMMPS Molecular Dynamics Simulator is an extremely useful simulation software containing a vast array of tools that was further utilised throughout this experiment. Among them were the &amp;quot;variable&amp;quot; and &amp;quot;thermo_style&amp;quot; commands used in changing ensembles and measuring thermodynamics properties respectively, which were crucial in obtaining key data. Towards the end of the investigation, the usage of the radial distribution function (RDF), mean squared displacement (MSD) and velocity autocorrelation function (VACF) were also explored and applied into many of the simulations conducted.&lt;br /&gt;
&lt;br /&gt;
=== Visual Molecular Dynamics (VMD) ===&lt;br /&gt;
To help visualise some of the simulations, LAMMPS was also supported by the VMD 3D graphics programme that was able to read trajectory (.trj) files in order to display our simulation through multiple modes and perspectives. This software was also used to conduct further calculations such as evaluating running integrals for the RDF.&lt;br /&gt;
&lt;br /&gt;
== Results and Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== NpT Ensemble ===&lt;br /&gt;
For this section of the investigation, the simulation has been modified so that it can run under NpT conditions (called the isobaric-isothermal ensemble in statistical mechanics) to understand what changes to thermodynamic properties occur at this particular experimental condition. The data collected was used to plot an equation of state at atmospheric pressure for the case of our model fluid.&lt;br /&gt;
&lt;br /&gt;
Five values of temperature (2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;.0, 2.5, 3.0, 3.5, 4.0&amp;lt;/span&amp;gt;) and two values of pressure (3.0, 4.0) given in Lennard-Jones units were chosen based on the results of the optimisation test ran earlier. The timestep was set to 0.0025 and the input script modified accordingly for all ten (p,T) phase points before being submitted to LAMMPS.&lt;br /&gt;
&lt;br /&gt;
==== 1. Controlling Temperature ====&lt;br /&gt;
In general, temperature, T at a given time during the course of the simulation will be prone to fluctuations and will differ slightly from the intended temperature of the system, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;𝛕 (value specified in the input script). However, T can be easily controlled by multiplying each velocity term of each atom by a constant factor, γ whereby:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The kinetic energy of the system can be written as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T &#039;&#039;&#039;&#039;&#039;(Eq. 1)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;𝛕 &#039;&#039;&#039;&#039;&#039;(Eq. 2)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Dividing (Eq. 2) by (Eq. 1):&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)/( v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;) = 𝛕/T&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 𝛕/T, thus γ = √(𝛕/T)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, the value of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;γ can be determined and used to correct any deviations in T.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Sampling and Averaging ====&lt;br /&gt;
In the input script, there were lines entered as:&lt;br /&gt;
 fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
 run 100000&lt;br /&gt;
These lines were needed to measure key thermodynamics properties such as density, temperature and pressure respectively. Most importantly, the values 100, 1000 and 100000 play a vital role in directing how often these properties are averaged and how many measurements contribute to the final average. Each number is represented as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100 = Nevery&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1000 = Nrepeat&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100000 = Nfreq&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The three arguments above specify the timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a multiple of 100000. The average was over 1000 quantities, computed in the preceding portion of the simulation every 100 timesteps. Nfreq must be a multiple of Nevery and Nevery must be non-zero even if Nrepeat was 1. Also, the timesteps contributing to the average value cannot overlap, i.e. Nrepeat*Nevery cannot exceed Nfreq.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;, by referring to the log (.log) output file, the amount of time that has been simulated for this investigation was 50 s.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Equation of State ====&lt;br /&gt;
The density of the system obtained from the log files were plotted against temperature for both of pressures that were simulated, including error bars. Also included in the graphs was a curve for the expected densities as predicted by the ideal gas law, pV =NkT. &amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_5.jpg|&#039;&#039;&#039;Figure 5:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 3.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_6.jpg|&#039;&#039;&#039;Figure 6:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 4.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;It was found that the&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulated density was always lower than the values predicted by the ideal gas law for a given pressure. This was because for an ideal gas, there was no interactions between the atoms whereas the atoms in our simulation had been modeled using a forcefield of the Lennard-Jones potential. Moreover, the discrepancy between the observed and predicted values of density increased with pressure, especially at the lower temperatures where the deviation was larger.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== NVT Ensemble ===&lt;br /&gt;
&lt;br /&gt;
==== 1. Heat Capacity ====&lt;br /&gt;
In a particular system where temperature was fixed, thermodynamic properties such as total energy were likely to fluctuate from its constant average and these fluctuations gives rise to the heat capacity, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv&amp;lt;/span&amp;gt; where its value can be calculated using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv = δE/δT = N&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.Var(E)/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, it was important to note that the simulation carried out here was altered to NVT conditions (canonical ensemble). As with the previous simulation, ten phase points were required, but this time using five values of temperature (2.0, 2.2, 2.4, 2.6, 2.8) and two values of density (0.2, 0.8). A copy of the modified input script for NVT is attached below to highlight the changes made:&lt;br /&gt;
&lt;br /&gt;
https://goo.gl/5GnrfV&lt;br /&gt;
&lt;br /&gt;
==== 2. Results ====&lt;br /&gt;
Once data was collected from the log files (but without standard errors), the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv/V against average temperature was plotted on the same axes, where V was the volume of the simulation cell.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_7.jpg|&#039;&#039;&#039;Figure 7:&#039;&#039;&#039; A plot of heat capacity over volume as a function of average temperature&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the results obtained, this was not the trend that was expected. The data supposed to show a constant heat capacity for both densities, but instead heat capacity decreases when temperature was increased. Comparing both sets of data, for a system having a higher density, its heat capacity will in turn be raised.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Radial Distribution Function (RDF) ===&lt;br /&gt;
The radial pair distribution function or g(r) is &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;defined as the probability of locating the nearest neighbouring atom at a distance r from a reference atom. The visualising software VMD was used to calculate the RDF of three simulations under different states, that were the solid, liquid and vapour phases.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 1. Phase Transitions ====&lt;br /&gt;
In order to set up the various states, the values of d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ensity and temperature of the simulation were modified appropriately based on the phase transitions of the Lennard-Jones system. The following were the set of parameters determined for each state:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.002 was used to run all simulations in LAMMPS.&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_solid.JPG|&#039;&#039;&#039;Figure 8(a):&#039;&#039;&#039; View of solid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_liquid.JPG|&#039;&#039;&#039;Figure 8(b):&#039;&#039;&#039; View of liquid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_vapour.JPG|&#039;&#039;&#039;Figure 8(c):&#039;&#039;&#039; View of gas phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Qualitative Analysis of RDF ====&lt;br /&gt;
When each simulation was completed, its .trj file was inputted into VMD where the value of g(r) and &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ g(r) dr (or running integral) were evaluated. The graph of RDF against reduced distance were plotted on the same axes for all three states.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_8.jpg|&#039;&#039;&#039;Figure 9:&#039;&#039;&#039; Combined g(r) against reduced distance plot for the solid, liquid and vapour systems&lt;br /&gt;
&amp;lt;/gallery&amp;gt;In the s&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;olid RDF, the function showed a regular pattern of peaks with almost the similar intervals over a long range of distance. The peaks were discrete at approximately σ, √2 σ, √3 σ, and so on. There was a very high chance of finding an atom at the position of these peaks whilst the probability of locating an atom between the peaks was very low. This illustrated that solids had a uniform packing structure and had very little defect within the lattice. Moreover, the first three peaks corresponded to the first, second and third coordination shells.&lt;br /&gt;
&lt;br /&gt;
Thus the lattice spacing can be determined:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.4 = 2.85714&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√2.85714 = 1.41898&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;To calculate the coordination number, g(r) was integrated in spherical coordinates to the first minimum of the RDF. Hence, the coordination numbers for the solid were: first peak (12), second peak (4), and third peak (8).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the l&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iquid RDF, the first and sharpest peak occured close to σ and the subsequent peaks appeared at about intervals of σ, but smaller than the first peak. At longer distances of r, the value of g(r) remained unchanged at 1, showing that liquid particles were independent of one another. Thus, liquids were less closely packed compared to solids and had the ability to move dynamically, hence they do not possess a fixed structure. They were able to form multiple coordination spheres, but in most cases, there was only one coordination sphere present at a given time.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the v&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;apour RDF, the function only showed one obvious peak at about σ which then plateaued off at a value of g(r) = 1, the normal bulk density of the system. The regions that experienced the greatest intermolecular forces when g(r) &amp;gt; 1 were for 1 &amp;lt; σ &amp;lt; 2.5. From this result, it was concluded that gases tend to move around randomly in a sporadic motion (Brownian motion) and at most, they only have a single short-lived coordination sphere.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Diffusion Coefficient ===&lt;br /&gt;
In this experiment, the way in which atoms move around in the system (through translational motion) was of particular interest. This form of motion was governed by the diffusion coefficient, D or mass diffusivity, which can be measured using two main methods detailed below: &lt;br /&gt;
&lt;br /&gt;
==== 1. Mean Squared Displacement (MSD) ====&lt;br /&gt;
Since D was closely related to MSD, a simulation was ran (at specific density and temperature) for all three phases with an additional input command to calculate MSD and VACF (mentioned in next section). The set of parameters used to obtain each physical phase were identical those implemented during the RDF investigation:&lt;br /&gt;
&lt;br /&gt;
Timestep = 0.002&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once data was obtained from the &amp;quot;optional output-2&amp;quot; files, the total MSD (resultant MSD from individual Cartesian directions (x,y,z)) was plotted against timestep:&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_9.jpg|&#039;&#039;&#039;Figure 10(a):&#039;&#039;&#039; Total MSD as a function of timestep for the solid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_10.jpg|&#039;&#039;&#039;Figure 10(b):&#039;&#039;&#039; Total MSD as a function of timestep for the liquid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_11.jpg|&#039;&#039;&#039;Figure 10(c):&#039;&#039;&#039; Total MSD as a function of timestep for the gas phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The relationship between total MSD and timestep obtained for the three phases were as expected. Total MSD for solids initially fluctuated before becoming constant whereas for the liquid phase, its values increased linearly but gradually, and as for the vapour phase, total MSD increased linearly and rapidly.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since D = 1/6 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;δ&amp;lt;r&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;(t)&amp;gt; / δt, &amp;lt;/span&amp;gt;then &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/6 (gradient of graph of MSD vs timestep)&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus using the gradient of the best-fit line, for:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/6 (2.3514 x 10&amp;lt;sup&amp;gt;-8&amp;lt;/sup&amp;gt;) = 3.919 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/6 (1.3140 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt;) = 2.190 x 10&amp;lt;sup&amp;gt;-4&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/6 (7.2313 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt;) = 1.205 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this, the d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iffusion coefficient was shown to have increased going from solids to gases. Moreover, it was noted that the diffusion coefficient for the solid phase was so small, it was negligible (zero).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. MSD: One Million Atoms ====&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_12.jpg|&#039;&#039;&#039;Figure 11(a):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_13.jpg|&#039;&#039;&#039;Figure 11(b):&#039;&#039;&#039; Total MSD plotted against timestep for the liquid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_14.jpg|&#039;&#039;&#039;Figure 11(c):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;For the same&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulation repeated using one million atoms, values of total MSD obtained were higher compared to that with fewer atoms (except for the solid phase where the total MSD was lowered). Moreover, total MSD for the liquid and vapour phases increased more linearly when using more atoms (and this was most evident for the vapour phase).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Extension: Velocity Autocorrelation Function (VACF) ====&lt;br /&gt;
The other alternative way of calculating D was by using the velocity autocorrelation function. The same input script was used here (as in the previous MSD section) and the simulation was ran for the solid, liquid and vapour phases.&lt;br /&gt;
&lt;br /&gt;
In relation to the theoretical concepts covered in the 1D harmonic oscillator, the &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;normalised velocity autocorrelation function, C(τ) was evaluated for this 1D harmonic system:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Given that C(τ) = &amp;lt; v(t).v(t+τ) &amp;gt; and x(t) = cos(ωt+ϕ),&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;VACF of a 1D harmonic oscillator, C(τ) = ∫ v(t).v(t+τ) dt&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, the normalised VACF, C(τ) = ∫ v(t).v(t+τ) dt / ∫ v(t)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; dt&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence to compare between the different oscillating systems, the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;C(τ) with ω=1/(2п) along with the VACFs from the solid and liquid simulations was plotted along the same axes, from x = 0 to 500.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_15.jpg|&#039;&#039;&#039;Figure 12:&#039;&#039;&#039; C(τ) with ω=1/(2п) and the VACFs of the solid and liquid phases as a function of timestep (x = 0 to 500)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;In the solid and liquid phases, where atoms are close to each other and of high density, strong interatomic forces were most evident. Atoms in these systems tend to adopt a position where there was a balance between the attractive and repulsive forces, thus they will not be easily displaced. As a result, these atoms will oscillate as part of their motion, vibrating between points of maxima and minima. Hence, this gave rise to a VACF function which showed a periodic oscillation from positive to negative values.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;For the case of solids, the magnitude of oscillation decayed over time due to forces acting to oppose these motion, thus the function closely resembled a damped oscillation that decreased exponentially. Whilst for liquids, the atoms behaved similarly but they were able to glide among themselves. The process of diffusion also drastically weakened any oscillatory motion the system possessed and the VACF function showed a very damp oscillation, with only a single minima point.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The minima in the VACFs in the solid and liquid system relates to the maximum change in the magnitude or direction (of the atoms in the system), thus altering their velocities, giving rise to a minimum value for the product of v(t=0) and v(t=τ).&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;On the other hand, the 1D harmonic oscillator model has a VACF function of constant amplitude (A=1) and period (T=40 s). Its magnitude of oscillation was greater than that of the solid and liquid systems, implying that no damping or perturbative forces had acted upon the system throughout its motion (and based on Newton’s Law of Motion the oscillation its motion will not change and continue to remain this way). Whereas, unlike the Lennard-Jones model describe earlier, atoms in the 1D harmonic oscillator do not interact with each other by attraction or repulsion and thus no energy was dissipated.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 4. VACF: One Million Atoms ====&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Fill&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654557</id>
		<title>Rep:Mod:dw3015 y3c liqsim</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654557"/>
		<updated>2017-12-20T16:37:18Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: /* 3. Extension: Velocity Autocorrelation Function (VACF) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Year 3 Computational Labs=&lt;br /&gt;
&lt;br /&gt;
= Molecular Dynamics Simulations of Simple Liquids =&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Aims and Objectives ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
In order for the simulation to replicate a real system as accurately, a few criterion had been defined, namely the simulation model, initial test parameters, forcefield, final parameters and tools used.&lt;br /&gt;
&lt;br /&gt;
=== Velocity-Verlet Algorithm and Timestep ===&lt;br /&gt;
Using approximations, we assumed that atoms will behave classically and therefore the velocity-Verlet algorithm was applied into the simulation, where we&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; have defined the starting positions of the atoms, x&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0) and their velocities at the same time, v&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0). As an example, this algorithm was used in a simple harmonic oscillator: &amp;lt;/span&amp;gt;https://goo.gl/As44o7&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.1 was initially tested. Subsequently, the value of &amp;quot;ERROR&amp;quot; as function of time was investigated and was found that this relationship was given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;y = 0.000422x + 0.000073&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;R-squared value = 0.999977&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The function above remained constant although the value of timestep was varied. It was found that w&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;hen timestep was increased, this will add more cycles to the &amp;quot;ENERGY&amp;quot; and &amp;quot;ERROR&amp;quot; graphs but period remained constant. Amplitude of &amp;quot;ERROR&amp;quot; graph will increase over time leading to bigger magnitude in error. However, the function of maxima in the &amp;quot;ERROR&amp;quot; graph was unchanged. The &amp;quot;ENERGY&amp;quot; graph will also have higher amplitude, hence bigger change in total energy. Timestep must therefore not exceed 0.1990665 for change in total energy to remain below 1%.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The prove of concept is shown here: https://goo.gl/zC9YU9&lt;br /&gt;
&lt;br /&gt;
Moreover, the t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;otal energy of a physical system was measured and expected to remain constant, indicating that the system has completed equilibration and energy has been completely redistributed among the particles in a given system (through collisions) upon the start of the simulation.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Model ===&lt;br /&gt;
A simple particle in a box model was used for all of the simulations. Using LAMMPS, a cubic box of a given length containing a given amount of atoms of mass 1.0 was created. This will form the boundary for the simulations carried out.&lt;br /&gt;
&lt;br /&gt;
For atoms that move beyond this boundary, the periodic boundary conditions was able to correct the atoms&#039; coordinates by allowing its replica to enter from the opposite face.&lt;br /&gt;
&lt;br /&gt;
For instance, a&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;n atom at position (0.5, 0.5, 0.5) in a cubic simulation box which runs from (0, 0, 0) to (1.0, 1.0, 1.0), moving along a vector (0.7, 0.6, 0.2) in a single timestep, its final position is at (1.2, 1.1, 0.7). But after applying periodic boundary conditions, the atom position was corrected to (0.2, 0.1, 0.7).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To give an idea of the number of molecules simulated, the number of moles of 1 ml of water under standard conditions were estimated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of 1 ml water = ρV = 1 g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;n of 1ml water = m/M&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 0.05550843506 mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number of water molecules = nN&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 3.342796 x 10&amp;lt;sup&amp;gt;22&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a large and unsuitable number to simulate. A value of 10000 would be more reasonable, thus the volume of 10000 water molecules was calculated to give a better perspective:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For 10000 water molecules, n of water = n.o.m./N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 1.660539&lt;br /&gt;
x 10&amp;lt;sup&amp;gt;-20&amp;lt;/sup&amp;gt; mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of water = nM&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V of water = m/ρ = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; ml&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Forcefield ===&lt;br /&gt;
The Lennard-Jones potential, which fits well into the physic of the simulation, was utilised knowing that the force acting on the atoms depended on the potential they experienced. At longer distances however, this interaction will be so small that it can be negligible, so a cutoff point of 3.0&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ was put in place.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Lennard-Jones Potential, U = 4ε [(σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To understand the relationship better, the separation &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; at which the potential of zero was evaluated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;When U=0, (σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Let (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = y, thus y&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;-y = 0, y(y-1) = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore, y=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0, undefined; (y-1)=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;= 1, hence R=r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;=σ (F = repulsive force)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along with the separation at equilibrium and hence the well depth &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ϕ(r&amp;lt;sub&amp;gt;eq),&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;At equilibrium, F=0 (minimum), dU/dR = -48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&lt;br /&gt;
+ 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For turning point, dU/dR = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;),&lt;br /&gt;
(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)/(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;, R&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;=2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;,&lt;br /&gt;
hence R=(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)σ, R=r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;=1.12246σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore well depth, ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;)&lt;br /&gt;
- (σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;)]&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(1/4)-(1/2)], ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = -ε (minimum)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Moreover, the values of integrals of 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, 2.5 σ and 3 σ to infinity were calculated respectively:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;∫ϕ(r)dr = -1/3εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;), and when σ=ε=1,&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.020671&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2.5 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0068127&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0027416&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
The quantities used in the simulation were treated and divided with a scaling factor, such as &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ or &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ε, to ensure that our results were more manageable. For example, for argon with Lennard-Jones (LJ) parameters σ = 0.34nm and ε/&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; = 120K, its LJ cutoff r* = 3.2 in real units was:&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r=r*σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r = 3.2(0.34 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt;) = 1.088 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; m&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, its well depth in real units was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = ε = k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T x N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ε = (1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(120 K)(6.02214 x 10&amp;lt;sup&amp;gt;23 &amp;lt;/sup&amp;gt;&#039;&#039;mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; = 0.997735 kJ mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, the reduced temperature T* = 1.5 can be calculated in real units:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = T*ε/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = 1.5(997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)/(1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(6.02214 &#039;&#039;x 10&amp;lt;sup&amp;gt;23&amp;lt;/sup&amp;gt; mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 180 K&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lattice Structure ===&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Giving atoms random starting coordinates can be problematic as this may generate two atoms close to each other in our simulation, where if the separation between them was below σ, this can cause a strong (or even infinite) repulsion pushing the atoms apart. Therefore, the atoms were initially created in a 3D simple cubic (sc) lattice.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given that the number density (N/V) of lattice points was 0.8, the lattice spacing was found to be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number density, ρ=N/V, V=N/ρ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V = 1/0.8 = 1.25&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;L&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;attice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√1.25 = 1.07722&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or a face-centred cubic (fcc) lattice with number density 1.2, its lattice spacing was calculated:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.2 = 3.33333&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√3.33333 = 1.49380&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Furthermore, a simulation sc box of width 10 was created as a control. Within this region, there were &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;4000 atoms present (4 atoms in each unit cell where there are 10x10x10 = 1000 unit cells). Following this, the mass and pair coefficient of the each type of atom were assigned as below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Definitions for each line in the command code are provided as such:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Assigning mass of value 1.0 to all type 1 atoms&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Specifying a standard 12/6 Lennard-Jones potential with no Coulomb between atom pairs with global LJ cutoff set to distance r*=3.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Setting the pairwise forcefield coefficients for the&lt;br /&gt;
symmetric I,J interaction to the same value of 1.0 for all (given by asterisk) type 1 with type 1 atom pairs&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Timestep Optimisation ===&lt;br /&gt;
The code below was written in the input script with the timestep taking a value of 0.001:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### SPECIFY TIMESTEP ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable timestep equal 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable n_steps equal floor(100/${timestep})&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep ${timestep}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### RUN SIMULATION ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run ${n_steps}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: T&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he variable command is a loop which was assigned a value that is later evaluated in the input script, where in this case timestep was equal to 0.001. This is useful because the defined value can be referenced in subsequent variables, therefore making it reusable and eliminating the need to repeatedly input the value 0.001. For instance, the defined timestep was used in the math function &amp;quot;floor&amp;quot; assigned to variable n_step and subsequently the value n_step is used in the &amp;quot;run&amp;quot; command. Hence, this coding method will be more pragmatic than just writing the script simply as:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choosing the correct timestep was crucial for the subsequent simulations which were undertaken. To determine the optimum timestep, simulations using different timesteps (0.001, 0.0025, 0.0075, 0.01 and 0.015) were tested. To illustrate that the simulation had equilibrated, the graphs of total e&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;nergy, temperature and pressure against time were plotted for the 0.001 timestep experiment:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_1.jpg|&#039;&#039;&#039;Figure 1:&#039;&#039;&#039; Total energy against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_2.jpg|&#039;&#039;&#039;Figure 2:&#039;&#039;&#039; Temperature against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_3.jpg|&#039;&#039;&#039;Figure 3:&#039;&#039;&#039; Pressure against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the plots above, the simulation did achieve equilibrium and the values of total energy, temperature and pressure had converged to a constant average (within a certain degree of error) at approximately 0.5 s into the simulation.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_4.jpg|&#039;&#039;&#039;Figure 4:&#039;&#039;&#039; Single plot of total energy against time for all five timesteps.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Among the five timesteps, 0.001 was most likely to give acceptable results. The data obtained was of high resolution, with the smallest interval between data points. The simulation was said to give the best representation of a physical reality being investigated. On the other hand, a timestep of 0.015 was the least suitable choice because the total energy does not converge. The energy initially stabilised but subsequently diverged (increased) after 20 s and thus system has not fully equilibrated. To give the best balance between resolution and speed (time taken to complete a simulation), timestep within the acceptable range of 0.001 to 0.003 were used. Any timestep above 0.003 would not properly allow for total energy to converge and gives a large gap between data points.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== LAMMPS Toolkit ===&lt;br /&gt;
The LAMMPS Molecular Dynamics Simulator is an extremely useful simulation software containing a vast array of tools that was further utilised throughout this experiment. Among them were the &amp;quot;variable&amp;quot; and &amp;quot;thermo_style&amp;quot; commands used in changing ensembles and measuring thermodynamics properties respectively, which were crucial in obtaining key data. Towards the end of the investigation, the usage of the radial distribution function (RDF), mean squared displacement (MSD) and velocity autocorrelation function (VACF) were also explored and applied into many of the simulations conducted.&lt;br /&gt;
&lt;br /&gt;
=== Visual Molecular Dynamics (VMD) ===&lt;br /&gt;
To help visualise some of the simulations, LAMMPS was also supported by the VMD 3D graphics programme that was able to read trajectory (.trj) files in order to display our simulation through multiple modes and perspectives. This software was also used to conduct further calculations such as evaluating running integrals for the RDF.&lt;br /&gt;
&lt;br /&gt;
== Results and Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== NpT Ensemble ===&lt;br /&gt;
For this section of the investigation, the simulation has been modified so that it can run under NpT conditions (called the isobaric-isothermal ensemble in statistical mechanics) to understand what changes to thermodynamic properties occur at this particular experimental condition. The data collected was used to plot an equation of state at atmospheric pressure for the case of our model fluid.&lt;br /&gt;
&lt;br /&gt;
Five values of temperature (2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;.0, 2.5, 3.0, 3.5, 4.0&amp;lt;/span&amp;gt;) and two values of pressure (3.0, 4.0) given in Lennard-Jones units were chosen based on the results of the optimisation test ran earlier. The timestep was set to 0.0025 and the input script modified accordingly for all ten (p,T) phase points before being submitted to LAMMPS.&lt;br /&gt;
&lt;br /&gt;
==== 1. Controlling Temperature ====&lt;br /&gt;
In general, temperature, T at a given time during the course of the simulation will be prone to fluctuations and will differ slightly from the intended temperature of the system, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;𝛕 (value specified in the input script). However, T can be easily controlled by multiplying each velocity term of each atom by a constant factor, γ whereby:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The kinetic energy of the system can be written as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T &#039;&#039;&#039;&#039;&#039;(Eq. 1)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;𝛕 &#039;&#039;&#039;&#039;&#039;(Eq. 2)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Dividing (Eq. 2) by (Eq. 1):&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)/( v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;) = 𝛕/T&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 𝛕/T, thus γ = √(𝛕/T)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, the value of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;γ can be determined and used to correct any deviations in T.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Sampling and Averaging ====&lt;br /&gt;
In the input script, there were lines entered as:&lt;br /&gt;
 fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
 run 100000&lt;br /&gt;
These lines were needed to measure key thermodynamics properties such as density, temperature and pressure respectively. Most importantly, the values 100, 1000 and 100000 play a vital role in directing how often these properties are averaged and how many measurements contribute to the final average. Each number is represented as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100 = Nevery&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1000 = Nrepeat&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100000 = Nfreq&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The three arguments above specify the timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a multiple of 100000. The average was over 1000 quantities, computed in the preceding portion of the simulation every 100 timesteps. Nfreq must be a multiple of Nevery and Nevery must be non-zero even if Nrepeat was 1. Also, the timesteps contributing to the average value cannot overlap, i.e. Nrepeat*Nevery cannot exceed Nfreq.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;, by referring to the log (.log) output file, the amount of time that has been simulated for this investigation was 50 s.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Equation of State ====&lt;br /&gt;
The density of the system obtained from the log files were plotted against temperature for both of pressures that were simulated, including error bars. Also included in the graphs was a curve for the expected densities as predicted by the ideal gas law, pV =NkT. &amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_5.jpg|&#039;&#039;&#039;Figure 5:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 3.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_6.jpg|&#039;&#039;&#039;Figure 6:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 4.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;It was found that the&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulated density was always lower than the values predicted by the ideal gas law for a given pressure. This was because for an ideal gas, there was no interactions between the atoms whereas the atoms in our simulation had been modeled using a forcefield of the Lennard-Jones potential. Moreover, the discrepancy between the observed and predicted values of density increased with pressure, especially at the lower temperatures where the deviation was larger.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== NVT Ensemble ===&lt;br /&gt;
&lt;br /&gt;
==== 1. Heat Capacity ====&lt;br /&gt;
In a particular system where temperature was fixed, thermodynamic properties such as total energy were likely to fluctuate from its constant average and these fluctuations gives rise to the heat capacity, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv&amp;lt;/span&amp;gt; where its value can be calculated using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv = δE/δT = N&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.Var(E)/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, it was important to note that the simulation carried out here was altered to NVT conditions (canonical ensemble). As with the previous simulation, ten phase points were required, but this time using five values of temperature (2.0, 2.2, 2.4, 2.6, 2.8) and two values of density (0.2, 0.8). A copy of the modified input script for NVT is attached below to highlight the changes made:&lt;br /&gt;
&lt;br /&gt;
https://goo.gl/5GnrfV&lt;br /&gt;
&lt;br /&gt;
==== 2. Results ====&lt;br /&gt;
Once data was collected from the log files (but without standard errors), the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv/V against average temperature was plotted on the same axes, where V was the volume of the simulation cell.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_7.jpg|&#039;&#039;&#039;Figure 7:&#039;&#039;&#039; A plot of heat capacity over volume as a function of average temperature&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the results obtained, this was not the trend that was expected. The data supposed to show a constant heat capacity for both densities, but instead heat capacity decreases when temperature was increased. Comparing both sets of data, for a system having a higher density, its heat capacity will in turn be raised.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Radial Distribution Function (RDF) ===&lt;br /&gt;
The radial pair distribution function or g(r) is &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;defined as the probability of locating the nearest neighbouring atom at a distance r from a reference atom. The visualising software VMD was used to calculate the RDF of three simulations under different states, that were the solid, liquid and vapour phases.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 1. Phase Transitions ====&lt;br /&gt;
In order to set up the various states, the values of d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ensity and temperature of the simulation were modified appropriately based on the phase transitions of the Lennard-Jones system. The following were the set of parameters determined for each state:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.002 was used to run all simulations in LAMMPS.&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_solid.JPG|&#039;&#039;&#039;Figure 8(a):&#039;&#039;&#039; View of solid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_liquid.JPG|&#039;&#039;&#039;Figure 8(b):&#039;&#039;&#039; View of liquid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_vapour.JPG|&#039;&#039;&#039;Figure 8(c):&#039;&#039;&#039; View of gas phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Qualitative Analysis of RDF ====&lt;br /&gt;
When each simulation was completed, its .trj file was inputted into VMD where the value of g(r) and &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ g(r) dr (or running integral) were evaluated. The graph of RDF against reduced distance were plotted on the same axes for all three states.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_8.jpg|&#039;&#039;&#039;Figure 9:&#039;&#039;&#039; Combined g(r) against reduced distance plot for the solid, liquid and vapour systems&lt;br /&gt;
&amp;lt;/gallery&amp;gt;In the s&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;olid RDF, the function showed a regular pattern of peaks with almost the similar intervals over a long range of distance. The peaks were discrete at approximately σ, √2 σ, √3 σ, and so on. There was a very high chance of finding an atom at the position of these peaks whilst the probability of locating an atom between the peaks was very low. This illustrated that solids had a uniform packing structure and had very little defect within the lattice. Moreover, the first three peaks corresponded to the first, second and third coordination shells.&lt;br /&gt;
&lt;br /&gt;
Thus the lattice spacing can be determined:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.4 = 2.85714&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√2.85714 = 1.41898&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;To calculate the coordination number, g(r) was integrated in spherical coordinates to the first minimum of the RDF. Hence, the coordination numbers for the solid were: first peak (12), second peak (4), and third peak (8).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the l&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iquid RDF, the first and sharpest peak occured close to σ and the subsequent peaks appeared at about intervals of σ, but smaller than the first peak. At longer distances of r, the value of g(r) remained unchanged at 1, showing that liquid particles were independent of one another. Thus, liquids were less closely packed compared to solids and had the ability to move dynamically, hence they do not possess a fixed structure. They were able to form multiple coordination spheres, but in most cases, there was only one coordination sphere present at a given time.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the v&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;apour RDF, the function only showed one obvious peak at about σ which then plateaued off at a value of g(r) = 1, the normal bulk density of the system. The regions that experienced the greatest intermolecular forces when g(r) &amp;gt; 1 were for 1 &amp;lt; σ &amp;lt; 2.5. From this result, it was concluded that gases tend to move around randomly in a sporadic motion (Brownian motion) and at most, they only have a single short-lived coordination sphere.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Diffusion Coefficient ===&lt;br /&gt;
In this experiment, the way in which atoms move around in the system (through translational motion) was of particular interest. This form of motion was governed by the diffusion coefficient, D or mass diffusivity, which can be measured using two main methods detailed below: &lt;br /&gt;
&lt;br /&gt;
==== 1. Mean Squared Displacement (MSD) ====&lt;br /&gt;
Since D was closely related to MSD, a simulation was ran (at specific density and temperature) for all three phases with an additional input command to calculate MSD and VACF (mentioned in next section). The set of parameters used to obtain each physical phase were identical those implemented during the RDF investigation:&lt;br /&gt;
&lt;br /&gt;
Timestep = 0.002&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once data was obtained from the &amp;quot;optional output-2&amp;quot; files, the total MSD (resultant MSD from individual Cartesian directions (x,y,z)) was plotted against timestep:&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_9.jpg|&#039;&#039;&#039;Figure 10(a):&#039;&#039;&#039; Total MSD as a function of timestep for the solid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_10.jpg|&#039;&#039;&#039;Figure 10(b):&#039;&#039;&#039; Total MSD as a function of timestep for the liquid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_11.jpg|&#039;&#039;&#039;Figure 10(c):&#039;&#039;&#039; Total MSD as a function of timestep for the gas phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The relationship between total MSD and timestep obtained for the three phases were as expected. Total MSD for solids initially fluctuated before becoming constant whereas for the liquid phase, its values increased linearly but gradually, and as for the vapour phase, total MSD increased linearly and rapidly.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since D = 1/6 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;δ&amp;lt;r&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;(t)&amp;gt; / δt, &amp;lt;/span&amp;gt;then &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/6 (gradient of graph of MSD vs timestep)&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus using the gradient of the best-fit line, for:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/6 (2.3514 x 10&amp;lt;sup&amp;gt;-8&amp;lt;/sup&amp;gt;) = 3.919 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/6 (1.3140 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt;) = 2.190 x 10&amp;lt;sup&amp;gt;-4&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/6 (7.2313 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt;) = 1.205 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this, the d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iffusion coefficient was shown to have increased going from solids to gases. Moreover, it was noted that the diffusion coefficient for the solid phase was so small, it was negligible (zero).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. MSD: One Million Atoms ====&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_12.jpg|&#039;&#039;&#039;Figure 11(a):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_13.jpg|&#039;&#039;&#039;Figure 11(b):&#039;&#039;&#039; Total MSD plotted against timestep for the liquid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_14.jpg|&#039;&#039;&#039;Figure 11(c):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;For the same&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulation repeated using one million atoms, values of total MSD obtained were higher compared to that with fewer atoms (except for the solid phase where the total MSD was lowered). Moreover, total MSD for the liquid and vapour phases increased more linearly when using more atoms (and this was most evident for the vapour phase).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Extension: Velocity Autocorrelation Function (VACF) ====&lt;br /&gt;
The other alternative way of calculating D was by using the velocity autocorrelation function. The same input script was used here (as in the previous MSD section) and the simulation was ran for the solid, liquid and vapour phases.&lt;br /&gt;
&lt;br /&gt;
In relation to the theoretical concepts covered in the 1D harmonic oscillator, the &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;normalised velocity autocorrelation function, C(τ) was evaluated for this 1D harmonic system:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Given that C(τ) = &amp;lt; v(t).v(t+τ) &amp;gt; and x(t) = cos(ωt+ϕ),&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;VACF of a 1D harmonic oscillator, C(τ) = ∫ v(t).v(t+τ) dt&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, the normalised VACF, C(τ) = ∫ v(t).v(t+τ) dt / ∫ v(t)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; dt&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence to compare between the different oscillating systems, the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;C(τ) with ω=1/(2п) along with the VACFs from the solid and liquid simulations was plotted along the same axes, from x = 0 to 500.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_15.jpg|&#039;&#039;&#039;Figure 12:&#039;&#039;&#039; C(τ) with ω=1/(2п) and the VACFs of the solid and liquid phases as a function of timestep (x = 0 to 500)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;In the solid and liquid phases, where atoms are close to each other and of high density, strong interatomic forces were most evident. Atoms in these systems tend to adopt a position where there was a balance between the attractive and repulsive forces, thus they will not be easily displaced. As a result, these atoms will oscillate as part of their motion, vibrating between points of maxima and minima. Hence, this gave rise to a VACF function which showed a periodic oscillation from positive to negative values.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;For the case of solids, the magnitude of oscillation decayed over time due to forces acting to oppose these motion, thus the function closely resembled a damped oscillation that decreased exponentially. Whilst for liquids, the atoms behaved similarly but were able to glide among themselves. The process of diffusion also will drastically weaken any oscillatory motion the system possesses and the VACF function will show a very damp oscillation with a single minima point.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The minima in the VACFs in the solid and liquid system relates to the maximum change in the magnitude or direction (of the atoms in the system), thus altering their velocities, giving rise to a minimum value for the product of v(t=0) and v(t=τ).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;On the other hand, the 1D harmonic oscillator model has a VACF function of constant amplitude (A = 1) and period (T = 40 s). Its magnitude of oscillation was greater than that of the solid and liquid systems, implying that no damping or perturbative forces had acted upon the system throughout its motion (and based on Newton’s Law of Motion the oscillation will be unchanged and continue to remain this way). Whereas, unlike the Lennard-Jones model, atoms do not mutually interact with each other in the 1D harmonic oscillator either by attraction or repulsion and energy is not dissipated.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 4. VACF: One Million Atoms ====&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Fill&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654556</id>
		<title>Rep:Mod:dw3015 y3c liqsim</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654556"/>
		<updated>2017-12-20T16:26:52Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: /* 2. MSD: One Million Atoms */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Year 3 Computational Labs=&lt;br /&gt;
&lt;br /&gt;
= Molecular Dynamics Simulations of Simple Liquids =&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Aims and Objectives ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
In order for the simulation to replicate a real system as accurately, a few criterion had been defined, namely the simulation model, initial test parameters, forcefield, final parameters and tools used.&lt;br /&gt;
&lt;br /&gt;
=== Velocity-Verlet Algorithm and Timestep ===&lt;br /&gt;
Using approximations, we assumed that atoms will behave classically and therefore the velocity-Verlet algorithm was applied into the simulation, where we&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; have defined the starting positions of the atoms, x&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0) and their velocities at the same time, v&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0). As an example, this algorithm was used in a simple harmonic oscillator: &amp;lt;/span&amp;gt;https://goo.gl/As44o7&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.1 was initially tested. Subsequently, the value of &amp;quot;ERROR&amp;quot; as function of time was investigated and was found that this relationship was given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;y = 0.000422x + 0.000073&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;R-squared value = 0.999977&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The function above remained constant although the value of timestep was varied. It was found that w&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;hen timestep was increased, this will add more cycles to the &amp;quot;ENERGY&amp;quot; and &amp;quot;ERROR&amp;quot; graphs but period remained constant. Amplitude of &amp;quot;ERROR&amp;quot; graph will increase over time leading to bigger magnitude in error. However, the function of maxima in the &amp;quot;ERROR&amp;quot; graph was unchanged. The &amp;quot;ENERGY&amp;quot; graph will also have higher amplitude, hence bigger change in total energy. Timestep must therefore not exceed 0.1990665 for change in total energy to remain below 1%.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The prove of concept is shown here: https://goo.gl/zC9YU9&lt;br /&gt;
&lt;br /&gt;
Moreover, the t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;otal energy of a physical system was measured and expected to remain constant, indicating that the system has completed equilibration and energy has been completely redistributed among the particles in a given system (through collisions) upon the start of the simulation.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Model ===&lt;br /&gt;
A simple particle in a box model was used for all of the simulations. Using LAMMPS, a cubic box of a given length containing a given amount of atoms of mass 1.0 was created. This will form the boundary for the simulations carried out.&lt;br /&gt;
&lt;br /&gt;
For atoms that move beyond this boundary, the periodic boundary conditions was able to correct the atoms&#039; coordinates by allowing its replica to enter from the opposite face.&lt;br /&gt;
&lt;br /&gt;
For instance, a&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;n atom at position (0.5, 0.5, 0.5) in a cubic simulation box which runs from (0, 0, 0) to (1.0, 1.0, 1.0), moving along a vector (0.7, 0.6, 0.2) in a single timestep, its final position is at (1.2, 1.1, 0.7). But after applying periodic boundary conditions, the atom position was corrected to (0.2, 0.1, 0.7).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To give an idea of the number of molecules simulated, the number of moles of 1 ml of water under standard conditions were estimated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of 1 ml water = ρV = 1 g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;n of 1ml water = m/M&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 0.05550843506 mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number of water molecules = nN&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 3.342796 x 10&amp;lt;sup&amp;gt;22&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a large and unsuitable number to simulate. A value of 10000 would be more reasonable, thus the volume of 10000 water molecules was calculated to give a better perspective:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For 10000 water molecules, n of water = n.o.m./N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 1.660539&lt;br /&gt;
x 10&amp;lt;sup&amp;gt;-20&amp;lt;/sup&amp;gt; mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of water = nM&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V of water = m/ρ = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; ml&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Forcefield ===&lt;br /&gt;
The Lennard-Jones potential, which fits well into the physic of the simulation, was utilised knowing that the force acting on the atoms depended on the potential they experienced. At longer distances however, this interaction will be so small that it can be negligible, so a cutoff point of 3.0&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ was put in place.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Lennard-Jones Potential, U = 4ε [(σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To understand the relationship better, the separation &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; at which the potential of zero was evaluated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;When U=0, (σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Let (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = y, thus y&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;-y = 0, y(y-1) = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore, y=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0, undefined; (y-1)=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;= 1, hence R=r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;=σ (F = repulsive force)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along with the separation at equilibrium and hence the well depth &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ϕ(r&amp;lt;sub&amp;gt;eq),&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;At equilibrium, F=0 (minimum), dU/dR = -48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&lt;br /&gt;
+ 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For turning point, dU/dR = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;),&lt;br /&gt;
(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)/(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;, R&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;=2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;,&lt;br /&gt;
hence R=(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)σ, R=r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;=1.12246σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore well depth, ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;)&lt;br /&gt;
- (σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;)]&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(1/4)-(1/2)], ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = -ε (minimum)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Moreover, the values of integrals of 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, 2.5 σ and 3 σ to infinity were calculated respectively:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;∫ϕ(r)dr = -1/3εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;), and when σ=ε=1,&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.020671&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2.5 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0068127&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0027416&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
The quantities used in the simulation were treated and divided with a scaling factor, such as &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ or &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ε, to ensure that our results were more manageable. For example, for argon with Lennard-Jones (LJ) parameters σ = 0.34nm and ε/&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; = 120K, its LJ cutoff r* = 3.2 in real units was:&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r=r*σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r = 3.2(0.34 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt;) = 1.088 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; m&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, its well depth in real units was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = ε = k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T x N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ε = (1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(120 K)(6.02214 x 10&amp;lt;sup&amp;gt;23 &amp;lt;/sup&amp;gt;&#039;&#039;mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; = 0.997735 kJ mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, the reduced temperature T* = 1.5 can be calculated in real units:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = T*ε/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = 1.5(997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)/(1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(6.02214 &#039;&#039;x 10&amp;lt;sup&amp;gt;23&amp;lt;/sup&amp;gt; mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 180 K&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lattice Structure ===&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Giving atoms random starting coordinates can be problematic as this may generate two atoms close to each other in our simulation, where if the separation between them was below σ, this can cause a strong (or even infinite) repulsion pushing the atoms apart. Therefore, the atoms were initially created in a 3D simple cubic (sc) lattice.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given that the number density (N/V) of lattice points was 0.8, the lattice spacing was found to be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number density, ρ=N/V, V=N/ρ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V = 1/0.8 = 1.25&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;L&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;attice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√1.25 = 1.07722&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or a face-centred cubic (fcc) lattice with number density 1.2, its lattice spacing was calculated:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.2 = 3.33333&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√3.33333 = 1.49380&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Furthermore, a simulation sc box of width 10 was created as a control. Within this region, there were &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;4000 atoms present (4 atoms in each unit cell where there are 10x10x10 = 1000 unit cells). Following this, the mass and pair coefficient of the each type of atom were assigned as below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Definitions for each line in the command code are provided as such:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Assigning mass of value 1.0 to all type 1 atoms&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Specifying a standard 12/6 Lennard-Jones potential with no Coulomb between atom pairs with global LJ cutoff set to distance r*=3.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Setting the pairwise forcefield coefficients for the&lt;br /&gt;
symmetric I,J interaction to the same value of 1.0 for all (given by asterisk) type 1 with type 1 atom pairs&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Timestep Optimisation ===&lt;br /&gt;
The code below was written in the input script with the timestep taking a value of 0.001:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### SPECIFY TIMESTEP ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable timestep equal 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable n_steps equal floor(100/${timestep})&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep ${timestep}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### RUN SIMULATION ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run ${n_steps}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: T&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he variable command is a loop which was assigned a value that is later evaluated in the input script, where in this case timestep was equal to 0.001. This is useful because the defined value can be referenced in subsequent variables, therefore making it reusable and eliminating the need to repeatedly input the value 0.001. For instance, the defined timestep was used in the math function &amp;quot;floor&amp;quot; assigned to variable n_step and subsequently the value n_step is used in the &amp;quot;run&amp;quot; command. Hence, this coding method will be more pragmatic than just writing the script simply as:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choosing the correct timestep was crucial for the subsequent simulations which were undertaken. To determine the optimum timestep, simulations using different timesteps (0.001, 0.0025, 0.0075, 0.01 and 0.015) were tested. To illustrate that the simulation had equilibrated, the graphs of total e&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;nergy, temperature and pressure against time were plotted for the 0.001 timestep experiment:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_1.jpg|&#039;&#039;&#039;Figure 1:&#039;&#039;&#039; Total energy against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_2.jpg|&#039;&#039;&#039;Figure 2:&#039;&#039;&#039; Temperature against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_3.jpg|&#039;&#039;&#039;Figure 3:&#039;&#039;&#039; Pressure against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the plots above, the simulation did achieve equilibrium and the values of total energy, temperature and pressure had converged to a constant average (within a certain degree of error) at approximately 0.5 s into the simulation.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_4.jpg|&#039;&#039;&#039;Figure 4:&#039;&#039;&#039; Single plot of total energy against time for all five timesteps.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Among the five timesteps, 0.001 was most likely to give acceptable results. The data obtained was of high resolution, with the smallest interval between data points. The simulation was said to give the best representation of a physical reality being investigated. On the other hand, a timestep of 0.015 was the least suitable choice because the total energy does not converge. The energy initially stabilised but subsequently diverged (increased) after 20 s and thus system has not fully equilibrated. To give the best balance between resolution and speed (time taken to complete a simulation), timestep within the acceptable range of 0.001 to 0.003 were used. Any timestep above 0.003 would not properly allow for total energy to converge and gives a large gap between data points.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== LAMMPS Toolkit ===&lt;br /&gt;
The LAMMPS Molecular Dynamics Simulator is an extremely useful simulation software containing a vast array of tools that was further utilised throughout this experiment. Among them were the &amp;quot;variable&amp;quot; and &amp;quot;thermo_style&amp;quot; commands used in changing ensembles and measuring thermodynamics properties respectively, which were crucial in obtaining key data. Towards the end of the investigation, the usage of the radial distribution function (RDF), mean squared displacement (MSD) and velocity autocorrelation function (VACF) were also explored and applied into many of the simulations conducted.&lt;br /&gt;
&lt;br /&gt;
=== Visual Molecular Dynamics (VMD) ===&lt;br /&gt;
To help visualise some of the simulations, LAMMPS was also supported by the VMD 3D graphics programme that was able to read trajectory (.trj) files in order to display our simulation through multiple modes and perspectives. This software was also used to conduct further calculations such as evaluating running integrals for the RDF.&lt;br /&gt;
&lt;br /&gt;
== Results and Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== NpT Ensemble ===&lt;br /&gt;
For this section of the investigation, the simulation has been modified so that it can run under NpT conditions (called the isobaric-isothermal ensemble in statistical mechanics) to understand what changes to thermodynamic properties occur at this particular experimental condition. The data collected was used to plot an equation of state at atmospheric pressure for the case of our model fluid.&lt;br /&gt;
&lt;br /&gt;
Five values of temperature (2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;.0, 2.5, 3.0, 3.5, 4.0&amp;lt;/span&amp;gt;) and two values of pressure (3.0, 4.0) given in Lennard-Jones units were chosen based on the results of the optimisation test ran earlier. The timestep was set to 0.0025 and the input script modified accordingly for all ten (p,T) phase points before being submitted to LAMMPS.&lt;br /&gt;
&lt;br /&gt;
==== 1. Controlling Temperature ====&lt;br /&gt;
In general, temperature, T at a given time during the course of the simulation will be prone to fluctuations and will differ slightly from the intended temperature of the system, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;𝛕 (value specified in the input script). However, T can be easily controlled by multiplying each velocity term of each atom by a constant factor, γ whereby:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The kinetic energy of the system can be written as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T &#039;&#039;&#039;&#039;&#039;(Eq. 1)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;𝛕 &#039;&#039;&#039;&#039;&#039;(Eq. 2)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Dividing (Eq. 2) by (Eq. 1):&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)/( v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;) = 𝛕/T&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 𝛕/T, thus γ = √(𝛕/T)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, the value of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;γ can be determined and used to correct any deviations in T.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Sampling and Averaging ====&lt;br /&gt;
In the input script, there were lines entered as:&lt;br /&gt;
 fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
 run 100000&lt;br /&gt;
These lines were needed to measure key thermodynamics properties such as density, temperature and pressure respectively. Most importantly, the values 100, 1000 and 100000 play a vital role in directing how often these properties are averaged and how many measurements contribute to the final average. Each number is represented as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100 = Nevery&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1000 = Nrepeat&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100000 = Nfreq&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The three arguments above specify the timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a multiple of 100000. The average was over 1000 quantities, computed in the preceding portion of the simulation every 100 timesteps. Nfreq must be a multiple of Nevery and Nevery must be non-zero even if Nrepeat was 1. Also, the timesteps contributing to the average value cannot overlap, i.e. Nrepeat*Nevery cannot exceed Nfreq.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;, by referring to the log (.log) output file, the amount of time that has been simulated for this investigation was 50 s.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Equation of State ====&lt;br /&gt;
The density of the system obtained from the log files were plotted against temperature for both of pressures that were simulated, including error bars. Also included in the graphs was a curve for the expected densities as predicted by the ideal gas law, pV =NkT. &amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_5.jpg|&#039;&#039;&#039;Figure 5:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 3.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_6.jpg|&#039;&#039;&#039;Figure 6:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 4.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;It was found that the&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulated density was always lower than the values predicted by the ideal gas law for a given pressure. This was because for an ideal gas, there was no interactions between the atoms whereas the atoms in our simulation had been modeled using a forcefield of the Lennard-Jones potential. Moreover, the discrepancy between the observed and predicted values of density increased with pressure, especially at the lower temperatures where the deviation was larger.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== NVT Ensemble ===&lt;br /&gt;
&lt;br /&gt;
==== 1. Heat Capacity ====&lt;br /&gt;
In a particular system where temperature was fixed, thermodynamic properties such as total energy were likely to fluctuate from its constant average and these fluctuations gives rise to the heat capacity, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv&amp;lt;/span&amp;gt; where its value can be calculated using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv = δE/δT = N&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.Var(E)/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, it was important to note that the simulation carried out here was altered to NVT conditions (canonical ensemble). As with the previous simulation, ten phase points were required, but this time using five values of temperature (2.0, 2.2, 2.4, 2.6, 2.8) and two values of density (0.2, 0.8). A copy of the modified input script for NVT is attached below to highlight the changes made:&lt;br /&gt;
&lt;br /&gt;
https://goo.gl/5GnrfV&lt;br /&gt;
&lt;br /&gt;
==== 2. Results ====&lt;br /&gt;
Once data was collected from the log files (but without standard errors), the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv/V against average temperature was plotted on the same axes, where V was the volume of the simulation cell.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_7.jpg|&#039;&#039;&#039;Figure 7:&#039;&#039;&#039; A plot of heat capacity over volume as a function of average temperature&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the results obtained, this was not the trend that was expected. The data supposed to show a constant heat capacity for both densities, but instead heat capacity decreases when temperature was increased. Comparing both sets of data, for a system having a higher density, its heat capacity will in turn be raised.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Radial Distribution Function (RDF) ===&lt;br /&gt;
The radial pair distribution function or g(r) is &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;defined as the probability of locating the nearest neighbouring atom at a distance r from a reference atom. The visualising software VMD was used to calculate the RDF of three simulations under different states, that were the solid, liquid and vapour phases.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 1. Phase Transitions ====&lt;br /&gt;
In order to set up the various states, the values of d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ensity and temperature of the simulation were modified appropriately based on the phase transitions of the Lennard-Jones system. The following were the set of parameters determined for each state:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.002 was used to run all simulations in LAMMPS.&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_solid.JPG|&#039;&#039;&#039;Figure 8(a):&#039;&#039;&#039; View of solid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_liquid.JPG|&#039;&#039;&#039;Figure 8(b):&#039;&#039;&#039; View of liquid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_vapour.JPG|&#039;&#039;&#039;Figure 8(c):&#039;&#039;&#039; View of gas phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Qualitative Analysis of RDF ====&lt;br /&gt;
When each simulation was completed, its .trj file was inputted into VMD where the value of g(r) and &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ g(r) dr (or running integral) were evaluated. The graph of RDF against reduced distance were plotted on the same axes for all three states.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_8.jpg|&#039;&#039;&#039;Figure 9:&#039;&#039;&#039; Combined g(r) against reduced distance plot for the solid, liquid and vapour systems&lt;br /&gt;
&amp;lt;/gallery&amp;gt;In the s&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;olid RDF, the function showed a regular pattern of peaks with almost the similar intervals over a long range of distance. The peaks were discrete at approximately σ, √2 σ, √3 σ, and so on. There was a very high chance of finding an atom at the position of these peaks whilst the probability of locating an atom between the peaks was very low. This illustrated that solids had a uniform packing structure and had very little defect within the lattice. Moreover, the first three peaks corresponded to the first, second and third coordination shells.&lt;br /&gt;
&lt;br /&gt;
Thus the lattice spacing can be determined:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.4 = 2.85714&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√2.85714 = 1.41898&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;To calculate the coordination number, g(r) was integrated in spherical coordinates to the first minimum of the RDF. Hence, the coordination numbers for the solid were: first peak (12), second peak (4), and third peak (8).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the l&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iquid RDF, the first and sharpest peak occured close to σ and the subsequent peaks appeared at about intervals of σ, but smaller than the first peak. At longer distances of r, the value of g(r) remained unchanged at 1, showing that liquid particles were independent of one another. Thus, liquids were less closely packed compared to solids and had the ability to move dynamically, hence they do not possess a fixed structure. They were able to form multiple coordination spheres, but in most cases, there was only one coordination sphere present at a given time.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the v&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;apour RDF, the function only showed one obvious peak at about σ which then plateaued off at a value of g(r) = 1, the normal bulk density of the system. The regions that experienced the greatest intermolecular forces when g(r) &amp;gt; 1 were for 1 &amp;lt; σ &amp;lt; 2.5. From this result, it was concluded that gases tend to move around randomly in a sporadic motion (Brownian motion) and at most, they only have a single short-lived coordination sphere.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Diffusion Coefficient ===&lt;br /&gt;
In this experiment, the way in which atoms move around in the system (through translational motion) was of particular interest. This form of motion was governed by the diffusion coefficient, D or mass diffusivity, which can be measured using two main methods detailed below: &lt;br /&gt;
&lt;br /&gt;
==== 1. Mean Squared Displacement (MSD) ====&lt;br /&gt;
Since D was closely related to MSD, a simulation was ran (at specific density and temperature) for all three phases with an additional input command to calculate MSD and VACF (mentioned in next section). The set of parameters used to obtain each physical phase were identical those implemented during the RDF investigation:&lt;br /&gt;
&lt;br /&gt;
Timestep = 0.002&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once data was obtained from the &amp;quot;optional output-2&amp;quot; files, the total MSD (resultant MSD from individual Cartesian directions (x,y,z)) was plotted against timestep:&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_9.jpg|&#039;&#039;&#039;Figure 10(a):&#039;&#039;&#039; Total MSD as a function of timestep for the solid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_10.jpg|&#039;&#039;&#039;Figure 10(b):&#039;&#039;&#039; Total MSD as a function of timestep for the liquid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_11.jpg|&#039;&#039;&#039;Figure 10(c):&#039;&#039;&#039; Total MSD as a function of timestep for the gas phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The relationship between total MSD and timestep obtained for the three phases were as expected. Total MSD for solids initially fluctuated before becoming constant whereas for the liquid phase, its values increased linearly but gradually, and as for the vapour phase, total MSD increased linearly and rapidly.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since D = 1/6 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;δ&amp;lt;r&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;(t)&amp;gt; / δt, &amp;lt;/span&amp;gt;then &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/6 (gradient of graph of MSD vs timestep)&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus using the gradient of the best-fit line, for:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/6 (2.3514 x 10&amp;lt;sup&amp;gt;-8&amp;lt;/sup&amp;gt;) = 3.919 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/6 (1.3140 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt;) = 2.190 x 10&amp;lt;sup&amp;gt;-4&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/6 (7.2313 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt;) = 1.205 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this, the d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iffusion coefficient was shown to have increased going from solids to gases. Moreover, it was noted that the diffusion coefficient for the solid phase was so small, it was negligible (zero).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. MSD: One Million Atoms ====&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_12.jpg|&#039;&#039;&#039;Figure 11(a):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_13.jpg|&#039;&#039;&#039;Figure 11(b):&#039;&#039;&#039; Total MSD plotted against timestep for the liquid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_14.jpg|&#039;&#039;&#039;Figure 11(c):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;For the same&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulation repeated using one million atoms, values of total MSD obtained were higher compared to that with fewer atoms (except for the solid phase where the total MSD was lowered). Moreover, total MSD for the liquid and vapour phases increased more linearly when using more atoms (and this was most evident for the vapour phase).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Extension: Velocity Autocorrelation Function (VACF) ====&lt;br /&gt;
The other alternative way of calculating D was by using the velocity autocorrelation function. The same input script was used here (as in the previous MSD section) and the simulation was ran for the solid, liquid and vapour phases.&lt;br /&gt;
&lt;br /&gt;
In relation to the theoretical concepts covered using the 1D harmonic oscillator, the &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;normalised velocity autocorrelation function C(τ) was evaluated for this harmonic system:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Given that C(τ) = &amp;lt; v(t).v(t+τ) &amp;gt; and x(t) = cos(ωt+ϕ),&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;VACF of a 1D harmonic oscillator, C(τ) = ∫ v(t).v(t+τ) dt&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, the normalised VACF, C(τ) = ∫ v(t).v(t+τ) dt / ∫ v(t)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; dt&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence to compared these systems, the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;C(τ) with ω=1/(2п) along with the VACFs from the solid and liquid simulations was plotted along the same axes, from x = 0 to 500.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_15.jpg|&#039;&#039;&#039;Figure 12:&#039;&#039;&#039; C(τ) with ω=1/(2п) and the VACFs of the solid and liquid phases as a function of timestep (x = 0 to 500)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 4. VACF: One Million Atoms ====&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Fill&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_15.jpg&amp;diff=654555</id>
		<title>File:Dw3015 15.jpg</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_15.jpg&amp;diff=654555"/>
		<updated>2017-12-20T16:24:08Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654554</id>
		<title>Rep:Mod:dw3015 y3c liqsim</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654554"/>
		<updated>2017-12-20T16:06:13Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: /* 2. MSD: One Mllion Atoms */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Year 3 Computational Labs=&lt;br /&gt;
&lt;br /&gt;
= Molecular Dynamics Simulations of Simple Liquids =&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Aims and Objectives ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
In order for the simulation to replicate a real system as accurately, a few criterion had been defined, namely the simulation model, initial test parameters, forcefield, final parameters and tools used.&lt;br /&gt;
&lt;br /&gt;
=== Velocity-Verlet Algorithm and Timestep ===&lt;br /&gt;
Using approximations, we assumed that atoms will behave classically and therefore the velocity-Verlet algorithm was applied into the simulation, where we&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; have defined the starting positions of the atoms, x&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0) and their velocities at the same time, v&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0). As an example, this algorithm was used in a simple harmonic oscillator: &amp;lt;/span&amp;gt;https://goo.gl/As44o7&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.1 was initially tested. Subsequently, the value of &amp;quot;ERROR&amp;quot; as function of time was investigated and was found that this relationship was given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;y = 0.000422x + 0.000073&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;R-squared value = 0.999977&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The function above remained constant although the value of timestep was varied. It was found that w&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;hen timestep was increased, this will add more cycles to the &amp;quot;ENERGY&amp;quot; and &amp;quot;ERROR&amp;quot; graphs but period remained constant. Amplitude of &amp;quot;ERROR&amp;quot; graph will increase over time leading to bigger magnitude in error. However, the function of maxima in the &amp;quot;ERROR&amp;quot; graph was unchanged. The &amp;quot;ENERGY&amp;quot; graph will also have higher amplitude, hence bigger change in total energy. Timestep must therefore not exceed 0.1990665 for change in total energy to remain below 1%.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The prove of concept is shown here: https://goo.gl/zC9YU9&lt;br /&gt;
&lt;br /&gt;
Moreover, the t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;otal energy of a physical system was measured and expected to remain constant, indicating that the system has completed equilibration and energy has been completely redistributed among the particles in a given system (through collisions) upon the start of the simulation.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Model ===&lt;br /&gt;
A simple particle in a box model was used for all of the simulations. Using LAMMPS, a cubic box of a given length containing a given amount of atoms of mass 1.0 was created. This will form the boundary for the simulations carried out.&lt;br /&gt;
&lt;br /&gt;
For atoms that move beyond this boundary, the periodic boundary conditions was able to correct the atoms&#039; coordinates by allowing its replica to enter from the opposite face.&lt;br /&gt;
&lt;br /&gt;
For instance, a&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;n atom at position (0.5, 0.5, 0.5) in a cubic simulation box which runs from (0, 0, 0) to (1.0, 1.0, 1.0), moving along a vector (0.7, 0.6, 0.2) in a single timestep, its final position is at (1.2, 1.1, 0.7). But after applying periodic boundary conditions, the atom position was corrected to (0.2, 0.1, 0.7).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To give an idea of the number of molecules simulated, the number of moles of 1 ml of water under standard conditions were estimated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of 1 ml water = ρV = 1 g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;n of 1ml water = m/M&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 0.05550843506 mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number of water molecules = nN&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 3.342796 x 10&amp;lt;sup&amp;gt;22&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a large and unsuitable number to simulate. A value of 10000 would be more reasonable, thus the volume of 10000 water molecules was calculated to give a better perspective:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For 10000 water molecules, n of water = n.o.m./N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 1.660539&lt;br /&gt;
x 10&amp;lt;sup&amp;gt;-20&amp;lt;/sup&amp;gt; mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of water = nM&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V of water = m/ρ = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; ml&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Forcefield ===&lt;br /&gt;
The Lennard-Jones potential, which fits well into the physic of the simulation, was utilised knowing that the force acting on the atoms depended on the potential they experienced. At longer distances however, this interaction will be so small that it can be negligible, so a cutoff point of 3.0&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ was put in place.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Lennard-Jones Potential, U = 4ε [(σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To understand the relationship better, the separation &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; at which the potential of zero was evaluated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;When U=0, (σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Let (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = y, thus y&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;-y = 0, y(y-1) = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore, y=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0, undefined; (y-1)=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;= 1, hence R=r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;=σ (F = repulsive force)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along with the separation at equilibrium and hence the well depth &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ϕ(r&amp;lt;sub&amp;gt;eq),&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;At equilibrium, F=0 (minimum), dU/dR = -48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&lt;br /&gt;
+ 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For turning point, dU/dR = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;),&lt;br /&gt;
(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)/(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;, R&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;=2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;,&lt;br /&gt;
hence R=(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)σ, R=r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;=1.12246σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore well depth, ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;)&lt;br /&gt;
- (σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;)]&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(1/4)-(1/2)], ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = -ε (minimum)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Moreover, the values of integrals of 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, 2.5 σ and 3 σ to infinity were calculated respectively:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;∫ϕ(r)dr = -1/3εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;), and when σ=ε=1,&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.020671&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2.5 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0068127&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0027416&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
The quantities used in the simulation were treated and divided with a scaling factor, such as &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ or &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ε, to ensure that our results were more manageable. For example, for argon with Lennard-Jones (LJ) parameters σ = 0.34nm and ε/&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; = 120K, its LJ cutoff r* = 3.2 in real units was:&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r=r*σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r = 3.2(0.34 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt;) = 1.088 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; m&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, its well depth in real units was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = ε = k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T x N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ε = (1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(120 K)(6.02214 x 10&amp;lt;sup&amp;gt;23 &amp;lt;/sup&amp;gt;&#039;&#039;mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; = 0.997735 kJ mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, the reduced temperature T* = 1.5 can be calculated in real units:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = T*ε/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = 1.5(997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)/(1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(6.02214 &#039;&#039;x 10&amp;lt;sup&amp;gt;23&amp;lt;/sup&amp;gt; mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 180 K&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lattice Structure ===&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Giving atoms random starting coordinates can be problematic as this may generate two atoms close to each other in our simulation, where if the separation between them was below σ, this can cause a strong (or even infinite) repulsion pushing the atoms apart. Therefore, the atoms were initially created in a 3D simple cubic (sc) lattice.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given that the number density (N/V) of lattice points was 0.8, the lattice spacing was found to be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number density, ρ=N/V, V=N/ρ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V = 1/0.8 = 1.25&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;L&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;attice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√1.25 = 1.07722&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or a face-centred cubic (fcc) lattice with number density 1.2, its lattice spacing was calculated:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.2 = 3.33333&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√3.33333 = 1.49380&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Furthermore, a simulation sc box of width 10 was created as a control. Within this region, there were &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;4000 atoms present (4 atoms in each unit cell where there are 10x10x10 = 1000 unit cells). Following this, the mass and pair coefficient of the each type of atom were assigned as below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Definitions for each line in the command code are provided as such:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Assigning mass of value 1.0 to all type 1 atoms&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Specifying a standard 12/6 Lennard-Jones potential with no Coulomb between atom pairs with global LJ cutoff set to distance r*=3.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Setting the pairwise forcefield coefficients for the&lt;br /&gt;
symmetric I,J interaction to the same value of 1.0 for all (given by asterisk) type 1 with type 1 atom pairs&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Timestep Optimisation ===&lt;br /&gt;
The code below was written in the input script with the timestep taking a value of 0.001:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### SPECIFY TIMESTEP ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable timestep equal 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable n_steps equal floor(100/${timestep})&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep ${timestep}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### RUN SIMULATION ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run ${n_steps}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: T&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he variable command is a loop which was assigned a value that is later evaluated in the input script, where in this case timestep was equal to 0.001. This is useful because the defined value can be referenced in subsequent variables, therefore making it reusable and eliminating the need to repeatedly input the value 0.001. For instance, the defined timestep was used in the math function &amp;quot;floor&amp;quot; assigned to variable n_step and subsequently the value n_step is used in the &amp;quot;run&amp;quot; command. Hence, this coding method will be more pragmatic than just writing the script simply as:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choosing the correct timestep was crucial for the subsequent simulations which were undertaken. To determine the optimum timestep, simulations using different timesteps (0.001, 0.0025, 0.0075, 0.01 and 0.015) were tested. To illustrate that the simulation had equilibrated, the graphs of total e&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;nergy, temperature and pressure against time were plotted for the 0.001 timestep experiment:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_1.jpg|&#039;&#039;&#039;Figure 1:&#039;&#039;&#039; Total energy against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_2.jpg|&#039;&#039;&#039;Figure 2:&#039;&#039;&#039; Temperature against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_3.jpg|&#039;&#039;&#039;Figure 3:&#039;&#039;&#039; Pressure against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the plots above, the simulation did achieve equilibrium and the values of total energy, temperature and pressure had converged to a constant average (within a certain degree of error) at approximately 0.5 s into the simulation.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_4.jpg|&#039;&#039;&#039;Figure 4:&#039;&#039;&#039; Single plot of total energy against time for all five timesteps.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Among the five timesteps, 0.001 was most likely to give acceptable results. The data obtained was of high resolution, with the smallest interval between data points. The simulation was said to give the best representation of a physical reality being investigated. On the other hand, a timestep of 0.015 was the least suitable choice because the total energy does not converge. The energy initially stabilised but subsequently diverged (increased) after 20 s and thus system has not fully equilibrated. To give the best balance between resolution and speed (time taken to complete a simulation), timestep within the acceptable range of 0.001 to 0.003 were used. Any timestep above 0.003 would not properly allow for total energy to converge and gives a large gap between data points.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== LAMMPS Toolkit ===&lt;br /&gt;
The LAMMPS Molecular Dynamics Simulator is an extremely useful simulation software containing a vast array of tools that was further utilised throughout this experiment. Among them were the &amp;quot;variable&amp;quot; and &amp;quot;thermo_style&amp;quot; commands used in changing ensembles and measuring thermodynamics properties respectively, which were crucial in obtaining key data. Towards the end of the investigation, the usage of the radial distribution function (RDF), mean squared displacement (MSD) and velocity autocorrelation function (VACF) were also explored and applied into many of the simulations conducted.&lt;br /&gt;
&lt;br /&gt;
=== Visual Molecular Dynamics (VMD) ===&lt;br /&gt;
To help visualise some of the simulations, LAMMPS was also supported by the VMD 3D graphics programme that was able to read trajectory (.trj) files in order to display our simulation through multiple modes and perspectives. This software was also used to conduct further calculations such as evaluating running integrals for the RDF.&lt;br /&gt;
&lt;br /&gt;
== Results and Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== NpT Ensemble ===&lt;br /&gt;
For this section of the investigation, the simulation has been modified so that it can run under NpT conditions (called the isobaric-isothermal ensemble in statistical mechanics) to understand what changes to thermodynamic properties occur at this particular experimental condition. The data collected was used to plot an equation of state at atmospheric pressure for the case of our model fluid.&lt;br /&gt;
&lt;br /&gt;
Five values of temperature (2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;.0, 2.5, 3.0, 3.5, 4.0&amp;lt;/span&amp;gt;) and two values of pressure (3.0, 4.0) given in Lennard-Jones units were chosen based on the results of the optimisation test ran earlier. The timestep was set to 0.0025 and the input script modified accordingly for all ten (p,T) phase points before being submitted to LAMMPS.&lt;br /&gt;
&lt;br /&gt;
==== 1. Controlling Temperature ====&lt;br /&gt;
In general, temperature, T at a given time during the course of the simulation will be prone to fluctuations and will differ slightly from the intended temperature of the system, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;𝛕 (value specified in the input script). However, T can be easily controlled by multiplying each velocity term of each atom by a constant factor, γ whereby:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The kinetic energy of the system can be written as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T &#039;&#039;&#039;&#039;&#039;(Eq. 1)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;𝛕 &#039;&#039;&#039;&#039;&#039;(Eq. 2)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Dividing (Eq. 2) by (Eq. 1):&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)/( v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;) = 𝛕/T&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 𝛕/T, thus γ = √(𝛕/T)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, the value of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;γ can be determined and used to correct any deviations in T.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Sampling and Averaging ====&lt;br /&gt;
In the input script, there were lines entered as:&lt;br /&gt;
 fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
 run 100000&lt;br /&gt;
These lines were needed to measure key thermodynamics properties such as density, temperature and pressure respectively. Most importantly, the values 100, 1000 and 100000 play a vital role in directing how often these properties are averaged and how many measurements contribute to the final average. Each number is represented as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100 = Nevery&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1000 = Nrepeat&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100000 = Nfreq&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The three arguments above specify the timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a multiple of 100000. The average was over 1000 quantities, computed in the preceding portion of the simulation every 100 timesteps. Nfreq must be a multiple of Nevery and Nevery must be non-zero even if Nrepeat was 1. Also, the timesteps contributing to the average value cannot overlap, i.e. Nrepeat*Nevery cannot exceed Nfreq.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;, by referring to the log (.log) output file, the amount of time that has been simulated for this investigation was 50 s.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Equation of State ====&lt;br /&gt;
The density of the system obtained from the log files were plotted against temperature for both of pressures that were simulated, including error bars. Also included in the graphs was a curve for the expected densities as predicted by the ideal gas law, pV =NkT. &amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_5.jpg|&#039;&#039;&#039;Figure 5:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 3.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_6.jpg|&#039;&#039;&#039;Figure 6:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 4.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;It was found that the&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulated density was always lower than the values predicted by the ideal gas law for a given pressure. This was because for an ideal gas, there was no interactions between the atoms whereas the atoms in our simulation had been modeled using a forcefield of the Lennard-Jones potential. Moreover, the discrepancy between the observed and predicted values of density increased with pressure, especially at the lower temperatures where the deviation was larger.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== NVT Ensemble ===&lt;br /&gt;
&lt;br /&gt;
==== 1. Heat Capacity ====&lt;br /&gt;
In a particular system where temperature was fixed, thermodynamic properties such as total energy were likely to fluctuate from its constant average and these fluctuations gives rise to the heat capacity, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv&amp;lt;/span&amp;gt; where its value can be calculated using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv = δE/δT = N&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.Var(E)/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, it was important to note that the simulation carried out here was altered to NVT conditions (canonical ensemble). As with the previous simulation, ten phase points were required, but this time using five values of temperature (2.0, 2.2, 2.4, 2.6, 2.8) and two values of density (0.2, 0.8). A copy of the modified input script for NVT is attached below to highlight the changes made:&lt;br /&gt;
&lt;br /&gt;
https://goo.gl/5GnrfV&lt;br /&gt;
&lt;br /&gt;
==== 2. Results ====&lt;br /&gt;
Once data was collected from the log files (but without standard errors), the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv/V against average temperature was plotted on the same axes, where V was the volume of the simulation cell.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_7.jpg|&#039;&#039;&#039;Figure 7:&#039;&#039;&#039; A plot of heat capacity over volume as a function of average temperature&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the results obtained, this was not the trend that was expected. The data supposed to show a constant heat capacity for both densities, but instead heat capacity decreases when temperature was increased. Comparing both sets of data, for a system having a higher density, its heat capacity will in turn be raised.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Radial Distribution Function (RDF) ===&lt;br /&gt;
The radial pair distribution function or g(r) is &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;defined as the probability of locating the nearest neighbouring atom at a distance r from a reference atom. The visualising software VMD was used to calculate the RDF of three simulations under different states, that were the solid, liquid and vapour phases.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 1. Phase Transitions ====&lt;br /&gt;
In order to set up the various states, the values of d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ensity and temperature of the simulation were modified appropriately based on the phase transitions of the Lennard-Jones system. The following were the set of parameters determined for each state:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.002 was used to run all simulations in LAMMPS.&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_solid.JPG|&#039;&#039;&#039;Figure 8(a):&#039;&#039;&#039; View of solid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_liquid.JPG|&#039;&#039;&#039;Figure 8(b):&#039;&#039;&#039; View of liquid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_vapour.JPG|&#039;&#039;&#039;Figure 8(c):&#039;&#039;&#039; View of gas phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Qualitative Analysis of RDF ====&lt;br /&gt;
When each simulation was completed, its .trj file was inputted into VMD where the value of g(r) and &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ g(r) dr (or running integral) were evaluated. The graph of RDF against reduced distance were plotted on the same axes for all three states.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_8.jpg|&#039;&#039;&#039;Figure 9:&#039;&#039;&#039; Combined g(r) against reduced distance plot for the solid, liquid and vapour systems&lt;br /&gt;
&amp;lt;/gallery&amp;gt;In the s&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;olid RDF, the function showed a regular pattern of peaks with almost the similar intervals over a long range of distance. The peaks were discrete at approximately σ, √2 σ, √3 σ, and so on. There was a very high chance of finding an atom at the position of these peaks whilst the probability of locating an atom between the peaks was very low. This illustrated that solids had a uniform packing structure and had very little defect within the lattice. Moreover, the first three peaks corresponded to the first, second and third coordination shells.&lt;br /&gt;
&lt;br /&gt;
Thus the lattice spacing can be determined:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.4 = 2.85714&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√2.85714 = 1.41898&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;To calculate the coordination number, g(r) was integrated in spherical coordinates to the first minimum of the RDF. Hence, the coordination numbers for the solid were: first peak (12), second peak (4), and third peak (8).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the l&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iquid RDF, the first and sharpest peak occured close to σ and the subsequent peaks appeared at about intervals of σ, but smaller than the first peak. At longer distances of r, the value of g(r) remained unchanged at 1, showing that liquid particles were independent of one another. Thus, liquids were less closely packed compared to solids and had the ability to move dynamically, hence they do not possess a fixed structure. They were able to form multiple coordination spheres, but in most cases, there was only one coordination sphere present at a given time.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the v&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;apour RDF, the function only showed one obvious peak at about σ which then plateaued off at a value of g(r) = 1, the normal bulk density of the system. The regions that experienced the greatest intermolecular forces when g(r) &amp;gt; 1 were for 1 &amp;lt; σ &amp;lt; 2.5. From this result, it was concluded that gases tend to move around randomly in a sporadic motion (Brownian motion) and at most, they only have a single short-lived coordination sphere.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Diffusion Coefficient ===&lt;br /&gt;
In this experiment, the way in which atoms move around in the system (through translational motion) was of particular interest. This form of motion was governed by the diffusion coefficient, D or mass diffusivity, which can be measured using two main methods detailed below: &lt;br /&gt;
&lt;br /&gt;
==== 1. Mean Squared Displacement (MSD) ====&lt;br /&gt;
Since D was closely related to MSD, a simulation was ran (at specific density and temperature) for all three phases with an additional input command to calculate MSD and VACF (mentioned in next section). The set of parameters used to obtain each physical phase were identical those implemented during the RDF investigation:&lt;br /&gt;
&lt;br /&gt;
Timestep = 0.002&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once data was obtained from the &amp;quot;optional output-2&amp;quot; files, the total MSD (resultant MSD from individual Cartesian directions (x,y,z)) was plotted against timestep:&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_9.jpg|&#039;&#039;&#039;Figure 10(a):&#039;&#039;&#039; Total MSD as a function of timestep for the solid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_10.jpg|&#039;&#039;&#039;Figure 10(b):&#039;&#039;&#039; Total MSD as a function of timestep for the liquid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_11.jpg|&#039;&#039;&#039;Figure 10(c):&#039;&#039;&#039; Total MSD as a function of timestep for the gas phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The relationship between total MSD and timestep obtained for the three phases were as expected. Total MSD for solids initially fluctuated before becoming constant whereas for the liquid phase, its values increased linearly but gradually, and as for the vapour phase, total MSD increased linearly and rapidly.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since D = 1/6 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;δ&amp;lt;r&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;(t)&amp;gt; / δt, &amp;lt;/span&amp;gt;then &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/6 (gradient of graph of MSD vs timestep)&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus using the gradient of the best-fit line, for:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/6 (2.3514 x 10&amp;lt;sup&amp;gt;-8&amp;lt;/sup&amp;gt;) = 3.919 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/6 (1.3140 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt;) = 2.190 x 10&amp;lt;sup&amp;gt;-4&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/6 (7.2313 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt;) = 1.205 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this, the d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iffusion coefficient was shown to have increased going from solids to gases. Moreover, it was noted that the diffusion coefficient for the solid phase was so small, it was negligible (zero).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. MSD: One Million Atoms ====&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_12.jpg|&#039;&#039;&#039;Figure 11(a):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_13.jpg|&#039;&#039;&#039;Figure 11(b):&#039;&#039;&#039; Total MSD plotted against timestep for the liquid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_14.jpg|&#039;&#039;&#039;Figure 11(c):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;For the same&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulation repeated using one million atoms, values of total MSD obtained were higher compared to that with fewer atoms (except for the solid phase where the total MSD was lowered). Moreover, total MSD for the liquid and vapour phases increased more linearly when using more atoms (and this was most evident for the vapour phase).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Extension: Velocity Autocorrelation Function (VACF) ====&lt;br /&gt;
&lt;br /&gt;
==== 4. VACF: One Million Atoms ====&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Fill&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654553</id>
		<title>Rep:Mod:dw3015 y3c liqsim</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654553"/>
		<updated>2017-12-20T16:05:02Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: /* Aims and Objectives */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Year 3 Computational Labs=&lt;br /&gt;
&lt;br /&gt;
= Molecular Dynamics Simulations of Simple Liquids =&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Aims and Objectives ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
In order for the simulation to replicate a real system as accurately, a few criterion had been defined, namely the simulation model, initial test parameters, forcefield, final parameters and tools used.&lt;br /&gt;
&lt;br /&gt;
=== Velocity-Verlet Algorithm and Timestep ===&lt;br /&gt;
Using approximations, we assumed that atoms will behave classically and therefore the velocity-Verlet algorithm was applied into the simulation, where we&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; have defined the starting positions of the atoms, x&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0) and their velocities at the same time, v&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0). As an example, this algorithm was used in a simple harmonic oscillator: &amp;lt;/span&amp;gt;https://goo.gl/As44o7&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.1 was initially tested. Subsequently, the value of &amp;quot;ERROR&amp;quot; as function of time was investigated and was found that this relationship was given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;y = 0.000422x + 0.000073&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;R-squared value = 0.999977&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The function above remained constant although the value of timestep was varied. It was found that w&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;hen timestep was increased, this will add more cycles to the &amp;quot;ENERGY&amp;quot; and &amp;quot;ERROR&amp;quot; graphs but period remained constant. Amplitude of &amp;quot;ERROR&amp;quot; graph will increase over time leading to bigger magnitude in error. However, the function of maxima in the &amp;quot;ERROR&amp;quot; graph was unchanged. The &amp;quot;ENERGY&amp;quot; graph will also have higher amplitude, hence bigger change in total energy. Timestep must therefore not exceed 0.1990665 for change in total energy to remain below 1%.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The prove of concept is shown here: https://goo.gl/zC9YU9&lt;br /&gt;
&lt;br /&gt;
Moreover, the t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;otal energy of a physical system was measured and expected to remain constant, indicating that the system has completed equilibration and energy has been completely redistributed among the particles in a given system (through collisions) upon the start of the simulation.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Model ===&lt;br /&gt;
A simple particle in a box model was used for all of the simulations. Using LAMMPS, a cubic box of a given length containing a given amount of atoms of mass 1.0 was created. This will form the boundary for the simulations carried out.&lt;br /&gt;
&lt;br /&gt;
For atoms that move beyond this boundary, the periodic boundary conditions was able to correct the atoms&#039; coordinates by allowing its replica to enter from the opposite face.&lt;br /&gt;
&lt;br /&gt;
For instance, a&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;n atom at position (0.5, 0.5, 0.5) in a cubic simulation box which runs from (0, 0, 0) to (1.0, 1.0, 1.0), moving along a vector (0.7, 0.6, 0.2) in a single timestep, its final position is at (1.2, 1.1, 0.7). But after applying periodic boundary conditions, the atom position was corrected to (0.2, 0.1, 0.7).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To give an idea of the number of molecules simulated, the number of moles of 1 ml of water under standard conditions were estimated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of 1 ml water = ρV = 1 g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;n of 1ml water = m/M&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 0.05550843506 mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number of water molecules = nN&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 3.342796 x 10&amp;lt;sup&amp;gt;22&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a large and unsuitable number to simulate. A value of 10000 would be more reasonable, thus the volume of 10000 water molecules was calculated to give a better perspective:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For 10000 water molecules, n of water = n.o.m./N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 1.660539&lt;br /&gt;
x 10&amp;lt;sup&amp;gt;-20&amp;lt;/sup&amp;gt; mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of water = nM&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V of water = m/ρ = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; ml&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Forcefield ===&lt;br /&gt;
The Lennard-Jones potential, which fits well into the physic of the simulation, was utilised knowing that the force acting on the atoms depended on the potential they experienced. At longer distances however, this interaction will be so small that it can be negligible, so a cutoff point of 3.0&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ was put in place.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Lennard-Jones Potential, U = 4ε [(σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To understand the relationship better, the separation &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; at which the potential of zero was evaluated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;When U=0, (σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Let (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = y, thus y&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;-y = 0, y(y-1) = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore, y=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0, undefined; (y-1)=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;= 1, hence R=r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;=σ (F = repulsive force)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along with the separation at equilibrium and hence the well depth &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ϕ(r&amp;lt;sub&amp;gt;eq),&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;At equilibrium, F=0 (minimum), dU/dR = -48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&lt;br /&gt;
+ 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For turning point, dU/dR = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;),&lt;br /&gt;
(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)/(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;, R&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;=2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;,&lt;br /&gt;
hence R=(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)σ, R=r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;=1.12246σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore well depth, ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;)&lt;br /&gt;
- (σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;)]&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(1/4)-(1/2)], ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = -ε (minimum)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Moreover, the values of integrals of 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, 2.5 σ and 3 σ to infinity were calculated respectively:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;∫ϕ(r)dr = -1/3εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;), and when σ=ε=1,&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.020671&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2.5 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0068127&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0027416&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
The quantities used in the simulation were treated and divided with a scaling factor, such as &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ or &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ε, to ensure that our results were more manageable. For example, for argon with Lennard-Jones (LJ) parameters σ = 0.34nm and ε/&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; = 120K, its LJ cutoff r* = 3.2 in real units was:&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r=r*σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r = 3.2(0.34 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt;) = 1.088 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; m&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, its well depth in real units was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = ε = k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T x N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ε = (1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(120 K)(6.02214 x 10&amp;lt;sup&amp;gt;23 &amp;lt;/sup&amp;gt;&#039;&#039;mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; = 0.997735 kJ mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, the reduced temperature T* = 1.5 can be calculated in real units:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = T*ε/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = 1.5(997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)/(1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(6.02214 &#039;&#039;x 10&amp;lt;sup&amp;gt;23&amp;lt;/sup&amp;gt; mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 180 K&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lattice Structure ===&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Giving atoms random starting coordinates can be problematic as this may generate two atoms close to each other in our simulation, where if the separation between them was below σ, this can cause a strong (or even infinite) repulsion pushing the atoms apart. Therefore, the atoms were initially created in a 3D simple cubic (sc) lattice.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given that the number density (N/V) of lattice points was 0.8, the lattice spacing was found to be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number density, ρ=N/V, V=N/ρ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V = 1/0.8 = 1.25&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;L&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;attice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√1.25 = 1.07722&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or a face-centred cubic (fcc) lattice with number density 1.2, its lattice spacing was calculated:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.2 = 3.33333&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√3.33333 = 1.49380&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Furthermore, a simulation sc box of width 10 was created as a control. Within this region, there were &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;4000 atoms present (4 atoms in each unit cell where there are 10x10x10 = 1000 unit cells). Following this, the mass and pair coefficient of the each type of atom were assigned as below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Definitions for each line in the command code are provided as such:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Assigning mass of value 1.0 to all type 1 atoms&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Specifying a standard 12/6 Lennard-Jones potential with no Coulomb between atom pairs with global LJ cutoff set to distance r*=3.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Setting the pairwise forcefield coefficients for the&lt;br /&gt;
symmetric I,J interaction to the same value of 1.0 for all (given by asterisk) type 1 with type 1 atom pairs&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Timestep Optimisation ===&lt;br /&gt;
The code below was written in the input script with the timestep taking a value of 0.001:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### SPECIFY TIMESTEP ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable timestep equal 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable n_steps equal floor(100/${timestep})&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep ${timestep}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### RUN SIMULATION ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run ${n_steps}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: T&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he variable command is a loop which was assigned a value that is later evaluated in the input script, where in this case timestep was equal to 0.001. This is useful because the defined value can be referenced in subsequent variables, therefore making it reusable and eliminating the need to repeatedly input the value 0.001. For instance, the defined timestep was used in the math function &amp;quot;floor&amp;quot; assigned to variable n_step and subsequently the value n_step is used in the &amp;quot;run&amp;quot; command. Hence, this coding method will be more pragmatic than just writing the script simply as:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choosing the correct timestep was crucial for the subsequent simulations which were undertaken. To determine the optimum timestep, simulations using different timesteps (0.001, 0.0025, 0.0075, 0.01 and 0.015) were tested. To illustrate that the simulation had equilibrated, the graphs of total e&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;nergy, temperature and pressure against time were plotted for the 0.001 timestep experiment:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_1.jpg|&#039;&#039;&#039;Figure 1:&#039;&#039;&#039; Total energy against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_2.jpg|&#039;&#039;&#039;Figure 2:&#039;&#039;&#039; Temperature against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_3.jpg|&#039;&#039;&#039;Figure 3:&#039;&#039;&#039; Pressure against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the plots above, the simulation did achieve equilibrium and the values of total energy, temperature and pressure had converged to a constant average (within a certain degree of error) at approximately 0.5 s into the simulation.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_4.jpg|&#039;&#039;&#039;Figure 4:&#039;&#039;&#039; Single plot of total energy against time for all five timesteps.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Among the five timesteps, 0.001 was most likely to give acceptable results. The data obtained was of high resolution, with the smallest interval between data points. The simulation was said to give the best representation of a physical reality being investigated. On the other hand, a timestep of 0.015 was the least suitable choice because the total energy does not converge. The energy initially stabilised but subsequently diverged (increased) after 20 s and thus system has not fully equilibrated. To give the best balance between resolution and speed (time taken to complete a simulation), timestep within the acceptable range of 0.001 to 0.003 were used. Any timestep above 0.003 would not properly allow for total energy to converge and gives a large gap between data points.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== LAMMPS Toolkit ===&lt;br /&gt;
The LAMMPS Molecular Dynamics Simulator is an extremely useful simulation software containing a vast array of tools that was further utilised throughout this experiment. Among them were the &amp;quot;variable&amp;quot; and &amp;quot;thermo_style&amp;quot; commands used in changing ensembles and measuring thermodynamics properties respectively, which were crucial in obtaining key data. Towards the end of the investigation, the usage of the radial distribution function (RDF), mean squared displacement (MSD) and velocity autocorrelation function (VACF) were also explored and applied into many of the simulations conducted.&lt;br /&gt;
&lt;br /&gt;
=== Visual Molecular Dynamics (VMD) ===&lt;br /&gt;
To help visualise some of the simulations, LAMMPS was also supported by the VMD 3D graphics programme that was able to read trajectory (.trj) files in order to display our simulation through multiple modes and perspectives. This software was also used to conduct further calculations such as evaluating running integrals for the RDF.&lt;br /&gt;
&lt;br /&gt;
== Results and Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== NpT Ensemble ===&lt;br /&gt;
For this section of the investigation, the simulation has been modified so that it can run under NpT conditions (called the isobaric-isothermal ensemble in statistical mechanics) to understand what changes to thermodynamic properties occur at this particular experimental condition. The data collected was used to plot an equation of state at atmospheric pressure for the case of our model fluid.&lt;br /&gt;
&lt;br /&gt;
Five values of temperature (2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;.0, 2.5, 3.0, 3.5, 4.0&amp;lt;/span&amp;gt;) and two values of pressure (3.0, 4.0) given in Lennard-Jones units were chosen based on the results of the optimisation test ran earlier. The timestep was set to 0.0025 and the input script modified accordingly for all ten (p,T) phase points before being submitted to LAMMPS.&lt;br /&gt;
&lt;br /&gt;
==== 1. Controlling Temperature ====&lt;br /&gt;
In general, temperature, T at a given time during the course of the simulation will be prone to fluctuations and will differ slightly from the intended temperature of the system, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;𝛕 (value specified in the input script). However, T can be easily controlled by multiplying each velocity term of each atom by a constant factor, γ whereby:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The kinetic energy of the system can be written as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T &#039;&#039;&#039;&#039;&#039;(Eq. 1)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;𝛕 &#039;&#039;&#039;&#039;&#039;(Eq. 2)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Dividing (Eq. 2) by (Eq. 1):&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)/( v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;) = 𝛕/T&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 𝛕/T, thus γ = √(𝛕/T)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, the value of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;γ can be determined and used to correct any deviations in T.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Sampling and Averaging ====&lt;br /&gt;
In the input script, there were lines entered as:&lt;br /&gt;
 fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
 run 100000&lt;br /&gt;
These lines were needed to measure key thermodynamics properties such as density, temperature and pressure respectively. Most importantly, the values 100, 1000 and 100000 play a vital role in directing how often these properties are averaged and how many measurements contribute to the final average. Each number is represented as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100 = Nevery&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1000 = Nrepeat&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100000 = Nfreq&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The three arguments above specify the timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a multiple of 100000. The average was over 1000 quantities, computed in the preceding portion of the simulation every 100 timesteps. Nfreq must be a multiple of Nevery and Nevery must be non-zero even if Nrepeat was 1. Also, the timesteps contributing to the average value cannot overlap, i.e. Nrepeat*Nevery cannot exceed Nfreq.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;, by referring to the log (.log) output file, the amount of time that has been simulated for this investigation was 50 s.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Equation of State ====&lt;br /&gt;
The density of the system obtained from the log files were plotted against temperature for both of pressures that were simulated, including error bars. Also included in the graphs was a curve for the expected densities as predicted by the ideal gas law, pV =NkT. &amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_5.jpg|&#039;&#039;&#039;Figure 5:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 3.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_6.jpg|&#039;&#039;&#039;Figure 6:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 4.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;It was found that the&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulated density was always lower than the values predicted by the ideal gas law for a given pressure. This was because for an ideal gas, there was no interactions between the atoms whereas the atoms in our simulation had been modeled using a forcefield of the Lennard-Jones potential. Moreover, the discrepancy between the observed and predicted values of density increased with pressure, especially at the lower temperatures where the deviation was larger.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== NVT Ensemble ===&lt;br /&gt;
&lt;br /&gt;
==== 1. Heat Capacity ====&lt;br /&gt;
In a particular system where temperature was fixed, thermodynamic properties such as total energy were likely to fluctuate from its constant average and these fluctuations gives rise to the heat capacity, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv&amp;lt;/span&amp;gt; where its value can be calculated using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv = δE/δT = N&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.Var(E)/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, it was important to note that the simulation carried out here was altered to NVT conditions (canonical ensemble). As with the previous simulation, ten phase points were required, but this time using five values of temperature (2.0, 2.2, 2.4, 2.6, 2.8) and two values of density (0.2, 0.8). A copy of the modified input script for NVT is attached below to highlight the changes made:&lt;br /&gt;
&lt;br /&gt;
https://goo.gl/5GnrfV&lt;br /&gt;
&lt;br /&gt;
==== 2. Results ====&lt;br /&gt;
Once data was collected from the log files (but without standard errors), the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv/V against average temperature was plotted on the same axes, where V was the volume of the simulation cell.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_7.jpg|&#039;&#039;&#039;Figure 7:&#039;&#039;&#039; A plot of heat capacity over volume as a function of average temperature&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the results obtained, this was not the trend that was expected. The data supposed to show a constant heat capacity for both densities, but instead heat capacity decreases when temperature was increased. Comparing both sets of data, for a system having a higher density, its heat capacity will in turn be raised.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Radial Distribution Function (RDF) ===&lt;br /&gt;
The radial pair distribution function or g(r) is &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;defined as the probability of locating the nearest neighbouring atom at a distance r from a reference atom. The visualising software VMD was used to calculate the RDF of three simulations under different states, that were the solid, liquid and vapour phases.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 1. Phase Transitions ====&lt;br /&gt;
In order to set up the various states, the values of d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ensity and temperature of the simulation were modified appropriately based on the phase transitions of the Lennard-Jones system. The following were the set of parameters determined for each state:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.002 was used to run all simulations in LAMMPS.&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_solid.JPG|&#039;&#039;&#039;Figure 8(a):&#039;&#039;&#039; View of solid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_liquid.JPG|&#039;&#039;&#039;Figure 8(b):&#039;&#039;&#039; View of liquid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_vapour.JPG|&#039;&#039;&#039;Figure 8(c):&#039;&#039;&#039; View of gas phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Qualitative Analysis of RDF ====&lt;br /&gt;
When each simulation was completed, its .trj file was inputted into VMD where the value of g(r) and &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ g(r) dr (or running integral) were evaluated. The graph of RDF against reduced distance were plotted on the same axes for all three states.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_8.jpg|&#039;&#039;&#039;Figure 9:&#039;&#039;&#039; Combined g(r) against reduced distance plot for the solid, liquid and vapour systems&lt;br /&gt;
&amp;lt;/gallery&amp;gt;In the s&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;olid RDF, the function showed a regular pattern of peaks with almost the similar intervals over a long range of distance. The peaks were discrete at approximately σ, √2 σ, √3 σ, and so on. There was a very high chance of finding an atom at the position of these peaks whilst the probability of locating an atom between the peaks was very low. This illustrated that solids had a uniform packing structure and had very little defect within the lattice. Moreover, the first three peaks corresponded to the first, second and third coordination shells.&lt;br /&gt;
&lt;br /&gt;
Thus the lattice spacing can be determined:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.4 = 2.85714&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√2.85714 = 1.41898&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;To calculate the coordination number, g(r) was integrated in spherical coordinates to the first minimum of the RDF. Hence, the coordination numbers for the solid were: first peak (12), second peak (4), and third peak (8).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the l&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iquid RDF, the first and sharpest peak occured close to σ and the subsequent peaks appeared at about intervals of σ, but smaller than the first peak. At longer distances of r, the value of g(r) remained unchanged at 1, showing that liquid particles were independent of one another. Thus, liquids were less closely packed compared to solids and had the ability to move dynamically, hence they do not possess a fixed structure. They were able to form multiple coordination spheres, but in most cases, there was only one coordination sphere present at a given time.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the v&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;apour RDF, the function only showed one obvious peak at about σ which then plateaued off at a value of g(r) = 1, the normal bulk density of the system. The regions that experienced the greatest intermolecular forces when g(r) &amp;gt; 1 were for 1 &amp;lt; σ &amp;lt; 2.5. From this result, it was concluded that gases tend to move around randomly in a sporadic motion (Brownian motion) and at most, they only have a single short-lived coordination sphere.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Diffusion Coefficient ===&lt;br /&gt;
In this experiment, the way in which atoms move around in the system (through translational motion) was of particular interest. This form of motion was governed by the diffusion coefficient, D or mass diffusivity, which can be measured using two main methods detailed below: &lt;br /&gt;
&lt;br /&gt;
==== 1. Mean Squared Displacement (MSD) ====&lt;br /&gt;
Since D was closely related to MSD, a simulation was ran (at specific density and temperature) for all three phases with an additional input command to calculate MSD and VACF (mentioned in next section). The set of parameters used to obtain each physical phase were identical those implemented during the RDF investigation:&lt;br /&gt;
&lt;br /&gt;
Timestep = 0.002&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once data was obtained from the &amp;quot;optional output-2&amp;quot; files, the total MSD (resultant MSD from individual Cartesian directions (x,y,z)) was plotted against timestep:&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_9.jpg|&#039;&#039;&#039;Figure 10(a):&#039;&#039;&#039; Total MSD as a function of timestep for the solid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_10.jpg|&#039;&#039;&#039;Figure 10(b):&#039;&#039;&#039; Total MSD as a function of timestep for the liquid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_11.jpg|&#039;&#039;&#039;Figure 10(c):&#039;&#039;&#039; Total MSD as a function of timestep for the gas phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The relationship between total MSD and timestep obtained for the three phases were as expected. Total MSD for solids initially fluctuated before becoming constant whereas for the liquid phase, its values increased linearly but gradually, and as for the vapour phase, total MSD increased linearly and rapidly.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since D = 1/6 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;δ&amp;lt;r&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;(t)&amp;gt; / δt, &amp;lt;/span&amp;gt;then &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/6 (gradient of graph of MSD vs timestep)&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus using the gradient of the best-fit line, for:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/6 (2.3514 x 10&amp;lt;sup&amp;gt;-8&amp;lt;/sup&amp;gt;) = 3.919 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/6 (1.3140 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt;) = 2.190 x 10&amp;lt;sup&amp;gt;-4&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/6 (7.2313 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt;) = 1.205 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this, the d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iffusion coefficient was shown to have increased going from solids to gases. Moreover, it was noted that the diffusion coefficient for the solid phase was so small, it was negligible (zero).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. MSD: One Mllion Atoms ====&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_12.jpg|&#039;&#039;&#039;Figure 11(a):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_13.jpg|&#039;&#039;&#039;Figure 11(b):&#039;&#039;&#039; Total MSD plotted against timestep for the liquid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_14.jpg|&#039;&#039;&#039;Figure 11(c):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;For the same&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulation repeated using one million atoms, values of total MSD obtained were higher compared to that with fewer atoms (except for the solid phase where the total MSD was lowered). Moreover, total MSD for the liquid and vapour phases increased more linearly when using more atoms (and this was most evident for the vapour phase).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Extension: Velocity Autocorrelation Function (VACF) ====&lt;br /&gt;
&lt;br /&gt;
==== 4. VACF: One Million Atoms ====&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Fill&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654552</id>
		<title>Rep:Mod:dw3015 y3c liqsim</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654552"/>
		<updated>2017-12-20T15:58:05Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: /* 2. Velocity Autocorrelation Function (VACF) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Year 3 Computational Labs=&lt;br /&gt;
&lt;br /&gt;
= Molecular Dynamics Simulations of Simple Liquids =&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Aims and Objectives ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
In order for the simulation to replicate a real system as accurately, a few criterion had been defined, namely the simulation model, initial test parameters, forcefield, final parameters and tools used.&lt;br /&gt;
&lt;br /&gt;
=== Velocity-Verlet Algorithm and Timestep ===&lt;br /&gt;
Using approximations, we assumed that atoms will behave classically and therefore the velocity-Verlet algorithm was applied into the simulation, where we&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; have defined the starting positions of the atoms, x&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0) and their velocities at the same time, v&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0). As an example, this algorithm was used in a simple harmonic oscillator: &amp;lt;/span&amp;gt;https://goo.gl/As44o7&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.1 was initially tested. Subsequently, the value of &amp;quot;ERROR&amp;quot; as function of time was investigated and was found that this relationship was given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;y = 0.000422x + 0.000073&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;R-squared value = 0.999977&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The function above remained constant although the value of timestep was varied. It was found that w&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;hen timestep was increased, this will add more cycles to the &amp;quot;ENERGY&amp;quot; and &amp;quot;ERROR&amp;quot; graphs but period remained constant. Amplitude of &amp;quot;ERROR&amp;quot; graph will increase over time leading to bigger magnitude in error. However, the function of maxima in the &amp;quot;ERROR&amp;quot; graph was unchanged. The &amp;quot;ENERGY&amp;quot; graph will also have higher amplitude, hence bigger change in total energy. Timestep must therefore not exceed 0.1990665 for change in total energy to remain below 1%.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The prove of concept is shown here: https://goo.gl/zC9YU9&lt;br /&gt;
&lt;br /&gt;
Moreover, the t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;otal energy of a physical system was measured and expected to remain constant, indicating that the system has completed equilibration and energy has been completely redistributed among the particles in a given system (through collisions) upon the start of the simulation.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Model ===&lt;br /&gt;
A simple particle in a box model was used for all of the simulations. Using LAMMPS, a cubic box of a given length containing a given amount of atoms of mass 1.0 was created. This will form the boundary for the simulations carried out.&lt;br /&gt;
&lt;br /&gt;
For atoms that move beyond this boundary, the periodic boundary conditions was able to correct the atoms&#039; coordinates by allowing its replica to enter from the opposite face.&lt;br /&gt;
&lt;br /&gt;
For instance, a&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;n atom at position (0.5, 0.5, 0.5) in a cubic simulation box which runs from (0, 0, 0) to (1.0, 1.0, 1.0), moving along a vector (0.7, 0.6, 0.2) in a single timestep, its final position is at (1.2, 1.1, 0.7). But after applying periodic boundary conditions, the atom position was corrected to (0.2, 0.1, 0.7).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To give an idea of the number of molecules simulated, the number of moles of 1 ml of water under standard conditions were estimated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of 1 ml water = ρV = 1 g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;n of 1ml water = m/M&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 0.05550843506 mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number of water molecules = nN&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 3.342796 x 10&amp;lt;sup&amp;gt;22&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a large and unsuitable number to simulate. A value of 10000 would be more reasonable, thus the volume of 10000 water molecules was calculated to give a better perspective:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For 10000 water molecules, n of water = n.o.m./N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 1.660539&lt;br /&gt;
x 10&amp;lt;sup&amp;gt;-20&amp;lt;/sup&amp;gt; mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of water = nM&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V of water = m/ρ = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; ml&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Forcefield ===&lt;br /&gt;
The Lennard-Jones potential, which fits well into the physic of the simulation, was utilised knowing that the force acting on the atoms depended on the potential they experienced. At longer distances however, this interaction will be so small that it can be negligible, so a cutoff point of 3.0&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ was put in place.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Lennard-Jones Potential, U = 4ε [(σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To understand the relationship better, the separation &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; at which the potential of zero was evaluated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;When U=0, (σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Let (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = y, thus y&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;-y = 0, y(y-1) = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore, y=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0, undefined; (y-1)=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;= 1, hence R=r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;=σ (F = repulsive force)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along with the separation at equilibrium and hence the well depth &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ϕ(r&amp;lt;sub&amp;gt;eq),&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;At equilibrium, F=0 (minimum), dU/dR = -48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&lt;br /&gt;
+ 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For turning point, dU/dR = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;),&lt;br /&gt;
(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)/(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;, R&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;=2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;,&lt;br /&gt;
hence R=(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)σ, R=r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;=1.12246σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore well depth, ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;)&lt;br /&gt;
- (σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;)]&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(1/4)-(1/2)], ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = -ε (minimum)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Moreover, the values of integrals of 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, 2.5 σ and 3 σ to infinity were calculated respectively:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;∫ϕ(r)dr = -1/3εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;), and when σ=ε=1,&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.020671&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2.5 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0068127&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0027416&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
The quantities used in the simulation were treated and divided with a scaling factor, such as &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ or &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ε, to ensure that our results were more manageable. For example, for argon with Lennard-Jones (LJ) parameters σ = 0.34nm and ε/&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; = 120K, its LJ cutoff r* = 3.2 in real units was:&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r=r*σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r = 3.2(0.34 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt;) = 1.088 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; m&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, its well depth in real units was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = ε = k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T x N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ε = (1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(120 K)(6.02214 x 10&amp;lt;sup&amp;gt;23 &amp;lt;/sup&amp;gt;&#039;&#039;mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; = 0.997735 kJ mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, the reduced temperature T* = 1.5 can be calculated in real units:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = T*ε/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = 1.5(997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)/(1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(6.02214 &#039;&#039;x 10&amp;lt;sup&amp;gt;23&amp;lt;/sup&amp;gt; mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 180 K&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lattice Structure ===&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Giving atoms random starting coordinates can be problematic as this may generate two atoms close to each other in our simulation, where if the separation between them was below σ, this can cause a strong (or even infinite) repulsion pushing the atoms apart. Therefore, the atoms were initially created in a 3D simple cubic (sc) lattice.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given that the number density (N/V) of lattice points was 0.8, the lattice spacing was found to be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number density, ρ=N/V, V=N/ρ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V = 1/0.8 = 1.25&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;L&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;attice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√1.25 = 1.07722&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or a face-centred cubic (fcc) lattice with number density 1.2, its lattice spacing was calculated:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.2 = 3.33333&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√3.33333 = 1.49380&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Furthermore, a simulation sc box of width 10 was created as a control. Within this region, there were &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;4000 atoms present (4 atoms in each unit cell where there are 10x10x10 = 1000 unit cells). Following this, the mass and pair coefficient of the each type of atom were assigned as below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Definitions for each line in the command code are provided as such:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Assigning mass of value 1.0 to all type 1 atoms&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Specifying a standard 12/6 Lennard-Jones potential with no Coulomb between atom pairs with global LJ cutoff set to distance r*=3.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Setting the pairwise forcefield coefficients for the&lt;br /&gt;
symmetric I,J interaction to the same value of 1.0 for all (given by asterisk) type 1 with type 1 atom pairs&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Timestep Optimisation ===&lt;br /&gt;
The code below was written in the input script with the timestep taking a value of 0.001:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### SPECIFY TIMESTEP ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable timestep equal 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable n_steps equal floor(100/${timestep})&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep ${timestep}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### RUN SIMULATION ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run ${n_steps}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: T&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he variable command is a loop which was assigned a value that is later evaluated in the input script, where in this case timestep was equal to 0.001. This is useful because the defined value can be referenced in subsequent variables, therefore making it reusable and eliminating the need to repeatedly input the value 0.001. For instance, the defined timestep was used in the math function &amp;quot;floor&amp;quot; assigned to variable n_step and subsequently the value n_step is used in the &amp;quot;run&amp;quot; command. Hence, this coding method will be more pragmatic than just writing the script simply as:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choosing the correct timestep was crucial for the subsequent simulations which were undertaken. To determine the optimum timestep, simulations using different timesteps (0.001, 0.0025, 0.0075, 0.01 and 0.015) were tested. To illustrate that the simulation had equilibrated, the graphs of total e&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;nergy, temperature and pressure against time were plotted for the 0.001 timestep experiment:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_1.jpg|&#039;&#039;&#039;Figure 1:&#039;&#039;&#039; Total energy against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_2.jpg|&#039;&#039;&#039;Figure 2:&#039;&#039;&#039; Temperature against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_3.jpg|&#039;&#039;&#039;Figure 3:&#039;&#039;&#039; Pressure against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the plots above, the simulation did achieve equilibrium and the values of total energy, temperature and pressure had converged to a constant average (within a certain degree of error) at approximately 0.5 s into the simulation.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_4.jpg|&#039;&#039;&#039;Figure 4:&#039;&#039;&#039; Single plot of total energy against time for all five timesteps.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Among the five timesteps, 0.001 was most likely to give acceptable results. The data obtained was of high resolution, with the smallest interval between data points. The simulation was said to give the best representation of a physical reality being investigated. On the other hand, a timestep of 0.015 was the least suitable choice because the total energy does not converge. The energy initially stabilised but subsequently diverged (increased) after 20 s and thus system has not fully equilibrated. To give the best balance between resolution and speed (time taken to complete a simulation), timestep within the acceptable range of 0.001 to 0.003 were used. Any timestep above 0.003 would not properly allow for total energy to converge and gives a large gap between data points.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== LAMMPS Toolkit ===&lt;br /&gt;
The LAMMPS Molecular Dynamics Simulator is an extremely useful simulation software containing a vast array of tools that was further utilised throughout this experiment. Among them were the &amp;quot;variable&amp;quot; and &amp;quot;thermo_style&amp;quot; commands used in changing ensembles and measuring thermodynamics properties respectively, which were crucial in obtaining key data. Towards the end of the investigation, the usage of the radial distribution function (RDF), mean squared displacement (MSD) and velocity autocorrelation function (VACF) were also explored and applied into many of the simulations conducted.&lt;br /&gt;
&lt;br /&gt;
=== Visual Molecular Dynamics (VMD) ===&lt;br /&gt;
To help visualise some of the simulations, LAMMPS was also supported by the VMD 3D graphics programme that was able to read trajectory (.trj) files in order to display our simulation through multiple modes and perspectives. This software was also used to conduct further calculations such as evaluating running integrals for the RDF.&lt;br /&gt;
&lt;br /&gt;
== Results and Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== NpT Ensemble ===&lt;br /&gt;
For this section of the investigation, the simulation has been modified so that it can run under NpT conditions (called the isobaric-isothermal ensemble in statistical mechanics) to understand what changes to thermodynamic properties occur at this particular experimental condition. The data collected was used to plot an equation of state at atmospheric pressure for the case of our model fluid.&lt;br /&gt;
&lt;br /&gt;
Five values of temperature (2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;.0, 2.5, 3.0, 3.5, 4.0&amp;lt;/span&amp;gt;) and two values of pressure (3.0, 4.0) given in Lennard-Jones units were chosen based on the results of the optimisation test ran earlier. The timestep was set to 0.0025 and the input script modified accordingly for all ten (p,T) phase points before being submitted to LAMMPS.&lt;br /&gt;
&lt;br /&gt;
==== 1. Controlling Temperature ====&lt;br /&gt;
In general, temperature, T at a given time during the course of the simulation will be prone to fluctuations and will differ slightly from the intended temperature of the system, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;𝛕 (value specified in the input script). However, T can be easily controlled by multiplying each velocity term of each atom by a constant factor, γ whereby:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The kinetic energy of the system can be written as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T &#039;&#039;&#039;&#039;&#039;(Eq. 1)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;𝛕 &#039;&#039;&#039;&#039;&#039;(Eq. 2)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Dividing (Eq. 2) by (Eq. 1):&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)/( v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;) = 𝛕/T&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 𝛕/T, thus γ = √(𝛕/T)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, the value of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;γ can be determined and used to correct any deviations in T.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Sampling and Averaging ====&lt;br /&gt;
In the input script, there were lines entered as:&lt;br /&gt;
 fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
 run 100000&lt;br /&gt;
These lines were needed to measure key thermodynamics properties such as density, temperature and pressure respectively. Most importantly, the values 100, 1000 and 100000 play a vital role in directing how often these properties are averaged and how many measurements contribute to the final average. Each number is represented as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100 = Nevery&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1000 = Nrepeat&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100000 = Nfreq&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The three arguments above specify the timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a multiple of 100000. The average was over 1000 quantities, computed in the preceding portion of the simulation every 100 timesteps. Nfreq must be a multiple of Nevery and Nevery must be non-zero even if Nrepeat was 1. Also, the timesteps contributing to the average value cannot overlap, i.e. Nrepeat*Nevery cannot exceed Nfreq.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;, by referring to the log (.log) output file, the amount of time that has been simulated for this investigation was 50 s.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Equation of State ====&lt;br /&gt;
The density of the system obtained from the log files were plotted against temperature for both of pressures that were simulated, including error bars. Also included in the graphs was a curve for the expected densities as predicted by the ideal gas law, pV =NkT. &amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_5.jpg|&#039;&#039;&#039;Figure 5:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 3.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_6.jpg|&#039;&#039;&#039;Figure 6:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 4.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;It was found that the&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulated density was always lower than the values predicted by the ideal gas law for a given pressure. This was because for an ideal gas, there was no interactions between the atoms whereas the atoms in our simulation had been modeled using a forcefield of the Lennard-Jones potential. Moreover, the discrepancy between the observed and predicted values of density increased with pressure, especially at the lower temperatures where the deviation was larger.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== NVT Ensemble ===&lt;br /&gt;
&lt;br /&gt;
==== 1. Heat Capacity ====&lt;br /&gt;
In a particular system where temperature was fixed, thermodynamic properties such as total energy were likely to fluctuate from its constant average and these fluctuations gives rise to the heat capacity, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv&amp;lt;/span&amp;gt; where its value can be calculated using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv = δE/δT = N&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.Var(E)/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, it was important to note that the simulation carried out here was altered to NVT conditions (canonical ensemble). As with the previous simulation, ten phase points were required, but this time using five values of temperature (2.0, 2.2, 2.4, 2.6, 2.8) and two values of density (0.2, 0.8). A copy of the modified input script for NVT is attached below to highlight the changes made:&lt;br /&gt;
&lt;br /&gt;
https://goo.gl/5GnrfV&lt;br /&gt;
&lt;br /&gt;
==== 2. Results ====&lt;br /&gt;
Once data was collected from the log files (but without standard errors), the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv/V against average temperature was plotted on the same axes, where V was the volume of the simulation cell.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_7.jpg|&#039;&#039;&#039;Figure 7:&#039;&#039;&#039; A plot of heat capacity over volume as a function of average temperature&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the results obtained, this was not the trend that was expected. The data supposed to show a constant heat capacity for both densities, but instead heat capacity decreases when temperature was increased. Comparing both sets of data, for a system having a higher density, its heat capacity will in turn be raised.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Radial Distribution Function (RDF) ===&lt;br /&gt;
The radial pair distribution function or g(r) is &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;defined as the probability of locating the nearest neighbouring atom at a distance r from a reference atom. The visualising software VMD was used to calculate the RDF of three simulations under different states, that were the solid, liquid and vapour phases.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 1. Phase Transitions ====&lt;br /&gt;
In order to set up the various states, the values of d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ensity and temperature of the simulation were modified appropriately based on the phase transitions of the Lennard-Jones system. The following were the set of parameters determined for each state:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.002 was used to run all simulations in LAMMPS.&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_solid.JPG|&#039;&#039;&#039;Figure 8(a):&#039;&#039;&#039; View of solid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_liquid.JPG|&#039;&#039;&#039;Figure 8(b):&#039;&#039;&#039; View of liquid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_vapour.JPG|&#039;&#039;&#039;Figure 8(c):&#039;&#039;&#039; View of gas phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Qualitative Analysis of RDF ====&lt;br /&gt;
When each simulation was completed, its .trj file was inputted into VMD where the value of g(r) and &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ g(r) dr (or running integral) were evaluated. The graph of RDF against reduced distance were plotted on the same axes for all three states.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_8.jpg|&#039;&#039;&#039;Figure 9:&#039;&#039;&#039; Combined g(r) against reduced distance plot for the solid, liquid and vapour systems&lt;br /&gt;
&amp;lt;/gallery&amp;gt;In the s&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;olid RDF, the function showed a regular pattern of peaks with almost the similar intervals over a long range of distance. The peaks were discrete at approximately σ, √2 σ, √3 σ, and so on. There was a very high chance of finding an atom at the position of these peaks whilst the probability of locating an atom between the peaks was very low. This illustrated that solids had a uniform packing structure and had very little defect within the lattice. Moreover, the first three peaks corresponded to the first, second and third coordination shells.&lt;br /&gt;
&lt;br /&gt;
Thus the lattice spacing can be determined:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.4 = 2.85714&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√2.85714 = 1.41898&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;To calculate the coordination number, g(r) was integrated in spherical coordinates to the first minimum of the RDF. Hence, the coordination numbers for the solid were: first peak (12), second peak (4), and third peak (8).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the l&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iquid RDF, the first and sharpest peak occured close to σ and the subsequent peaks appeared at about intervals of σ, but smaller than the first peak. At longer distances of r, the value of g(r) remained unchanged at 1, showing that liquid particles were independent of one another. Thus, liquids were less closely packed compared to solids and had the ability to move dynamically, hence they do not possess a fixed structure. They were able to form multiple coordination spheres, but in most cases, there was only one coordination sphere present at a given time.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the v&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;apour RDF, the function only showed one obvious peak at about σ which then plateaued off at a value of g(r) = 1, the normal bulk density of the system. The regions that experienced the greatest intermolecular forces when g(r) &amp;gt; 1 were for 1 &amp;lt; σ &amp;lt; 2.5. From this result, it was concluded that gases tend to move around randomly in a sporadic motion (Brownian motion) and at most, they only have a single short-lived coordination sphere.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Diffusion Coefficient ===&lt;br /&gt;
In this experiment, the way in which atoms move around in the system (through translational motion) was of particular interest. This form of motion was governed by the diffusion coefficient, D or mass diffusivity, which can be measured using two main methods detailed below: &lt;br /&gt;
&lt;br /&gt;
==== 1. Mean Squared Displacement (MSD) ====&lt;br /&gt;
Since D was closely related to MSD, a simulation was ran (at specific density and temperature) for all three phases with an additional input command to calculate MSD and VACF (mentioned in next section). The set of parameters used to obtain each physical phase were identical those implemented during the RDF investigation:&lt;br /&gt;
&lt;br /&gt;
Timestep = 0.002&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once data was obtained from the &amp;quot;optional output-2&amp;quot; files, the total MSD (resultant MSD from individual Cartesian directions (x,y,z)) was plotted against timestep:&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_9.jpg|&#039;&#039;&#039;Figure 10(a):&#039;&#039;&#039; Total MSD as a function of timestep for the solid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_10.jpg|&#039;&#039;&#039;Figure 10(b):&#039;&#039;&#039; Total MSD as a function of timestep for the liquid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_11.jpg|&#039;&#039;&#039;Figure 10(c):&#039;&#039;&#039; Total MSD as a function of timestep for the gas phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The relationship between total MSD and timestep obtained for the three phases were as expected. Total MSD for solids initially fluctuated before becoming constant whereas for the liquid phase, its values increased linearly but gradually, and as for the vapour phase, total MSD increased linearly and rapidly.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since D = 1/6 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;δ&amp;lt;r&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;(t)&amp;gt; / δt, &amp;lt;/span&amp;gt;then &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/6 (gradient of graph of MSD vs timestep)&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus using the gradient of the best-fit line, for:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; D = 1/6 (2.3514 x 10&amp;lt;sup&amp;gt;-8&amp;lt;/sup&amp;gt;) = 3.919 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; D = 1/6 (1.3140 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt;) = 2.190 x 10&amp;lt;sup&amp;gt;-4&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; D = 1/6 (7.2313 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt;) = 1.205 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this, the d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iffusion coefficient was shown to have increased going from solids to gases. Moreover, it was noted that the diffusion coefficient for the solid phase was so small, it was negligible (zero).&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_12.jpg|&#039;&#039;&#039;Figure 11(a):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_13.jpg|&#039;&#039;&#039;Figure 11(b):&#039;&#039;&#039; Total MSD plotted against timestep for the liquid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_14.jpg|&#039;&#039;&#039;Figure 11(c):&#039;&#039;&#039; Total MSD plotted against timestep for the solid phase for simulation containing one million atoms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;For the same&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulation repeated using one million atoms, values of total MSD obtained were higher compared to that with fewer atoms (except for the solid phase where the total MSD was lowered). Moreover, total MSD for the liquid and vapour phases increased more linearly when using more atoms (and this was most evident for the vapour phase).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Velocity Autocorrelation Function (VACF) ====&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Fill&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_14.jpg&amp;diff=654551</id>
		<title>File:Dw3015 14.jpg</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_14.jpg&amp;diff=654551"/>
		<updated>2017-12-20T15:53:46Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_13.jpg&amp;diff=654550</id>
		<title>File:Dw3015 13.jpg</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_13.jpg&amp;diff=654550"/>
		<updated>2017-12-20T15:53:25Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_12.jpg&amp;diff=654549</id>
		<title>File:Dw3015 12.jpg</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_12.jpg&amp;diff=654549"/>
		<updated>2017-12-20T15:53:09Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654548</id>
		<title>Rep:Mod:dw3015 y3c liqsim</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654548"/>
		<updated>2017-12-20T15:41:02Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: /* 2. Velocity Autocorrelation Function (VACF) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Year 3 Computational Labs=&lt;br /&gt;
&lt;br /&gt;
= Molecular Dynamics Simulations of Simple Liquids =&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Aims and Objectives ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
In order for the simulation to replicate a real system as accurately, a few criterion had been defined, namely the simulation model, initial test parameters, forcefield, final parameters and tools used.&lt;br /&gt;
&lt;br /&gt;
=== Velocity-Verlet Algorithm and Timestep ===&lt;br /&gt;
Using approximations, we assumed that atoms will behave classically and therefore the velocity-Verlet algorithm was applied into the simulation, where we&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; have defined the starting positions of the atoms, x&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0) and their velocities at the same time, v&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0). As an example, this algorithm was used in a simple harmonic oscillator: &amp;lt;/span&amp;gt;https://goo.gl/As44o7&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.1 was initially tested. Subsequently, the value of &amp;quot;ERROR&amp;quot; as function of time was investigated and was found that this relationship was given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;y = 0.000422x + 0.000073&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;R-squared value = 0.999977&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The function above remained constant although the value of timestep was varied. It was found that w&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;hen timestep was increased, this will add more cycles to the &amp;quot;ENERGY&amp;quot; and &amp;quot;ERROR&amp;quot; graphs but period remained constant. Amplitude of &amp;quot;ERROR&amp;quot; graph will increase over time leading to bigger magnitude in error. However, the function of maxima in the &amp;quot;ERROR&amp;quot; graph was unchanged. The &amp;quot;ENERGY&amp;quot; graph will also have higher amplitude, hence bigger change in total energy. Timestep must therefore not exceed 0.1990665 for change in total energy to remain below 1%.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The prove of concept is shown here: https://goo.gl/zC9YU9&lt;br /&gt;
&lt;br /&gt;
Moreover, the t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;otal energy of a physical system was measured and expected to remain constant, indicating that the system has completed equilibration and energy has been completely redistributed among the particles in a given system (through collisions) upon the start of the simulation.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Model ===&lt;br /&gt;
A simple particle in a box model was used for all of the simulations. Using LAMMPS, a cubic box of a given length containing a given amount of atoms of mass 1.0 was created. This will form the boundary for the simulations carried out.&lt;br /&gt;
&lt;br /&gt;
For atoms that move beyond this boundary, the periodic boundary conditions was able to correct the atoms&#039; coordinates by allowing its replica to enter from the opposite face.&lt;br /&gt;
&lt;br /&gt;
For instance, a&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;n atom at position (0.5, 0.5, 0.5) in a cubic simulation box which runs from (0, 0, 0) to (1.0, 1.0, 1.0), moving along a vector (0.7, 0.6, 0.2) in a single timestep, its final position is at (1.2, 1.1, 0.7). But after applying periodic boundary conditions, the atom position was corrected to (0.2, 0.1, 0.7).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To give an idea of the number of molecules simulated, the number of moles of 1 ml of water under standard conditions were estimated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of 1 ml water = ρV = 1 g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;n of 1ml water = m/M&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 0.05550843506 mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number of water molecules = nN&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 3.342796 x 10&amp;lt;sup&amp;gt;22&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a large and unsuitable number to simulate. A value of 10000 would be more reasonable, thus the volume of 10000 water molecules was calculated to give a better perspective:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For 10000 water molecules, n of water = n.o.m./N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 1.660539&lt;br /&gt;
x 10&amp;lt;sup&amp;gt;-20&amp;lt;/sup&amp;gt; mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of water = nM&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V of water = m/ρ = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; ml&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Forcefield ===&lt;br /&gt;
The Lennard-Jones potential, which fits well into the physic of the simulation, was utilised knowing that the force acting on the atoms depended on the potential they experienced. At longer distances however, this interaction will be so small that it can be negligible, so a cutoff point of 3.0&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ was put in place.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Lennard-Jones Potential, U = 4ε [(σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To understand the relationship better, the separation &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; at which the potential of zero was evaluated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;When U=0, (σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Let (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = y, thus y&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;-y = 0, y(y-1) = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore, y=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0, undefined; (y-1)=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;= 1, hence R=r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;=σ (F = repulsive force)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along with the separation at equilibrium and hence the well depth &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ϕ(r&amp;lt;sub&amp;gt;eq),&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;At equilibrium, F=0 (minimum), dU/dR = -48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&lt;br /&gt;
+ 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For turning point, dU/dR = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;),&lt;br /&gt;
(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)/(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;, R&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;=2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;,&lt;br /&gt;
hence R=(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)σ, R=r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;=1.12246σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore well depth, ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;)&lt;br /&gt;
- (σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;)]&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(1/4)-(1/2)], ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = -ε (minimum)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Moreover, the values of integrals of 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, 2.5 σ and 3 σ to infinity were calculated respectively:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;∫ϕ(r)dr = -1/3εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;), and when σ=ε=1,&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.020671&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2.5 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0068127&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0027416&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
The quantities used in the simulation were treated and divided with a scaling factor, such as &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ or &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ε, to ensure that our results were more manageable. For example, for argon with Lennard-Jones (LJ) parameters σ = 0.34nm and ε/&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; = 120K, its LJ cutoff r* = 3.2 in real units was:&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r=r*σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r = 3.2(0.34 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt;) = 1.088 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; m&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, its well depth in real units was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = ε = k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T x N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ε = (1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(120 K)(6.02214 x 10&amp;lt;sup&amp;gt;23 &amp;lt;/sup&amp;gt;&#039;&#039;mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; = 0.997735 kJ mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, the reduced temperature T* = 1.5 can be calculated in real units:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = T*ε/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = 1.5(997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)/(1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(6.02214 &#039;&#039;x 10&amp;lt;sup&amp;gt;23&amp;lt;/sup&amp;gt; mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 180 K&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lattice Structure ===&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Giving atoms random starting coordinates can be problematic as this may generate two atoms close to each other in our simulation, where if the separation between them was below σ, this can cause a strong (or even infinite) repulsion pushing the atoms apart. Therefore, the atoms were initially created in a 3D simple cubic (sc) lattice.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given that the number density (N/V) of lattice points was 0.8, the lattice spacing was found to be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number density, ρ=N/V, V=N/ρ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V = 1/0.8 = 1.25&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;L&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;attice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√1.25 = 1.07722&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or a face-centred cubic (fcc) lattice with number density 1.2, its lattice spacing was calculated:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.2 = 3.33333&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√3.33333 = 1.49380&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Furthermore, a simulation sc box of width 10 was created as a control. Within this region, there were &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;4000 atoms present (4 atoms in each unit cell where there are 10x10x10 = 1000 unit cells). Following this, the mass and pair coefficient of the each type of atom were assigned as below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Definitions for each line in the command code are provided as such:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Assigning mass of value 1.0 to all type 1 atoms&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Specifying a standard 12/6 Lennard-Jones potential with no Coulomb between atom pairs with global LJ cutoff set to distance r*=3.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Setting the pairwise forcefield coefficients for the&lt;br /&gt;
symmetric I,J interaction to the same value of 1.0 for all (given by asterisk) type 1 with type 1 atom pairs&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Timestep Optimisation ===&lt;br /&gt;
The code below was written in the input script with the timestep taking a value of 0.001:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### SPECIFY TIMESTEP ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable timestep equal 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable n_steps equal floor(100/${timestep})&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep ${timestep}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### RUN SIMULATION ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run ${n_steps}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: T&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he variable command is a loop which was assigned a value that is later evaluated in the input script, where in this case timestep was equal to 0.001. This is useful because the defined value can be referenced in subsequent variables, therefore making it reusable and eliminating the need to repeatedly input the value 0.001. For instance, the defined timestep was used in the math function &amp;quot;floor&amp;quot; assigned to variable n_step and subsequently the value n_step is used in the &amp;quot;run&amp;quot; command. Hence, this coding method will be more pragmatic than just writing the script simply as:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choosing the correct timestep was crucial for the subsequent simulations which were undertaken. To determine the optimum timestep, simulations using different timesteps (0.001, 0.0025, 0.0075, 0.01 and 0.015) were tested. To illustrate that the simulation had equilibrated, the graphs of total e&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;nergy, temperature and pressure against time were plotted for the 0.001 timestep experiment:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_1.jpg|&#039;&#039;&#039;Figure 1:&#039;&#039;&#039; Total energy against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_2.jpg|&#039;&#039;&#039;Figure 2:&#039;&#039;&#039; Temperature against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_3.jpg|&#039;&#039;&#039;Figure 3:&#039;&#039;&#039; Pressure against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the plots above, the simulation did achieve equilibrium and the values of total energy, temperature and pressure had converged to a constant average (within a certain degree of error) at approximately 0.5 s into the simulation.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_4.jpg|&#039;&#039;&#039;Figure 4:&#039;&#039;&#039; Single plot of total energy against time for all five timesteps.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Among the five timesteps, 0.001 was most likely to give acceptable results. The data obtained was of high resolution, with the smallest interval between data points. The simulation was said to give the best representation of a physical reality being investigated. On the other hand, a timestep of 0.015 was the least suitable choice because the total energy does not converge. The energy initially stabilised but subsequently diverged (increased) after 20 s and thus system has not fully equilibrated. To give the best balance between resolution and speed (time taken to complete a simulation), timestep within the acceptable range of 0.001 to 0.003 were used. Any timestep above 0.003 would not properly allow for total energy to converge and gives a large gap between data points.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== LAMMPS Toolkit ===&lt;br /&gt;
The LAMMPS Molecular Dynamics Simulator is an extremely useful simulation software containing a vast array of tools that was further utilised throughout this experiment. Among them were the &amp;quot;variable&amp;quot; and &amp;quot;thermo_style&amp;quot; commands used in changing ensembles and measuring thermodynamics properties respectively, which were crucial in obtaining key data. Towards the end of the investigation, the usage of the radial distribution function (RDF), mean squared displacement (MSD) and velocity autocorrelation function (VACF) were also explored and applied into many of the simulations conducted.&lt;br /&gt;
&lt;br /&gt;
=== Visual Molecular Dynamics (VMD) ===&lt;br /&gt;
To help visualise some of the simulations, LAMMPS was also supported by the VMD 3D graphics programme that was able to read trajectory (.trj) files in order to display our simulation through multiple modes and perspectives. This software was also used to conduct further calculations such as evaluating running integrals for the RDF.&lt;br /&gt;
&lt;br /&gt;
== Results and Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== NpT Ensemble ===&lt;br /&gt;
For this section of the investigation, the simulation has been modified so that it can run under NpT conditions (called the isobaric-isothermal ensemble in statistical mechanics) to understand what changes to thermodynamic properties occur at this particular experimental condition. The data collected was used to plot an equation of state at atmospheric pressure for the case of our model fluid.&lt;br /&gt;
&lt;br /&gt;
Five values of temperature (2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;.0, 2.5, 3.0, 3.5, 4.0&amp;lt;/span&amp;gt;) and two values of pressure (3.0, 4.0) given in Lennard-Jones units were chosen based on the results of the optimisation test ran earlier. The timestep was set to 0.0025 and the input script modified accordingly for all ten (p,T) phase points before being submitted to LAMMPS.&lt;br /&gt;
&lt;br /&gt;
==== 1. Controlling Temperature ====&lt;br /&gt;
In general, temperature, T at a given time during the course of the simulation will be prone to fluctuations and will differ slightly from the intended temperature of the system, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;𝛕 (value specified in the input script). However, T can be easily controlled by multiplying each velocity term of each atom by a constant factor, γ whereby:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The kinetic energy of the system can be written as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T &#039;&#039;&#039;&#039;&#039;(Eq. 1)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;𝛕 &#039;&#039;&#039;&#039;&#039;(Eq. 2)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Dividing (Eq. 2) by (Eq. 1):&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)/( v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;) = 𝛕/T&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 𝛕/T, thus γ = √(𝛕/T)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, the value of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;γ can be determined and used to correct any deviations in T.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Sampling and Averaging ====&lt;br /&gt;
In the input script, there were lines entered as:&lt;br /&gt;
 fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
 run 100000&lt;br /&gt;
These lines were needed to measure key thermodynamics properties such as density, temperature and pressure respectively. Most importantly, the values 100, 1000 and 100000 play a vital role in directing how often these properties are averaged and how many measurements contribute to the final average. Each number is represented as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100 = Nevery&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1000 = Nrepeat&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100000 = Nfreq&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The three arguments above specify the timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a multiple of 100000. The average was over 1000 quantities, computed in the preceding portion of the simulation every 100 timesteps. Nfreq must be a multiple of Nevery and Nevery must be non-zero even if Nrepeat was 1. Also, the timesteps contributing to the average value cannot overlap, i.e. Nrepeat*Nevery cannot exceed Nfreq.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;, by referring to the log (.log) output file, the amount of time that has been simulated for this investigation was 50 s.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Equation of State ====&lt;br /&gt;
The density of the system obtained from the log files were plotted against temperature for both of pressures that were simulated, including error bars. Also included in the graphs was a curve for the expected densities as predicted by the ideal gas law, pV =NkT. &amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_5.jpg|&#039;&#039;&#039;Figure 5:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 3.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_6.jpg|&#039;&#039;&#039;Figure 6:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 4.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;It was found that the&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulated density was always lower than the values predicted by the ideal gas law for a given pressure. This was because for an ideal gas, there was no interactions between the atoms whereas the atoms in our simulation had been modeled using a forcefield of the Lennard-Jones potential. Moreover, the discrepancy between the observed and predicted values of density increased with pressure, especially at the lower temperatures where the deviation was larger.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== NVT Ensemble ===&lt;br /&gt;
&lt;br /&gt;
==== 1. Heat Capacity ====&lt;br /&gt;
In a particular system where temperature was fixed, thermodynamic properties such as total energy were likely to fluctuate from its constant average and these fluctuations gives rise to the heat capacity, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv&amp;lt;/span&amp;gt; where its value can be calculated using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv = δE/δT = N&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.Var(E)/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, it was important to note that the simulation carried out here was altered to NVT conditions (canonical ensemble). As with the previous simulation, ten phase points were required, but this time using five values of temperature (2.0, 2.2, 2.4, 2.6, 2.8) and two values of density (0.2, 0.8). A copy of the modified input script for NVT is attached below to highlight the changes made:&lt;br /&gt;
&lt;br /&gt;
https://goo.gl/5GnrfV&lt;br /&gt;
&lt;br /&gt;
==== 2. Results ====&lt;br /&gt;
Once data was collected from the log files (but without standard errors), the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv/V against average temperature was plotted on the same axes, where V was the volume of the simulation cell.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_7.jpg|&#039;&#039;&#039;Figure 7:&#039;&#039;&#039; A plot of heat capacity over volume as a function of average temperature&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the results obtained, this was not the trend that was expected. The data supposed to show a constant heat capacity for both densities, but instead heat capacity decreases when temperature was increased. Comparing both sets of data, for a system having a higher density, its heat capacity will in turn be raised.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Radial Distribution Function (RDF) ===&lt;br /&gt;
The radial pair distribution function or g(r) is &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;defined as the probability of locating the nearest neighbouring atom at a distance r from a reference atom. The visualising software VMD was used to calculate the RDF of three simulations under different states, that were the solid, liquid and vapour phases.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 1. Phase Transitions ====&lt;br /&gt;
In order to set up the various states, the values of d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ensity and temperature of the simulation were modified appropriately based on the phase transitions of the Lennard-Jones system. The following were the set of parameters determined for each state:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.002 was used to run all simulations in LAMMPS.&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_solid.JPG|&#039;&#039;&#039;Figure 8(a):&#039;&#039;&#039; View of solid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_liquid.JPG|&#039;&#039;&#039;Figure 8(b):&#039;&#039;&#039; View of liquid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_vapour.JPG|&#039;&#039;&#039;Figure 8(c):&#039;&#039;&#039; View of gas phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Qualitative Analysis of RDF ====&lt;br /&gt;
When each simulation was completed, its .trj file was inputted into VMD where the value of g(r) and &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ g(r) dr (or running integral) were evaluated. The graph of RDF against reduced distance were plotted on the same axes for all three states.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_8.jpg|&#039;&#039;&#039;Figure 9:&#039;&#039;&#039; Combined g(r) against reduced distance plot for the solid, liquid and vapour systems&lt;br /&gt;
&amp;lt;/gallery&amp;gt;In the s&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;olid RDF, the function showed a regular pattern of peaks with almost the similar intervals over a long range of distance. The peaks were discrete at approximately σ, √2 σ, √3 σ, and so on. There was a very high chance of finding an atom at the position of these peaks whilst the probability of locating an atom between the peaks was very low. This illustrated that solids had a uniform packing structure and had very little defect within the lattice. Moreover, the first three peaks corresponded to the first, second and third coordination shells.&lt;br /&gt;
&lt;br /&gt;
Thus the lattice spacing can be determined:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.4 = 2.85714&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√2.85714 = 1.41898&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;To calculate the coordination number, g(r) was integrated in spherical coordinates to the first minimum of the RDF. Hence, the coordination numbers for the solid were: first peak (12), second peak (4), and third peak (8).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the l&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iquid RDF, the first and sharpest peak occured close to σ and the subsequent peaks appeared at about intervals of σ, but smaller than the first peak. At longer distances of r, the value of g(r) remained unchanged at 1, showing that liquid particles were independent of one another. Thus, liquids were less closely packed compared to solids and had the ability to move dynamically, hence they do not possess a fixed structure. They were able to form multiple coordination spheres, but in most cases, there was only one coordination sphere present at a given time.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the v&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;apour RDF, the function only showed one obvious peak at about σ which then plateaued off at a value of g(r) = 1, the normal bulk density of the system. The regions that experienced the greatest intermolecular forces when g(r) &amp;gt; 1 were for 1 &amp;lt; σ &amp;lt; 2.5. From this result, it was concluded that gases tend to move around randomly in a sporadic motion (Brownian motion) and at most, they only have a single short-lived coordination sphere.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Diffusion Coefficient ===&lt;br /&gt;
In this experiment, the way in which atoms move around in the system (through translational motion) was of particular interest. This form of motion was governed by the diffusion coefficient, D or mass diffusivity, which can be measured using two main methods detailed below: &lt;br /&gt;
&lt;br /&gt;
==== 1. Mean Squared Displacement (MSD) ====&lt;br /&gt;
Since D was closely related to MSD, a simulation was ran (at specific density and temperature) for all three phases with an additional input command to calculate MSD and VACF (mentioned in next section). The set of parameters used to obtain each physical phase were identical those implemented during the RDF investigation:&lt;br /&gt;
&lt;br /&gt;
Timestep = 0.002&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once data was obtained from the &amp;quot;optional output-2&amp;quot; files, the total MSD (resultant MSD from individual Cartesian directions (x,y,z)) was plotted against timestep:&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_9.jpg|&#039;&#039;&#039;Figure 10(a):&#039;&#039;&#039; Total MSD as a function of timestep for the solid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_10.jpg|&#039;&#039;&#039;Figure 10(b):&#039;&#039;&#039; Total MSD as a function of timestep for the liquid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_11.jpg|&#039;&#039;&#039;Figure 10(c):&#039;&#039;&#039; Total MSD as a function of timestep for the gas phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The relationship between total MSD and timestep obtained for the three phases were as expected. Total MSD for solids initially fluctuated before becoming constant whereas for the liquid phase, its values increased linearly but gradually, and as for the vapour phase, total MSD increased linearly and rapidly.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since D = 1/6 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;δ&amp;lt;r&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;(t)&amp;gt; / δt, &amp;lt;/span&amp;gt;then &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/6 (gradient of graph of MSD vs timestep)&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus using the gradient of the best-fit line, for:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Solid: D = 1/6 (2.3514 x 10&amp;lt;sup&amp;gt;-8&amp;lt;/sup&amp;gt;) = 3.919 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Liquid: D = 1/6 (1.3140 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt;) = 2.190 x 10&amp;lt;sup&amp;gt;-4&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Vapour: D = 1/6 (7.2313 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt;) = 1.205 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this, the d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iffusion coefficient was shown to have increased going from solids to gases. Moreover, it was noted that the diffusion coefficient for the solid phase was so small, it was negligible (zero).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the same&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulation repeated using one million atoms, values of total MSD obtained were higher compared to that with fewer atoms (except for the solid phase where the total MSD was lowered). Moreover, total MSD for the liquid and vapour phases increased more linearly when using more atoms (and this was most evident for the vapour phase).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Velocity Autocorrelation Function (VACF) ====&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Fill&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654547</id>
		<title>Rep:Mod:dw3015 y3c liqsim</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654547"/>
		<updated>2017-12-20T15:34:03Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: /* Mean Squared Displacement (MSD) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Year 3 Computational Labs=&lt;br /&gt;
&lt;br /&gt;
= Molecular Dynamics Simulations of Simple Liquids =&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Aims and Objectives ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
In order for the simulation to replicate a real system as accurately, a few criterion had been defined, namely the simulation model, initial test parameters, forcefield, final parameters and tools used.&lt;br /&gt;
&lt;br /&gt;
=== Velocity-Verlet Algorithm and Timestep ===&lt;br /&gt;
Using approximations, we assumed that atoms will behave classically and therefore the velocity-Verlet algorithm was applied into the simulation, where we&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; have defined the starting positions of the atoms, x&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0) and their velocities at the same time, v&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0). As an example, this algorithm was used in a simple harmonic oscillator: &amp;lt;/span&amp;gt;https://goo.gl/As44o7&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.1 was initially tested. Subsequently, the value of &amp;quot;ERROR&amp;quot; as function of time was investigated and was found that this relationship was given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;y = 0.000422x + 0.000073&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;R-squared value = 0.999977&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The function above remained constant although the value of timestep was varied. It was found that w&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;hen timestep was increased, this will add more cycles to the &amp;quot;ENERGY&amp;quot; and &amp;quot;ERROR&amp;quot; graphs but period remained constant. Amplitude of &amp;quot;ERROR&amp;quot; graph will increase over time leading to bigger magnitude in error. However, the function of maxima in the &amp;quot;ERROR&amp;quot; graph was unchanged. The &amp;quot;ENERGY&amp;quot; graph will also have higher amplitude, hence bigger change in total energy. Timestep must therefore not exceed 0.1990665 for change in total energy to remain below 1%.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The prove of concept is shown here: https://goo.gl/zC9YU9&lt;br /&gt;
&lt;br /&gt;
Moreover, the t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;otal energy of a physical system was measured and expected to remain constant, indicating that the system has completed equilibration and energy has been completely redistributed among the particles in a given system (through collisions) upon the start of the simulation.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Model ===&lt;br /&gt;
A simple particle in a box model was used for all of the simulations. Using LAMMPS, a cubic box of a given length containing a given amount of atoms of mass 1.0 was created. This will form the boundary for the simulations carried out.&lt;br /&gt;
&lt;br /&gt;
For atoms that move beyond this boundary, the periodic boundary conditions was able to correct the atoms&#039; coordinates by allowing its replica to enter from the opposite face.&lt;br /&gt;
&lt;br /&gt;
For instance, a&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;n atom at position (0.5, 0.5, 0.5) in a cubic simulation box which runs from (0, 0, 0) to (1.0, 1.0, 1.0), moving along a vector (0.7, 0.6, 0.2) in a single timestep, its final position is at (1.2, 1.1, 0.7). But after applying periodic boundary conditions, the atom position was corrected to (0.2, 0.1, 0.7).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To give an idea of the number of molecules simulated, the number of moles of 1 ml of water under standard conditions were estimated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of 1 ml water = ρV = 1 g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;n of 1ml water = m/M&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 0.05550843506 mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number of water molecules = nN&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 3.342796 x 10&amp;lt;sup&amp;gt;22&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a large and unsuitable number to simulate. A value of 10000 would be more reasonable, thus the volume of 10000 water molecules was calculated to give a better perspective:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For 10000 water molecules, n of water = n.o.m./N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 1.660539&lt;br /&gt;
x 10&amp;lt;sup&amp;gt;-20&amp;lt;/sup&amp;gt; mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of water = nM&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V of water = m/ρ = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; ml&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Forcefield ===&lt;br /&gt;
The Lennard-Jones potential, which fits well into the physic of the simulation, was utilised knowing that the force acting on the atoms depended on the potential they experienced. At longer distances however, this interaction will be so small that it can be negligible, so a cutoff point of 3.0&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ was put in place.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Lennard-Jones Potential, U = 4ε [(σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To understand the relationship better, the separation &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; at which the potential of zero was evaluated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;When U=0, (σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Let (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = y, thus y&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;-y = 0, y(y-1) = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore, y=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0, undefined; (y-1)=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;= 1, hence R=r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;=σ (F = repulsive force)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along with the separation at equilibrium and hence the well depth &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ϕ(r&amp;lt;sub&amp;gt;eq),&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;At equilibrium, F=0 (minimum), dU/dR = -48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&lt;br /&gt;
+ 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For turning point, dU/dR = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;),&lt;br /&gt;
(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)/(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;, R&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;=2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;,&lt;br /&gt;
hence R=(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)σ, R=r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;=1.12246σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore well depth, ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;)&lt;br /&gt;
- (σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;)]&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(1/4)-(1/2)], ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = -ε (minimum)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Moreover, the values of integrals of 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, 2.5 σ and 3 σ to infinity were calculated respectively:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;∫ϕ(r)dr = -1/3εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;), and when σ=ε=1,&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.020671&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2.5 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0068127&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0027416&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
The quantities used in the simulation were treated and divided with a scaling factor, such as &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ or &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ε, to ensure that our results were more manageable. For example, for argon with Lennard-Jones (LJ) parameters σ = 0.34nm and ε/&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; = 120K, its LJ cutoff r* = 3.2 in real units was:&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r=r*σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r = 3.2(0.34 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt;) = 1.088 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; m&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, its well depth in real units was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = ε = k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T x N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ε = (1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(120 K)(6.02214 x 10&amp;lt;sup&amp;gt;23 &amp;lt;/sup&amp;gt;&#039;&#039;mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; = 0.997735 kJ mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, the reduced temperature T* = 1.5 can be calculated in real units:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = T*ε/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = 1.5(997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)/(1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(6.02214 &#039;&#039;x 10&amp;lt;sup&amp;gt;23&amp;lt;/sup&amp;gt; mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 180 K&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lattice Structure ===&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Giving atoms random starting coordinates can be problematic as this may generate two atoms close to each other in our simulation, where if the separation between them was below σ, this can cause a strong (or even infinite) repulsion pushing the atoms apart. Therefore, the atoms were initially created in a 3D simple cubic (sc) lattice.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given that the number density (N/V) of lattice points was 0.8, the lattice spacing was found to be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number density, ρ=N/V, V=N/ρ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V = 1/0.8 = 1.25&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;L&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;attice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√1.25 = 1.07722&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or a face-centred cubic (fcc) lattice with number density 1.2, its lattice spacing was calculated:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.2 = 3.33333&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√3.33333 = 1.49380&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Furthermore, a simulation sc box of width 10 was created as a control. Within this region, there were &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;4000 atoms present (4 atoms in each unit cell where there are 10x10x10 = 1000 unit cells). Following this, the mass and pair coefficient of the each type of atom were assigned as below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Definitions for each line in the command code are provided as such:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Assigning mass of value 1.0 to all type 1 atoms&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Specifying a standard 12/6 Lennard-Jones potential with no Coulomb between atom pairs with global LJ cutoff set to distance r*=3.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Setting the pairwise forcefield coefficients for the&lt;br /&gt;
symmetric I,J interaction to the same value of 1.0 for all (given by asterisk) type 1 with type 1 atom pairs&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Timestep Optimisation ===&lt;br /&gt;
The code below was written in the input script with the timestep taking a value of 0.001:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### SPECIFY TIMESTEP ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable timestep equal 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable n_steps equal floor(100/${timestep})&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep ${timestep}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### RUN SIMULATION ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run ${n_steps}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: T&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he variable command is a loop which was assigned a value that is later evaluated in the input script, where in this case timestep was equal to 0.001. This is useful because the defined value can be referenced in subsequent variables, therefore making it reusable and eliminating the need to repeatedly input the value 0.001. For instance, the defined timestep was used in the math function &amp;quot;floor&amp;quot; assigned to variable n_step and subsequently the value n_step is used in the &amp;quot;run&amp;quot; command. Hence, this coding method will be more pragmatic than just writing the script simply as:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choosing the correct timestep was crucial for the subsequent simulations which were undertaken. To determine the optimum timestep, simulations using different timesteps (0.001, 0.0025, 0.0075, 0.01 and 0.015) were tested. To illustrate that the simulation had equilibrated, the graphs of total e&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;nergy, temperature and pressure against time were plotted for the 0.001 timestep experiment:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_1.jpg|&#039;&#039;&#039;Figure 1:&#039;&#039;&#039; Total energy against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_2.jpg|&#039;&#039;&#039;Figure 2:&#039;&#039;&#039; Temperature against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_3.jpg|&#039;&#039;&#039;Figure 3:&#039;&#039;&#039; Pressure against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the plots above, the simulation did achieve equilibrium and the values of total energy, temperature and pressure had converged to a constant average (within a certain degree of error) at approximately 0.5 s into the simulation.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_4.jpg|&#039;&#039;&#039;Figure 4:&#039;&#039;&#039; Single plot of total energy against time for all five timesteps.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Among the five timesteps, 0.001 was most likely to give acceptable results. The data obtained was of high resolution, with the smallest interval between data points. The simulation was said to give the best representation of a physical reality being investigated. On the other hand, a timestep of 0.015 was the least suitable choice because the total energy does not converge. The energy initially stabilised but subsequently diverged (increased) after 20 s and thus system has not fully equilibrated. To give the best balance between resolution and speed (time taken to complete a simulation), timestep within the acceptable range of 0.001 to 0.003 were used. Any timestep above 0.003 would not properly allow for total energy to converge and gives a large gap between data points.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== LAMMPS Toolkit ===&lt;br /&gt;
The LAMMPS Molecular Dynamics Simulator is an extremely useful simulation software containing a vast array of tools that was further utilised throughout this experiment. Among them were the &amp;quot;variable&amp;quot; and &amp;quot;thermo_style&amp;quot; commands used in changing ensembles and measuring thermodynamics properties respectively, which were crucial in obtaining key data. Towards the end of the investigation, the usage of the radial distribution function (RDF), mean squared displacement (MSD) and velocity autocorrelation function (VACF) were also explored and applied into many of the simulations conducted.&lt;br /&gt;
&lt;br /&gt;
=== Visual Molecular Dynamics (VMD) ===&lt;br /&gt;
To help visualise some of the simulations, LAMMPS was also supported by the VMD 3D graphics programme that was able to read trajectory (.trj) files in order to display our simulation through multiple modes and perspectives. This software was also used to conduct further calculations such as evaluating running integrals for the RDF.&lt;br /&gt;
&lt;br /&gt;
== Results and Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== NpT Ensemble ===&lt;br /&gt;
For this section of the investigation, the simulation has been modified so that it can run under NpT conditions (called the isobaric-isothermal ensemble in statistical mechanics) to understand what changes to thermodynamic properties occur at this particular experimental condition. The data collected was used to plot an equation of state at atmospheric pressure for the case of our model fluid.&lt;br /&gt;
&lt;br /&gt;
Five values of temperature (2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;.0, 2.5, 3.0, 3.5, 4.0&amp;lt;/span&amp;gt;) and two values of pressure (3.0, 4.0) given in Lennard-Jones units were chosen based on the results of the optimisation test ran earlier. The timestep was set to 0.0025 and the input script modified accordingly for all ten (p,T) phase points before being submitted to LAMMPS.&lt;br /&gt;
&lt;br /&gt;
==== 1. Controlling Temperature ====&lt;br /&gt;
In general, temperature, T at a given time during the course of the simulation will be prone to fluctuations and will differ slightly from the intended temperature of the system, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;𝛕 (value specified in the input script). However, T can be easily controlled by multiplying each velocity term of each atom by a constant factor, γ whereby:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The kinetic energy of the system can be written as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T &#039;&#039;&#039;&#039;&#039;(Eq. 1)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;𝛕 &#039;&#039;&#039;&#039;&#039;(Eq. 2)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Dividing (Eq. 2) by (Eq. 1):&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)/( v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;) = 𝛕/T&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 𝛕/T, thus γ = √(𝛕/T)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, the value of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;γ can be determined and used to correct any deviations in T.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Sampling and Averaging ====&lt;br /&gt;
In the input script, there were lines entered as:&lt;br /&gt;
 fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
 run 100000&lt;br /&gt;
These lines were needed to measure key thermodynamics properties such as density, temperature and pressure respectively. Most importantly, the values 100, 1000 and 100000 play a vital role in directing how often these properties are averaged and how many measurements contribute to the final average. Each number is represented as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100 = Nevery&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1000 = Nrepeat&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100000 = Nfreq&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The three arguments above specify the timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a multiple of 100000. The average was over 1000 quantities, computed in the preceding portion of the simulation every 100 timesteps. Nfreq must be a multiple of Nevery and Nevery must be non-zero even if Nrepeat was 1. Also, the timesteps contributing to the average value cannot overlap, i.e. Nrepeat*Nevery cannot exceed Nfreq.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;, by referring to the log (.log) output file, the amount of time that has been simulated for this investigation was 50 s.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Equation of State ====&lt;br /&gt;
The density of the system obtained from the log files were plotted against temperature for both of pressures that were simulated, including error bars. Also included in the graphs was a curve for the expected densities as predicted by the ideal gas law, pV =NkT. &amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_5.jpg|&#039;&#039;&#039;Figure 5:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 3.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_6.jpg|&#039;&#039;&#039;Figure 6:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 4.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;It was found that the&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulated density was always lower than the values predicted by the ideal gas law for a given pressure. This was because for an ideal gas, there was no interactions between the atoms whereas the atoms in our simulation had been modeled using a forcefield of the Lennard-Jones potential. Moreover, the discrepancy between the observed and predicted values of density increased with pressure, especially at the lower temperatures where the deviation was larger.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== NVT Ensemble ===&lt;br /&gt;
&lt;br /&gt;
==== 1. Heat Capacity ====&lt;br /&gt;
In a particular system where temperature was fixed, thermodynamic properties such as total energy were likely to fluctuate from its constant average and these fluctuations gives rise to the heat capacity, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv&amp;lt;/span&amp;gt; where its value can be calculated using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv = δE/δT = N&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.Var(E)/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, it was important to note that the simulation carried out here was altered to NVT conditions (canonical ensemble). As with the previous simulation, ten phase points were required, but this time using five values of temperature (2.0, 2.2, 2.4, 2.6, 2.8) and two values of density (0.2, 0.8). A copy of the modified input script for NVT is attached below to highlight the changes made:&lt;br /&gt;
&lt;br /&gt;
https://goo.gl/5GnrfV&lt;br /&gt;
&lt;br /&gt;
==== 2. Results ====&lt;br /&gt;
Once data was collected from the log files (but without standard errors), the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv/V against average temperature was plotted on the same axes, where V was the volume of the simulation cell.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_7.jpg|&#039;&#039;&#039;Figure 7:&#039;&#039;&#039; A plot of heat capacity over volume as a function of average temperature&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the results obtained, this was not the trend that was expected. The data supposed to show a constant heat capacity for both densities, but instead heat capacity decreases when temperature was increased. Comparing both sets of data, for a system having a higher density, its heat capacity will in turn be raised.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Radial Distribution Function (RDF) ===&lt;br /&gt;
The radial pair distribution function or g(r) is &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;defined as the probability of locating the nearest neighbouring atom at a distance r from a reference atom. The visualising software VMD was used to calculate the RDF of three simulations under different states, that were the solid, liquid and vapour phases.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 1. Phase Transitions ====&lt;br /&gt;
In order to set up the various states, the values of d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ensity and temperature of the simulation were modified appropriately based on the phase transitions of the Lennard-Jones system. The following were the set of parameters determined for each state:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.002 was used to run all simulations in LAMMPS.&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_solid.JPG|&#039;&#039;&#039;Figure 8(a):&#039;&#039;&#039; View of solid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_liquid.JPG|&#039;&#039;&#039;Figure 8(b):&#039;&#039;&#039; View of liquid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_vapour.JPG|&#039;&#039;&#039;Figure 8(c):&#039;&#039;&#039; View of gas phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Qualitative Analysis of RDF ====&lt;br /&gt;
When each simulation was completed, its .trj file was inputted into VMD where the value of g(r) and &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ g(r) dr (or running integral) were evaluated. The graph of RDF against reduced distance were plotted on the same axes for all three states.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_8.jpg|&#039;&#039;&#039;Figure 9:&#039;&#039;&#039; Combined g(r) against reduced distance plot for the solid, liquid and vapour systems&lt;br /&gt;
&amp;lt;/gallery&amp;gt;In the s&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;olid RDF, the function showed a regular pattern of peaks with almost the similar intervals over a long range of distance. The peaks were discrete at approximately σ, √2 σ, √3 σ, and so on. There was a very high chance of finding an atom at the position of these peaks whilst the probability of locating an atom between the peaks was very low. This illustrated that solids had a uniform packing structure and had very little defect within the lattice. Moreover, the first three peaks corresponded to the first, second and third coordination shells.&lt;br /&gt;
&lt;br /&gt;
Thus the lattice spacing can be determined:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.4 = 2.85714&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√2.85714 = 1.41898&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;To calculate the coordination number, g(r) was integrated in spherical coordinates to the first minimum of the RDF. Hence, the coordination numbers for the solid were: first peak (12), second peak (4), and third peak (8).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the l&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iquid RDF, the first and sharpest peak occured close to σ and the subsequent peaks appeared at about intervals of σ, but smaller than the first peak. At longer distances of r, the value of g(r) remained unchanged at 1, showing that liquid particles were independent of one another. Thus, liquids were less closely packed compared to solids and had the ability to move dynamically, hence they do not possess a fixed structure. They were able to form multiple coordination spheres, but in most cases, there was only one coordination sphere present at a given time.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the v&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;apour RDF, the function only showed one obvious peak at about σ which then plateaued off at a value of g(r) = 1, the normal bulk density of the system. The regions that experienced the greatest intermolecular forces when g(r) &amp;gt; 1 were for 1 &amp;lt; σ &amp;lt; 2.5. From this result, it was concluded that gases tend to move around randomly in a sporadic motion (Brownian motion) and at most, they only have a single short-lived coordination sphere.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Diffusion Coefficient ===&lt;br /&gt;
In this experiment, the way in which atoms move around in the system (through translational motion) was of particular interest. This form of motion was governed by the diffusion coefficient, D or mass diffusivity, which can be measured using two main methods detailed below: &lt;br /&gt;
&lt;br /&gt;
==== 1. Mean Squared Displacement (MSD) ====&lt;br /&gt;
Since D was closely related to MSD, a simulation was ran (at specific density and temperature) for all three phases with an additional input command to calculate MSD and VACF (mentioned in next section). The set of parameters used to obtain each physical phase were identical those implemented during the RDF investigation:&lt;br /&gt;
&lt;br /&gt;
Timestep = 0.002&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once data was obtained from the &amp;quot;optional output-2&amp;quot; files, the total MSD (resultant MSD from individual Cartesian directions (x,y,z)) was plotted against timestep:&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_9.jpg|&#039;&#039;&#039;Figure 10(a):&#039;&#039;&#039; Total MSD as a function of timestep for the solid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_10.jpg|&#039;&#039;&#039;Figure 10(b):&#039;&#039;&#039; Total MSD as a function of timestep for the liquid phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_11.jpg|&#039;&#039;&#039;Figure 10(c):&#039;&#039;&#039; Total MSD as a function of timestep for the gas phase&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The relationship between total MSD and timestep obtained for the three phases were as expected. Total MSD for solids initially fluctuated before becoming constant whereas for the liquid phase, its values increased linearly but gradually, and as for the vapour phase, total MSD increased linearly and rapidly.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since D = 1/6 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;δ&amp;lt;r&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;(t)&amp;gt; / δt, &amp;lt;/span&amp;gt;then &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;D = 1/6 (gradient of graph of MSD vs timestep)&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus for,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Solid: D = 1/6 (2.3514 x 10&amp;lt;sup&amp;gt;-8&amp;lt;/sup&amp;gt;) = 3.919 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Liquid: D = 1/6 (1.3140 x 10&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt;) = 2.190 x 10&amp;lt;sup&amp;gt;-4&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Vapour: D = 1/6 (7.2313 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt;) = 1.205 x 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt; s&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this, the d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iffusion coefficient was expected and proven to increase going from solids to gases. Moreover, it was noted that the diffusion coefficient for the solid phase was so small, it was negligible (zero).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Velocity Autocorrelation Function (VACF) ====&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Fill&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_11.jpg&amp;diff=654546</id>
		<title>File:Dw3015 11.jpg</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_11.jpg&amp;diff=654546"/>
		<updated>2017-12-20T15:13:43Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_10.jpg&amp;diff=654545</id>
		<title>File:Dw3015 10.jpg</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_10.jpg&amp;diff=654545"/>
		<updated>2017-12-20T15:13:12Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_9.jpg&amp;diff=654544</id>
		<title>File:Dw3015 9.jpg</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_9.jpg&amp;diff=654544"/>
		<updated>2017-12-20T15:12:55Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654543</id>
		<title>Rep:Mod:dw3015 y3c liqsim</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654543"/>
		<updated>2017-12-20T13:51:32Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: /* 2. Qualitative Analysis of RDF */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Year 3 Computational Labs=&lt;br /&gt;
&lt;br /&gt;
= Molecular Dynamics Simulations of Simple Liquids =&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Aims and Objectives ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
In order for the simulation to replicate a real system as accurately, a few criterion had been defined, namely the simulation model, initial test parameters, forcefield, final parameters and tools used.&lt;br /&gt;
&lt;br /&gt;
=== Velocity-Verlet Algorithm and Timestep ===&lt;br /&gt;
Using approximations, we assumed that atoms will behave classically and therefore the velocity-Verlet algorithm was applied into the simulation, where we&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; have defined the starting positions of the atoms, x&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0) and their velocities at the same time, v&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0). As an example, this algorithm was used in a simple harmonic oscillator: &amp;lt;/span&amp;gt;https://goo.gl/As44o7&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.1 was initially tested. Subsequently, the value of &amp;quot;ERROR&amp;quot; as function of time was investigated and was found that this relationship was given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;y = 0.000422x + 0.000073&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;R-squared value = 0.999977&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The function above remained constant although the value of timestep was varied. It was found that w&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;hen timestep was increased, this will add more cycles to the &amp;quot;ENERGY&amp;quot; and &amp;quot;ERROR&amp;quot; graphs but period remained constant. Amplitude of &amp;quot;ERROR&amp;quot; graph will increase over time leading to bigger magnitude in error. However, the function of maxima in the &amp;quot;ERROR&amp;quot; graph was unchanged. The &amp;quot;ENERGY&amp;quot; graph will also have higher amplitude, hence bigger change in total energy. Timestep must therefore not exceed 0.1990665 for change in total energy to remain below 1%.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The prove of concept is shown here: https://goo.gl/zC9YU9&lt;br /&gt;
&lt;br /&gt;
Moreover, the t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;otal energy of a physical system was measured and expected to remain constant, indicating that the system has completed equilibration and energy has been completely redistributed among the particles in a given system (through collisions) upon the start of the simulation.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Model ===&lt;br /&gt;
A simple particle in a box model was used for all of the simulations. Using LAMMPS, a cubic box of a given length containing a given amount of atoms of mass 1.0 was created. This will form the boundary for the simulations carried out.&lt;br /&gt;
&lt;br /&gt;
For atoms that move beyond this boundary, the periodic boundary conditions was able to correct the atoms&#039; coordinates by allowing its replica to enter from the opposite face.&lt;br /&gt;
&lt;br /&gt;
For instance, a&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;n atom at position (0.5, 0.5, 0.5) in a cubic simulation box which runs from (0, 0, 0) to (1.0, 1.0, 1.0), moving along a vector (0.7, 0.6, 0.2) in a single timestep, its final position is at (1.2, 1.1, 0.7). But after applying periodic boundary conditions, the atom position was corrected to (0.2, 0.1, 0.7).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To give an idea of the number of molecules simulated, the number of moles of 1 ml of water under standard conditions were estimated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of 1 ml water = ρV = 1 g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;n of 1ml water = m/M&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 0.05550843506 mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number of water molecules = nN&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 3.342796 x 10&amp;lt;sup&amp;gt;22&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a large and unsuitable number to simulate. A value of 10000 would be more reasonable, thus the volume of 10000 water molecules was calculated to give a better perspective:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For 10000 water molecules, n of water = n.o.m./N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 1.660539&lt;br /&gt;
x 10&amp;lt;sup&amp;gt;-20&amp;lt;/sup&amp;gt; mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of water = nM&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V of water = m/ρ = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; ml&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Forcefield ===&lt;br /&gt;
The Lennard-Jones potential, which fits well into the physic of the simulation, was utilised knowing that the force acting on the atoms depended on the potential they experienced. At longer distances however, this interaction will be so small that it can be negligible, so a cutoff point of 3.0&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ was put in place.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Lennard-Jones Potential, U = 4ε [(σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To understand the relationship better, the separation &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; at which the potential of zero was evaluated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;When U=0, (σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Let (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = y, thus y&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;-y = 0, y(y-1) = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore, y=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0, undefined; (y-1)=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;= 1, hence R=r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;=σ (F = repulsive force)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along with the separation at equilibrium and hence the well depth &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ϕ(r&amp;lt;sub&amp;gt;eq),&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;At equilibrium, F=0 (minimum), dU/dR = -48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&lt;br /&gt;
+ 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For turning point, dU/dR = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;),&lt;br /&gt;
(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)/(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;, R&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;=2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;,&lt;br /&gt;
hence R=(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)σ, R=r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;=1.12246σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore well depth, ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;)&lt;br /&gt;
- (σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;)]&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(1/4)-(1/2)], ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = -ε (minimum)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Moreover, the values of integrals of 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, 2.5 σ and 3 σ to infinity were calculated respectively:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;∫ϕ(r)dr = -1/3εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;), and when σ=ε=1,&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.020671&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2.5 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0068127&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0027416&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
The quantities used in the simulation were treated and divided with a scaling factor, such as &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ or &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ε, to ensure that our results were more manageable. For example, for argon with Lennard-Jones (LJ) parameters σ = 0.34nm and ε/&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; = 120K, its LJ cutoff r* = 3.2 in real units was:&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r=r*σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r = 3.2(0.34 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt;) = 1.088 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; m&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, its well depth in real units was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = ε = k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T x N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ε = (1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(120 K)(6.02214 x 10&amp;lt;sup&amp;gt;23 &amp;lt;/sup&amp;gt;&#039;&#039;mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; = 0.997735 kJ mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, the reduced temperature T* = 1.5 can be calculated in real units:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = T*ε/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = 1.5(997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)/(1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(6.02214 &#039;&#039;x 10&amp;lt;sup&amp;gt;23&amp;lt;/sup&amp;gt; mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 180 K&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lattice Structure ===&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Giving atoms random starting coordinates can be problematic as this may generate two atoms close to each other in our simulation, where if the separation between them was below σ, this can cause a strong (or even infinite) repulsion pushing the atoms apart. Therefore, the atoms were initially created in a 3D simple cubic (sc) lattice.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given that the number density (N/V) of lattice points was 0.8, the lattice spacing was found to be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number density, ρ=N/V, V=N/ρ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V = 1/0.8 = 1.25&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;L&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;attice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√1.25 = 1.07722&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or a face-centred cubic (fcc) lattice with number density 1.2, its lattice spacing was calculated:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.2 = 3.33333&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√3.33333 = 1.49380&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Furthermore, a simulation sc box of width 10 was created as a control. Within this region, there were &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;4000 atoms present (4 atoms in each unit cell where there are 10x10x10 = 1000 unit cells). Following this, the mass and pair coefficient of the each type of atom were assigned as below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Definitions for each line in the command code are provided as such:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Assigning mass of value 1.0 to all type 1 atoms&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Specifying a standard 12/6 Lennard-Jones potential with no Coulomb between atom pairs with global LJ cutoff set to distance r*=3.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Setting the pairwise forcefield coefficients for the&lt;br /&gt;
symmetric I,J interaction to the same value of 1.0 for all (given by asterisk) type 1 with type 1 atom pairs&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Timestep Optimisation ===&lt;br /&gt;
The code below was written in the input script with the timestep taking a value of 0.001:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### SPECIFY TIMESTEP ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable timestep equal 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable n_steps equal floor(100/${timestep})&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep ${timestep}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### RUN SIMULATION ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run ${n_steps}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: T&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he variable command is a loop which was assigned a value that is later evaluated in the input script, where in this case timestep was equal to 0.001. This is useful because the defined value can be referenced in subsequent variables, therefore making it reusable and eliminating the need to repeatedly input the value 0.001. For instance, the defined timestep was used in the math function &amp;quot;floor&amp;quot; assigned to variable n_step and subsequently the value n_step is used in the &amp;quot;run&amp;quot; command. Hence, this coding method will be more pragmatic than just writing the script simply as:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choosing the correct timestep was crucial for the subsequent simulations which were undertaken. To determine the optimum timestep, simulations using different timesteps (0.001, 0.0025, 0.0075, 0.01 and 0.015) were tested. To illustrate that the simulation had equilibrated, the graphs of total e&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;nergy, temperature and pressure against time were plotted for the 0.001 timestep experiment:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_1.jpg|&#039;&#039;&#039;Figure 1:&#039;&#039;&#039; Total energy against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_2.jpg|&#039;&#039;&#039;Figure 2:&#039;&#039;&#039; Temperature against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_3.jpg|&#039;&#039;&#039;Figure 3:&#039;&#039;&#039; Pressure against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the plots above, the simulation did achieve equilibrium and the values of total energy, temperature and pressure had converged to a constant average (within a certain degree of error) at approximately 0.5 s into the simulation.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_4.jpg|&#039;&#039;&#039;Figure 4:&#039;&#039;&#039; Single plot of total energy against time for all five timesteps.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Among the five timesteps, 0.001 was most likely to give acceptable results. The data obtained was of high resolution, with the smallest interval between data points. The simulation was said to give the best representation of a physical reality being investigated. On the other hand, a timestep of 0.015 was the least suitable choice because the total energy does not converge. The energy initially stabilised but subsequently diverged (increased) after 20 s and thus system has not fully equilibrated. To give the best balance between resolution and speed (time taken to complete a simulation), timestep within the acceptable range of 0.001 to 0.003 were used. Any timestep above 0.003 would not properly allow for total energy to converge and gives a large gap between data points.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== LAMMPS Toolkit ===&lt;br /&gt;
The LAMMPS Molecular Dynamics Simulator is an extremely useful simulation software containing a vast array of tools that was further utilised throughout this experiment. Among them were the &amp;quot;variable&amp;quot; and &amp;quot;thermo_style&amp;quot; commands used in changing ensembles and measuring thermodynamics properties respectively, which were crucial in obtaining key data. Towards the end of the investigation, the usage of the radial distribution function (RDF), mean squared displacement (MSD) and velocity autocorrelation function (VACF) were also explored and applied into many of the simulations conducted.&lt;br /&gt;
&lt;br /&gt;
=== Visual Molecular Dynamics (VMD) ===&lt;br /&gt;
To help visualise some of the simulations, LAMMPS was also supported by the VMD 3D graphics programme that was able to read trajectory (.trj) files in order to display our simulation through multiple modes and perspectives. This software was also used to conduct further calculations such as evaluating running integrals for the RDF.&lt;br /&gt;
&lt;br /&gt;
== Results and Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== NpT Ensemble ===&lt;br /&gt;
For this section of the investigation, the simulation has been modified so that it can run under NpT conditions (called the isobaric-isothermal ensemble in statistical mechanics) to understand what changes to thermodynamic properties occur at this particular experimental condition. The data collected was used to plot an equation of state at atmospheric pressure for the case of our model fluid.&lt;br /&gt;
&lt;br /&gt;
Five values of temperature (2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;.0, 2.5, 3.0, 3.5, 4.0&amp;lt;/span&amp;gt;) and two values of pressure (3.0, 4.0) given in Lennard-Jones units were chosen based on the results of the optimisation test ran earlier. The timestep was set to 0.0025 and the input script modified accordingly for all ten (p,T) phase points before being submitted to LAMMPS.&lt;br /&gt;
&lt;br /&gt;
==== 1. Controlling Temperature ====&lt;br /&gt;
In general, temperature, T at a given time during the course of the simulation will be prone to fluctuations and will differ slightly from the intended temperature of the system, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;𝛕 (value specified in the input script). However, T can be easily controlled by multiplying each velocity term of each atom by a constant factor, γ whereby:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The kinetic energy of the system can be written as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T &#039;&#039;&#039;&#039;&#039;(Eq. 1)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;𝛕 &#039;&#039;&#039;&#039;&#039;(Eq. 2)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Dividing (Eq. 2) by (Eq. 1):&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)/( v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;) = 𝛕/T&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 𝛕/T, thus γ = √(𝛕/T)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, the value of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;γ can be determined and used to correct any deviations in T.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Sampling and Averaging ====&lt;br /&gt;
In the input script, there were lines entered as:&lt;br /&gt;
 fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
 run 100000&lt;br /&gt;
These lines were needed to measure key thermodynamics properties such as density, temperature and pressure respectively. Most importantly, the values 100, 1000 and 100000 play a vital role in directing how often these properties are averaged and how many measurements contribute to the final average. Each number is represented as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100 = Nevery&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1000 = Nrepeat&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100000 = Nfreq&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The three arguments above specify the timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a multiple of 100000. The average was over 1000 quantities, computed in the preceding portion of the simulation every 100 timesteps. Nfreq must be a multiple of Nevery and Nevery must be non-zero even if Nrepeat was 1. Also, the timesteps contributing to the average value cannot overlap, i.e. Nrepeat*Nevery cannot exceed Nfreq.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;, by referring to the log (.log) output file, the amount of time that has been simulated for this investigation was 50 s.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Equation of State ====&lt;br /&gt;
The density of the system obtained from the log files were plotted against temperature for both of pressures that were simulated, including error bars. Also included in the graphs was a curve for the expected densities as predicted by the ideal gas law, pV =NkT. &amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_5.jpg|&#039;&#039;&#039;Figure 5:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 3.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_6.jpg|&#039;&#039;&#039;Figure 6:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 4.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;It was found that the&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulated density was always lower than the values predicted by the ideal gas law for a given pressure. This was because for an ideal gas, there was no interactions between the atoms whereas the atoms in our simulation had been modeled using a forcefield of the Lennard-Jones potential. Moreover, the discrepancy between the observed and predicted values of density increased with pressure, especially at the lower temperatures where the deviation was larger.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== NVT Ensemble ===&lt;br /&gt;
&lt;br /&gt;
==== 1. Heat Capacity ====&lt;br /&gt;
In a particular system where temperature was fixed, thermodynamic properties such as total energy were likely to fluctuate from its constant average and these fluctuations gives rise to the heat capacity, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv&amp;lt;/span&amp;gt; where its value can be calculated using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv = δE/δT = N&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.Var(E)/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, it was important to note that the simulation carried out here was altered to NVT conditions (canonical ensemble). As with the previous simulation, ten phase points were required, but this time using five values of temperature (2.0, 2.2, 2.4, 2.6, 2.8) and two values of density (0.2, 0.8). A copy of the modified input script for NVT is attached below to highlight the changes made:&lt;br /&gt;
&lt;br /&gt;
https://goo.gl/5GnrfV&lt;br /&gt;
&lt;br /&gt;
==== 2. Results ====&lt;br /&gt;
Once data was collected from the log files (but without standard errors), the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv/V against average temperature was plotted on the same axes, where V was the volume of the simulation cell.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_7.jpg|&#039;&#039;&#039;Figure 7:&#039;&#039;&#039; A plot of heat capacity over volume as a function of average temperature&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the results obtained, this was not the trend that was expected. The data supposed to show a constant heat capacity for both densities, but instead heat capacity decreases when temperature was increased. Comparing both sets of data, for a system having a higher density, its heat capacity will in turn be raised.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Radial Distribution Function (RDF) ===&lt;br /&gt;
The radial pair distribution function or g(r) is &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;defined as the probability of locating the nearest neighbouring atom at a distance r from a reference atom. The visualising software VMD was used to calculate the RDF of three simulations under different states, that were the solid, liquid and vapour phases.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 1. Phase Transitions ====&lt;br /&gt;
In order to set up the various states, the values of d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ensity and temperature of the simulation were modified appropriately based on the phase transitions of the Lennard-Jones system. The following were the set of parameters determined for each state:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.002 was used to run all simulations in LAMMPS.&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_solid.JPG|&#039;&#039;&#039;Figure 8(a):&#039;&#039;&#039; View of solid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_liquid.JPG|&#039;&#039;&#039;Figure 8(b):&#039;&#039;&#039; View of liquid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_vapour.JPG|&#039;&#039;&#039;Figure 8(c):&#039;&#039;&#039; View of gas phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Qualitative Analysis of RDF ====&lt;br /&gt;
When each simulation was completed, its .trj file was inputted into VMD where the value of g(r) and &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫ g(r) dr (or running integral) were evaluated. The graph of RDF against reduced distance were plotted on the same axes for all three states.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_8.jpg|&#039;&#039;&#039;Figure 9:&#039;&#039;&#039; Combined g(r) against reduced distance plot for solid, liquid and vapour systems&lt;br /&gt;
&amp;lt;/gallery&amp;gt;In the s&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;olid RDF, the function showed a regular pattern of peaks with almost the similar intervals over a long range of distance. The peaks were discrete at approximately σ, √2 σ, √3 σ, and so on. There was a very high chance of finding an atom at the position of these peaks whilst the probability of locating an atom between the peaks was very low. This illustrated that solids had a uniform packing structure and had very little defect within the lattice. Moreover, the first three peaks corresponded to the first, second and third coordination shells.&lt;br /&gt;
&lt;br /&gt;
Thus the lattice spacing can be determined:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.4 = 2.85714&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√2.85714 = 1.41898&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;To calculate the coordination number, g(r) was integrated in spherical coordinates to the first minimum of the RDF. Hence, the coordination numbers for the solid were: first peak (12), second peak (4), and third peak (8).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the l&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;iquid RDF, the first and sharpest peak occured close to σ and the subsequent peaks appeared at about intervals of σ, but smaller than the first peak. At longer distances of r, the value of g(r) remained unchanged at 1, showing that liquid particles were independent of one another. Thus, liquids were less closely packed compared to solids and had the ability to move dynamically, hence they do not possess a fixed structure. They were able to form multiple coordination spheres, but in most cases, there was only one coordination sphere present at a given time.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the v&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;apour RDF, the function only showed one obvious peak at about σ which then plateaued off at a value of g(r) = 1, the normal bulk density of the system. The regions that experienced the greatest intermolecular forces when g(r) &amp;gt; 1 were for 1 &amp;lt; σ &amp;lt; 2.5. From this result, it was concluded that gases tend to move around randomly in a sporadic motion (Brownian motion) and at most, they only have a single short-lived coordination sphere.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Diffusion Coefficient ===&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement (MSD) ===&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function (VACF) ===&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Fill&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654542</id>
		<title>Rep:Mod:dw3015 y3c liqsim</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654542"/>
		<updated>2017-12-20T13:43:01Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: /* 2. Sampling and Averaging */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Year 3 Computational Labs=&lt;br /&gt;
&lt;br /&gt;
= Molecular Dynamics Simulations of Simple Liquids =&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Aims and Objectives ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
In order for the simulation to replicate a real system as accurately, a few criterion had been defined, namely the simulation model, initial test parameters, forcefield, final parameters and tools used.&lt;br /&gt;
&lt;br /&gt;
=== Velocity-Verlet Algorithm and Timestep ===&lt;br /&gt;
Using approximations, we assumed that atoms will behave classically and therefore the velocity-Verlet algorithm was applied into the simulation, where we&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; have defined the starting positions of the atoms, x&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0) and their velocities at the same time, v&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0). As an example, this algorithm was used in a simple harmonic oscillator: &amp;lt;/span&amp;gt;https://goo.gl/As44o7&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.1 was initially tested. Subsequently, the value of &amp;quot;ERROR&amp;quot; as function of time was investigated and was found that this relationship was given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;y = 0.000422x + 0.000073&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;R-squared value = 0.999977&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The function above remained constant although the value of timestep was varied. It was found that w&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;hen timestep was increased, this will add more cycles to the &amp;quot;ENERGY&amp;quot; and &amp;quot;ERROR&amp;quot; graphs but period remained constant. Amplitude of &amp;quot;ERROR&amp;quot; graph will increase over time leading to bigger magnitude in error. However, the function of maxima in the &amp;quot;ERROR&amp;quot; graph was unchanged. The &amp;quot;ENERGY&amp;quot; graph will also have higher amplitude, hence bigger change in total energy. Timestep must therefore not exceed 0.1990665 for change in total energy to remain below 1%.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The prove of concept is shown here: https://goo.gl/zC9YU9&lt;br /&gt;
&lt;br /&gt;
Moreover, the t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;otal energy of a physical system was measured and expected to remain constant, indicating that the system has completed equilibration and energy has been completely redistributed among the particles in a given system (through collisions) upon the start of the simulation.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Model ===&lt;br /&gt;
A simple particle in a box model was used for all of the simulations. Using LAMMPS, a cubic box of a given length containing a given amount of atoms of mass 1.0 was created. This will form the boundary for the simulations carried out.&lt;br /&gt;
&lt;br /&gt;
For atoms that move beyond this boundary, the periodic boundary conditions was able to correct the atoms&#039; coordinates by allowing its replica to enter from the opposite face.&lt;br /&gt;
&lt;br /&gt;
For instance, a&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;n atom at position (0.5, 0.5, 0.5) in a cubic simulation box which runs from (0, 0, 0) to (1.0, 1.0, 1.0), moving along a vector (0.7, 0.6, 0.2) in a single timestep, its final position is at (1.2, 1.1, 0.7). But after applying periodic boundary conditions, the atom position was corrected to (0.2, 0.1, 0.7).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To give an idea of the number of molecules simulated, the number of moles of 1 ml of water under standard conditions were estimated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of 1 ml water = ρV = 1 g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;n of 1ml water = m/M&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 0.05550843506 mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number of water molecules = nN&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 3.342796 x 10&amp;lt;sup&amp;gt;22&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a large and unsuitable number to simulate. A value of 10000 would be more reasonable, thus the volume of 10000 water molecules was calculated to give a better perspective:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For 10000 water molecules, n of water = n.o.m./N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 1.660539&lt;br /&gt;
x 10&amp;lt;sup&amp;gt;-20&amp;lt;/sup&amp;gt; mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of water = nM&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V of water = m/ρ = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; ml&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Forcefield ===&lt;br /&gt;
The Lennard-Jones potential, which fits well into the physic of the simulation, was utilised knowing that the force acting on the atoms depended on the potential they experienced. At longer distances however, this interaction will be so small that it can be negligible, so a cutoff point of 3.0&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ was put in place.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Lennard-Jones Potential, U = 4ε [(σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To understand the relationship better, the separation &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; at which the potential of zero was evaluated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;When U=0, (σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Let (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = y, thus y&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;-y = 0, y(y-1) = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore, y=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0, undefined; (y-1)=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;= 1, hence R=r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;=σ (F = repulsive force)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along with the separation at equilibrium and hence the well depth &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ϕ(r&amp;lt;sub&amp;gt;eq),&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;At equilibrium, F=0 (minimum), dU/dR = -48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&lt;br /&gt;
+ 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For turning point, dU/dR = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;),&lt;br /&gt;
(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)/(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;, R&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;=2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;,&lt;br /&gt;
hence R=(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)σ, R=r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;=1.12246σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore well depth, ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;)&lt;br /&gt;
- (σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;)]&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(1/4)-(1/2)], ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = -ε (minimum)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Moreover, the values of integrals of 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, 2.5 σ and 3 σ to infinity were calculated respectively:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;∫ϕ(r)dr = -1/3εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;), and when σ=ε=1,&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.020671&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2.5 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0068127&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0027416&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
The quantities used in the simulation were treated and divided with a scaling factor, such as &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ or &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ε, to ensure that our results were more manageable. For example, for argon with Lennard-Jones (LJ) parameters σ = 0.34nm and ε/&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; = 120K, its LJ cutoff r* = 3.2 in real units was:&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r=r*σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r = 3.2(0.34 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt;) = 1.088 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; m&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, its well depth in real units was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = ε = k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T x N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ε = (1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(120 K)(6.02214 x 10&amp;lt;sup&amp;gt;23 &amp;lt;/sup&amp;gt;&#039;&#039;mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; = 0.997735 kJ mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, the reduced temperature T* = 1.5 can be calculated in real units:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = T*ε/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = 1.5(997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)/(1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(6.02214 &#039;&#039;x 10&amp;lt;sup&amp;gt;23&amp;lt;/sup&amp;gt; mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 180 K&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lattice Structure ===&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Giving atoms random starting coordinates can be problematic as this may generate two atoms close to each other in our simulation, where if the separation between them was below σ, this can cause a strong (or even infinite) repulsion pushing the atoms apart. Therefore, the atoms were initially created in a 3D simple cubic (sc) lattice.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given that the number density (N/V) of lattice points was 0.8, the lattice spacing was found to be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number density, ρ=N/V, V=N/ρ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V = 1/0.8 = 1.25&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;L&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;attice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√1.25 = 1.07722&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or a face-centred cubic (fcc) lattice with number density 1.2, its lattice spacing was calculated:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.2 = 3.33333&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√3.33333 = 1.49380&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Furthermore, a simulation sc box of width 10 was created as a control. Within this region, there were &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;4000 atoms present (4 atoms in each unit cell where there are 10x10x10 = 1000 unit cells). Following this, the mass and pair coefficient of the each type of atom were assigned as below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Definitions for each line in the command code are provided as such:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Assigning mass of value 1.0 to all type 1 atoms&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Specifying a standard 12/6 Lennard-Jones potential with no Coulomb between atom pairs with global LJ cutoff set to distance r*=3.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Setting the pairwise forcefield coefficients for the&lt;br /&gt;
symmetric I,J interaction to the same value of 1.0 for all (given by asterisk) type 1 with type 1 atom pairs&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Timestep Optimisation ===&lt;br /&gt;
The code below was written in the input script with the timestep taking a value of 0.001:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### SPECIFY TIMESTEP ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable timestep equal 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable n_steps equal floor(100/${timestep})&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep ${timestep}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### RUN SIMULATION ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run ${n_steps}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: T&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he variable command is a loop which was assigned a value that is later evaluated in the input script, where in this case timestep was equal to 0.001. This is useful because the defined value can be referenced in subsequent variables, therefore making it reusable and eliminating the need to repeatedly input the value 0.001. For instance, the defined timestep was used in the math function &amp;quot;floor&amp;quot; assigned to variable n_step and subsequently the value n_step is used in the &amp;quot;run&amp;quot; command. Hence, this coding method will be more pragmatic than just writing the script simply as:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choosing the correct timestep was crucial for the subsequent simulations which were undertaken. To determine the optimum timestep, simulations using different timesteps (0.001, 0.0025, 0.0075, 0.01 and 0.015) were tested. To illustrate that the simulation had equilibrated, the graphs of total e&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;nergy, temperature and pressure against time were plotted for the 0.001 timestep experiment:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_1.jpg|&#039;&#039;&#039;Figure 1:&#039;&#039;&#039; Total energy against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_2.jpg|&#039;&#039;&#039;Figure 2:&#039;&#039;&#039; Temperature against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_3.jpg|&#039;&#039;&#039;Figure 3:&#039;&#039;&#039; Pressure against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the plots above, the simulation did achieve equilibrium and the values of total energy, temperature and pressure had converged to a constant average (within a certain degree of error) at approximately 0.5 s into the simulation.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_4.jpg|&#039;&#039;&#039;Figure 4:&#039;&#039;&#039; Single plot of total energy against time for all five timesteps.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Among the five timesteps, 0.001 was most likely to give acceptable results. The data obtained was of high resolution, with the smallest interval between data points. The simulation was said to give the best representation of a physical reality being investigated. On the other hand, a timestep of 0.015 was the least suitable choice because the total energy does not converge. The energy initially stabilised but subsequently diverged (increased) after 20 s and thus system has not fully equilibrated. To give the best balance between resolution and speed (time taken to complete a simulation), timestep within the acceptable range of 0.001 to 0.003 were used. Any timestep above 0.003 would not properly allow for total energy to converge and gives a large gap between data points.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== LAMMPS Toolkit ===&lt;br /&gt;
The LAMMPS Molecular Dynamics Simulator is an extremely useful simulation software containing a vast array of tools that was further utilised throughout this experiment. Among them were the &amp;quot;variable&amp;quot; and &amp;quot;thermo_style&amp;quot; commands used in changing ensembles and measuring thermodynamics properties respectively, which were crucial in obtaining key data. Towards the end of the investigation, the usage of the radial distribution function (RDF), mean squared displacement (MSD) and velocity autocorrelation function (VACF) were also explored and applied into many of the simulations conducted.&lt;br /&gt;
&lt;br /&gt;
=== Visual Molecular Dynamics (VMD) ===&lt;br /&gt;
To help visualise some of the simulations, LAMMPS was also supported by the VMD 3D graphics programme that was able to read trajectory (.trj) files in order to display our simulation through multiple modes and perspectives. This software was also used to conduct further calculations such as evaluating running integrals for the RDF.&lt;br /&gt;
&lt;br /&gt;
== Results and Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== NpT Ensemble ===&lt;br /&gt;
For this section of the investigation, the simulation has been modified so that it can run under NpT conditions (called the isobaric-isothermal ensemble in statistical mechanics) to understand what changes to thermodynamic properties occur at this particular experimental condition. The data collected was used to plot an equation of state at atmospheric pressure for the case of our model fluid.&lt;br /&gt;
&lt;br /&gt;
Five values of temperature (2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;.0, 2.5, 3.0, 3.5, 4.0&amp;lt;/span&amp;gt;) and two values of pressure (3.0, 4.0) given in Lennard-Jones units were chosen based on the results of the optimisation test ran earlier. The timestep was set to 0.0025 and the input script modified accordingly for all ten (p,T) phase points before being submitted to LAMMPS.&lt;br /&gt;
&lt;br /&gt;
==== 1. Controlling Temperature ====&lt;br /&gt;
In general, temperature, T at a given time during the course of the simulation will be prone to fluctuations and will differ slightly from the intended temperature of the system, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;𝛕 (value specified in the input script). However, T can be easily controlled by multiplying each velocity term of each atom by a constant factor, γ whereby:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The kinetic energy of the system can be written as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T &#039;&#039;&#039;&#039;&#039;(Eq. 1)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;𝛕 &#039;&#039;&#039;&#039;&#039;(Eq. 2)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Dividing (Eq. 2) by (Eq. 1):&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)/( v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;) = 𝛕/T&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 𝛕/T, thus γ = √(𝛕/T)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, the value of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;γ can be determined and used to correct any deviations in T.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Sampling and Averaging ====&lt;br /&gt;
In the input script, there were lines entered as:&lt;br /&gt;
 fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
 run 100000&lt;br /&gt;
These lines were needed to measure key thermodynamics properties such as density, temperature and pressure respectively. Most importantly, the values 100, 1000 and 100000 play a vital role in directing how often these properties are averaged and how many measurements contribute to the final average. Each number is represented as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100 = Nevery&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1000 = Nrepeat&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100000 = Nfreq&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The three arguments above specify the timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a multiple of 100000. The average was over 1000 quantities, computed in the preceding portion of the simulation every 100 timesteps. Nfreq must be a multiple of Nevery and Nevery must be non-zero even if Nrepeat was 1. Also, the timesteps contributing to the average value cannot overlap, i.e. Nrepeat*Nevery cannot exceed Nfreq.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;, by referring to the log (.log) output file, the amount of time that has been simulated for this investigation was 50 s.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Equation of State ====&lt;br /&gt;
The density of the system obtained from the log files were plotted against temperature for both of pressures that were simulated, including error bars. Also included in the graphs was a curve for the expected densities as predicted by the ideal gas law, pV =NkT. &amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_5.jpg|&#039;&#039;&#039;Figure 5:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 3.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_6.jpg|&#039;&#039;&#039;Figure 6:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 4.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;It was found that the&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulated density was always lower than the values predicted by the ideal gas law for a given pressure. This was because for an ideal gas, there was no interactions between the atoms whereas the atoms in our simulation had been modeled using a forcefield of the Lennard-Jones potential. Moreover, the discrepancy between the observed and predicted values of density increased with pressure, especially at the lower temperatures where the deviation was larger.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== NVT Ensemble ===&lt;br /&gt;
&lt;br /&gt;
==== 1. Heat Capacity ====&lt;br /&gt;
In a particular system where temperature was fixed, thermodynamic properties such as total energy were likely to fluctuate from its constant average and these fluctuations gives rise to the heat capacity, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv&amp;lt;/span&amp;gt; where its value can be calculated using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv = δE/δT = N&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.Var(E)/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, it was important to note that the simulation carried out here was altered to NVT conditions (canonical ensemble). As with the previous simulation, ten phase points were required, but this time using five values of temperature (2.0, 2.2, 2.4, 2.6, 2.8) and two values of density (0.2, 0.8). A copy of the modified input script for NVT is attached below to highlight the changes made:&lt;br /&gt;
&lt;br /&gt;
https://goo.gl/5GnrfV&lt;br /&gt;
&lt;br /&gt;
==== 2. Results ====&lt;br /&gt;
Once data was collected from the log files (but without standard errors), the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv/V against average temperature was plotted on the same axes, where V was the volume of the simulation cell.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_7.jpg|&#039;&#039;&#039;Figure 7:&#039;&#039;&#039; A plot of heat capacity over volume as a function of average temperature&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the results obtained, this was not the trend that was expected. The data supposed to show a constant heat capacity for both densities, but instead heat capacity decreases when temperature was increased. Comparing both sets of data, for a system having a higher density, its heat capacity will in turn be raised.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Radial Distribution Function (RDF) ===&lt;br /&gt;
The radial pair distribution function or g(r) is &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;defined as the probability of locating the nearest neighbouring atom at a distance r from a reference atom. The visualising software VMD was used to calculate the RDF of three simulations under different states, that were the solid, liquid and vapour phases.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 1. Phase Transitions ====&lt;br /&gt;
In order to set up the various states, the values of d&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ensity and temperature of the simulation were modified appropriately based on the phase transitions of the Lennard-Jones system. The following were the set of parameters determined for each state:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Solid:&#039;&#039;&#039; Lattice fcc, density = 1.4, T = 1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Liquid:&#039;&#039;&#039; Lattice sc, density = 0.8, T =1.5&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&#039;Vapour:&#039;&#039;&#039; Lattice sc, density = 0.01, T = 1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.002 was used to run all simulations in LAMMPS.&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_solid.JPG|&#039;&#039;&#039;Figure 8(a):&#039;&#039;&#039; View of solid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_liquid.JPG|&#039;&#039;&#039;Figure 8(b):&#039;&#039;&#039; View of liquid phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_vapour.JPG|&#039;&#039;&#039;Figure 8(c):&#039;&#039;&#039; View of gas phase simulation in VMD&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Qualitative Analysis of RDF ====&lt;br /&gt;
When each simulation was completed, its .trj file was inputted into VMD where the value of g(r) and &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;∫g(r)dr (or running integral) were evaluated. The graph of RDF against reduced distance were plotted on the same axes for all three states.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_8.jpg|&#039;&#039;&#039;Figure 9:&#039;&#039;&#039; Combined g(r) against reduced distance plot for solid, liquid and vapour systems&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Solid RDF - The function shows a regular pattern of peaks with almost the similar intervals over a long range of distance. The peaks are discrete at&lt;br /&gt;
approximately σ, √2σ, √3σ, and so on. There is a very high chance of finding an atom at the position of these peaks whilst the probability of locating an atom between the peaks is very low. This illustrates that solids have a uniform&lt;br /&gt;
packing structure and have very little defect within the lattice. Moreover, the first three peaks correspond to the first, second and third coordination shells.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;V=N/ρ = 4/1.4 = 2.85714&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√2.85714 = 1.41898&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;To calculate the coordination number, g(r) is integrated in spherical coordinates&lt;br /&gt;
to the first minimum of the RDF. Hence, coordination number for the solid:&lt;br /&gt;
first peak (12), second peak (4), and third peak (8).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Liquid RDF - The first and sharpest peak occurs close to σ and the subsequent peaks appear at about intervals of σ, but smaller than the first. At longer distances of r, the value of g(r) maintains at 1, showing that liquid particles are independent of one another. Thus, liquids are less closely packed compared to solids and have the ability to move dynamically, hence they do not have a fixed structure. They are able to form multiple coordination spheres, but in most cases there is only one coordination sphere.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Vapour RDF - The function for gases only shows one obvious peak at about σ which then plateaus off at a value of g(r) = 1, the normal bulk density of the system. Regions experiencing the greatest intermolecular forces when g(r) &amp;gt; 1 are for 1&amp;lt;σ&amp;lt;2.5. From this result, gases tend to move around randomly in a sporadic motion (Brownian&lt;br /&gt;
motion) and at most only have a single short-lived coordination sphere.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Diffusion Coefficient ===&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement (MSD) ===&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function (VACF) ===&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Fill&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_vapour.JPG&amp;diff=654541</id>
		<title>File:Dw3015 vapour.JPG</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_vapour.JPG&amp;diff=654541"/>
		<updated>2017-12-20T13:35:36Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_liquid.JPG&amp;diff=654540</id>
		<title>File:Dw3015 liquid.JPG</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_liquid.JPG&amp;diff=654540"/>
		<updated>2017-12-20T13:34:24Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_solid.JPG&amp;diff=654539</id>
		<title>File:Dw3015 solid.JPG</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_solid.JPG&amp;diff=654539"/>
		<updated>2017-12-20T13:33:57Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_8.jpg&amp;diff=654538</id>
		<title>File:Dw3015 8.jpg</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_8.jpg&amp;diff=654538"/>
		<updated>2017-12-20T13:32:50Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654537</id>
		<title>Rep:Mod:dw3015 y3c liqsim</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654537"/>
		<updated>2017-12-20T13:09:08Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: /* 1. Heat Capacity */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Year 3 Computational Labs=&lt;br /&gt;
&lt;br /&gt;
= Molecular Dynamics Simulations of Simple Liquids =&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Aims and Objectives ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
In order for the simulation to replicate a real system as accurately, a few criterion had been defined, namely the simulation model, initial test parameters, forcefield, final parameters and tools used.&lt;br /&gt;
&lt;br /&gt;
=== Velocity-Verlet Algorithm and Timestep ===&lt;br /&gt;
Using approximations, we assumed that atoms will behave classically and therefore the velocity-Verlet algorithm was applied into the simulation, where we&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; have defined the starting positions of the atoms, x&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0) and their velocities at the same time, v&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0). As an example, this algorithm was used in a simple harmonic oscillator: &amp;lt;/span&amp;gt;https://goo.gl/As44o7&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.1 was initially tested. Subsequently, the value of &amp;quot;ERROR&amp;quot; as function of time was investigated and was found that this relationship was given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;y = 0.000422x + 0.000073&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;R-squared value = 0.999977&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The function above remained constant although the value of timestep was varied. It was found that w&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;hen timestep was increased, this will add more cycles to the &amp;quot;ENERGY&amp;quot; and &amp;quot;ERROR&amp;quot; graphs but period remained constant. Amplitude of &amp;quot;ERROR&amp;quot; graph will increase over time leading to bigger magnitude in error. However, the function of maxima in the &amp;quot;ERROR&amp;quot; graph was unchanged. The &amp;quot;ENERGY&amp;quot; graph will also have higher amplitude, hence bigger change in total energy. Timestep must therefore not exceed 0.1990665 for change in total energy to remain below 1%.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The prove of concept is shown here: https://goo.gl/zC9YU9&lt;br /&gt;
&lt;br /&gt;
Moreover, the t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;otal energy of a physical system was measured and expected to remain constant, indicating that the system has completed equilibration and energy has been completely redistributed among the particles in a given system (through collisions) upon the start of the simulation.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Model ===&lt;br /&gt;
A simple particle in a box model was used for all of the simulations. Using LAMMPS, a cubic box of a given length containing a given amount of atoms of mass 1.0 was created. This will form the boundary for the simulations carried out.&lt;br /&gt;
&lt;br /&gt;
For atoms that move beyond this boundary, the periodic boundary conditions was able to correct the atoms&#039; coordinates by allowing its replica to enter from the opposite face.&lt;br /&gt;
&lt;br /&gt;
For instance, a&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;n atom at position (0.5, 0.5, 0.5) in a cubic simulation box which runs from (0, 0, 0) to (1.0, 1.0, 1.0), moving along a vector (0.7, 0.6, 0.2) in a single timestep, its final position is at (1.2, 1.1, 0.7). But after applying periodic boundary conditions, the atom position was corrected to (0.2, 0.1, 0.7).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To give an idea of the number of molecules simulated, the number of moles of 1 ml of water under standard conditions were estimated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of 1 ml water = ρV = 1 g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;n of 1ml water = m/M&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 0.05550843506 mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number of water molecules = nN&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 3.342796 x 10&amp;lt;sup&amp;gt;22&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a large and unsuitable number to simulate. A value of 10000 would be more reasonable, thus the volume of 10000 water molecules was calculated to give a better perspective:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For 10000 water molecules, n of water = n.o.m./N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 1.660539&lt;br /&gt;
x 10&amp;lt;sup&amp;gt;-20&amp;lt;/sup&amp;gt; mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of water = nM&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V of water = m/ρ = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; ml&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Forcefield ===&lt;br /&gt;
The Lennard-Jones potential, which fits well into the physic of the simulation, was utilised knowing that the force acting on the atoms depended on the potential they experienced. At longer distances however, this interaction will be so small that it can be negligible, so a cutoff point of 3.0&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ was put in place.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Lennard-Jones Potential, U = 4ε [(σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To understand the relationship better, the separation &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; at which the potential of zero was evaluated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;When U=0, (σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Let (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = y, thus y&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;-y = 0, y(y-1) = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore, y=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0, undefined; (y-1)=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;= 1, hence R=r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;=σ (F = repulsive force)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along with the separation at equilibrium and hence the well depth &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ϕ(r&amp;lt;sub&amp;gt;eq),&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;At equilibrium, F=0 (minimum), dU/dR = -48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&lt;br /&gt;
+ 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For turning point, dU/dR = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;),&lt;br /&gt;
(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)/(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;, R&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;=2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;,&lt;br /&gt;
hence R=(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)σ, R=r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;=1.12246σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore well depth, ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;)&lt;br /&gt;
- (σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;)]&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(1/4)-(1/2)], ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = -ε (minimum)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Moreover, the values of integrals of 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, 2.5 σ and 3 σ to infinity were calculated respectively:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;∫ϕ(r)dr = -1/3εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;), and when σ=ε=1,&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.020671&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2.5 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0068127&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0027416&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
The quantities used in the simulation were treated and divided with a scaling factor, such as &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ or &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ε, to ensure that our results were more manageable. For example, for argon with Lennard-Jones (LJ) parameters σ = 0.34nm and ε/&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; = 120K, its LJ cutoff r* = 3.2 in real units was:&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r=r*σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r = 3.2(0.34 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt;) = 1.088 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; m&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, its well depth in real units was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = ε = k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T x N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ε = (1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(120 K)(6.02214 x 10&amp;lt;sup&amp;gt;23 &amp;lt;/sup&amp;gt;&#039;&#039;mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; = 0.997735 kJ mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, the reduced temperature T* = 1.5 can be calculated in real units:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = T*ε/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = 1.5(997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)/(1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(6.02214 &#039;&#039;x 10&amp;lt;sup&amp;gt;23&amp;lt;/sup&amp;gt; mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 180 K&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lattice Structure ===&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Giving atoms random starting coordinates can be problematic as this may generate two atoms close to each other in our simulation, where if the separation between them was below σ, this can cause a strong (or even infinite) repulsion pushing the atoms apart. Therefore, the atoms were initially created in a 3D simple cubic (sc) lattice.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given that the number density (N/V) of lattice points was 0.8, the lattice spacing was found to be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number density, ρ=N/V, V=N/ρ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V = 1/0.8 = 1.25&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;L&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;attice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√1.25 = 1.07722&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or a face-centred cubic (fcc) lattice with number density 1.2, its lattice spacing was calculated:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.2 = 3.33333&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√3.33333 = 1.49380&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Furthermore, a simulation sc box of width 10 was created as a control. Within this region, there were &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;4000 atoms present (4 atoms in each unit cell where there are 10x10x10 = 1000 unit cells). Following this, the mass and pair coefficient of the each type of atom were assigned as below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Definitions for each line in the command code are provided as such:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Assigning mass of value 1.0 to all type 1 atoms&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Specifying a standard 12/6 Lennard-Jones potential with no Coulomb between atom pairs with global LJ cutoff set to distance r*=3.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Setting the pairwise forcefield coefficients for the&lt;br /&gt;
symmetric I,J interaction to the same value of 1.0 for all (given by asterisk) type 1 with type 1 atom pairs&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Timestep Optimisation ===&lt;br /&gt;
The code below was written in the input script with the timestep taking a value of 0.001:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### SPECIFY TIMESTEP ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable timestep equal 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable n_steps equal floor(100/${timestep})&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep ${timestep}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### RUN SIMULATION ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run ${n_steps}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: T&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he variable command is a loop which was assigned a value that is later evaluated in the input script, where in this case timestep was equal to 0.001. This is useful because the defined value can be referenced in subsequent variables, therefore making it reusable and eliminating the need to repeatedly input the value 0.001. For instance, the defined timestep was used in the math function &amp;quot;floor&amp;quot; assigned to variable n_step and subsequently the value n_step is used in the &amp;quot;run&amp;quot; command. Hence, this coding method will be more pragmatic than just writing the script simply as:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choosing the correct timestep was crucial for the subsequent simulations which were undertaken. To determine the optimum timestep, simulations using different timesteps (0.001, 0.0025, 0.0075, 0.01 and 0.015) were tested. To illustrate that the simulation had equilibrated, the graphs of total e&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;nergy, temperature and pressure against time were plotted for the 0.001 timestep experiment:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_1.jpg|&#039;&#039;&#039;Figure 1:&#039;&#039;&#039; Total energy against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_2.jpg|&#039;&#039;&#039;Figure 2:&#039;&#039;&#039; Temperature against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_3.jpg|&#039;&#039;&#039;Figure 3:&#039;&#039;&#039; Pressure against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the plots above, the simulation did achieve equilibrium and the values of total energy, temperature and pressure had converged to a constant average (within a certain degree of error) at approximately 0.5 s into the simulation.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_4.jpg|&#039;&#039;&#039;Figure 4:&#039;&#039;&#039; Single plot of total energy against time for all five timesteps.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Among the five timesteps, 0.001 was most likely to give acceptable results. The data obtained was of high resolution, with the smallest interval between data points. The simulation was said to give the best representation of a physical reality being investigated. On the other hand, a timestep of 0.015 was the least suitable choice because the total energy does not converge. The energy initially stabilised but subsequently diverged (increased) after 20 s and thus system has not fully equilibrated. To give the best balance between resolution and speed (time taken to complete a simulation), timestep within the acceptable range of 0.001 to 0.003 were used. Any timestep above 0.003 would not properly allow for total energy to converge and gives a large gap between data points.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== LAMMPS Toolkit ===&lt;br /&gt;
The LAMMPS Molecular Dynamics Simulator is an extremely useful simulation software containing a vast array of tools that was further utilised throughout this experiment. Among them were the &amp;quot;variable&amp;quot; and &amp;quot;thermo_style&amp;quot; commands used in changing ensembles and measuring thermodynamics properties respectively, which were crucial in obtaining key data. Towards the end of the investigation, the usage of the radial distribution function (RDF), mean squared displacement (MSD) and velocity autocorrelation function (VACF) were also explored and applied into many of the simulations conducted.&lt;br /&gt;
&lt;br /&gt;
=== Visual Molecular Dynamics (VMD) ===&lt;br /&gt;
To help visualise some of the simulations, LAMMPS was also supported by the VMD 3D graphics programme that was able to read trajectory (.trj) files in order to display our simulation through multiple modes and perspectives. This software was also used to conduct further calculations such as evaluating running integrals for the RDF.&lt;br /&gt;
&lt;br /&gt;
== Results and Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== NpT Ensemble ===&lt;br /&gt;
For this section of the investigation, the simulation has been modified so that it can run under NpT conditions (called the isobaric-isothermal ensemble in statistical mechanics) to understand what changes to thermodynamic properties occur at this particular experimental condition. The data collected was used to plot an equation of state at atmospheric pressure for the case of our model fluid.&lt;br /&gt;
&lt;br /&gt;
Five values of temperature (2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;.0, 2.5, 3.0, 3.5, 4.0&amp;lt;/span&amp;gt;) and two values of pressure (3.0, 4.0) given in Lennard-Jones units were chosen based on the results of the optimisation test ran earlier. The timestep was set to 0.0025 and the input script modified accordingly for all ten (p,T) phase points before being submitted to LAMMPS.&lt;br /&gt;
&lt;br /&gt;
==== 1. Controlling Temperature ====&lt;br /&gt;
In general, temperature, T at a given time during the course of the simulation will be prone to fluctuations and will differ slightly from the intended temperature of the system, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;𝛕 (value specified in the input script). However, T can be easily controlled by multiplying each velocity term of each atom by a constant factor, γ whereby:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The kinetic energy of the system can be written as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T &#039;&#039;&#039;&#039;&#039;(Eq. 1)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;𝛕 &#039;&#039;&#039;&#039;&#039;(Eq. 2)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Dividing (Eq. 2) by (Eq. 1):&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)/( v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;) = 𝛕/T&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 𝛕/T, thus γ = √(𝛕/T)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, the value of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;γ can be determined and used to correct any deviations in T.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Sampling and Averaging ====&lt;br /&gt;
In the input script, there were lines entered as:&lt;br /&gt;
 fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
 run 100000&lt;br /&gt;
These lines were needed to measure key thermodynamics properties such as density, temperature and pressure respectively. Most importantly, the values 100, 1000 and 100000 play a vital role in directing how often these properties are averaged and how many measurements contribute to the final average. Each number is represented as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100 = Nevery&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1000 = Nrepeat&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100000 = Nfreq&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The three arguments above specify the timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a multiple of 100000. The average is over 1000 quantities, computed in the preceding portion of the simulation every 100 timesteps. Nfreq must be a multiple of Nevery and Nevery must be non-zero even if Nrepeat is 1. Also, the timesteps contributing to the average value cannot overlap, i.e. Nrepeat*Nevery cannot exceed Nfreq.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;, by referring to the log (.log) output file, the amount of time that have been simulated for this investigation was 50 s.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Equation of State ====&lt;br /&gt;
The density of the system obtained from the log files were plotted against temperature for both of pressures that were simulated, including error bars. Also included in the graphs was a curve for the expected densities as predicted by the ideal gas law, pV =NkT. &amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_5.jpg|&#039;&#039;&#039;Figure 5:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 3.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_6.jpg|&#039;&#039;&#039;Figure 6:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 4.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;It was found that the&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulated density was always lower than the values predicted by the ideal gas law for a given pressure. This was because for an ideal gas, there was no interactions between the atoms whereas the atoms in our simulation had been modeled using a forcefield of the Lennard-Jones potential. Moreover, the discrepancy between the observed and predicted values of density increased with pressure, especially at the lower temperatures where the deviation was larger.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== NVT Ensemble ===&lt;br /&gt;
&lt;br /&gt;
==== 1. Heat Capacity ====&lt;br /&gt;
In a particular system where temperature was fixed, thermodynamic properties such as total energy were likely to fluctuate from its constant average and these fluctuations gives rise to the heat capacity, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv&amp;lt;/span&amp;gt; where its value can be calculated using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv = δE/δT = N&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.Var(E)/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, it was important to note that the simulation carried out here was altered to NVT conditions (canonical ensemble). As with the previous simulation, ten phase points were required, but this time using five values of temperature (2.0, 2.2, 2.4, 2.6, 2.8) and two values of density (0.2, 0.8). A copy of the modified input script for NVT is attached below to highlight the changes made:&lt;br /&gt;
&lt;br /&gt;
https://goo.gl/5GnrfV&lt;br /&gt;
&lt;br /&gt;
==== 2. Results ====&lt;br /&gt;
Once data was collected from the log files, the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv/V against average temperature was plotted on the same axes, where V was the volume of the simulation cell.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_7.jpg|&#039;&#039;&#039;Figure 7:&#039;&#039;&#039; A plot of heat capacity over volume as a function of average temperature&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the results obtained, this was not the trend that was expected. The data supposed to show a constant heat capacity for both densities, but instead heat capacity decreases when temperature was increased. Comparing both sets of data, for a system having a higher density, its heat capacity will in turn be raised.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Radial Distribution Function (RDF) ===&lt;br /&gt;
&lt;br /&gt;
==== 1. Phase Transitions ====&lt;br /&gt;
&lt;br /&gt;
=== Diffusion Coefficient ===&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement (MSD) ===&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function (VACF) ===&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Fill&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654536</id>
		<title>Rep:Mod:dw3015 y3c liqsim</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654536"/>
		<updated>2017-12-20T13:05:15Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: /* 1. Controlling Temperature */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Year 3 Computational Labs=&lt;br /&gt;
&lt;br /&gt;
= Molecular Dynamics Simulations of Simple Liquids =&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Aims and Objectives ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
In order for the simulation to replicate a real system as accurately, a few criterion had been defined, namely the simulation model, initial test parameters, forcefield, final parameters and tools used.&lt;br /&gt;
&lt;br /&gt;
=== Velocity-Verlet Algorithm and Timestep ===&lt;br /&gt;
Using approximations, we assumed that atoms will behave classically and therefore the velocity-Verlet algorithm was applied into the simulation, where we&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; have defined the starting positions of the atoms, x&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0) and their velocities at the same time, v&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0). As an example, this algorithm was used in a simple harmonic oscillator: &amp;lt;/span&amp;gt;https://goo.gl/As44o7&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.1 was initially tested. Subsequently, the value of &amp;quot;ERROR&amp;quot; as function of time was investigated and was found that this relationship was given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;y = 0.000422x + 0.000073&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;R-squared value = 0.999977&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The function above remained constant although the value of timestep was varied. It was found that w&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;hen timestep was increased, this will add more cycles to the &amp;quot;ENERGY&amp;quot; and &amp;quot;ERROR&amp;quot; graphs but period remained constant. Amplitude of &amp;quot;ERROR&amp;quot; graph will increase over time leading to bigger magnitude in error. However, the function of maxima in the &amp;quot;ERROR&amp;quot; graph was unchanged. The &amp;quot;ENERGY&amp;quot; graph will also have higher amplitude, hence bigger change in total energy. Timestep must therefore not exceed 0.1990665 for change in total energy to remain below 1%.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The prove of concept is shown here: https://goo.gl/zC9YU9&lt;br /&gt;
&lt;br /&gt;
Moreover, the t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;otal energy of a physical system was measured and expected to remain constant, indicating that the system has completed equilibration and energy has been completely redistributed among the particles in a given system (through collisions) upon the start of the simulation.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Model ===&lt;br /&gt;
A simple particle in a box model was used for all of the simulations. Using LAMMPS, a cubic box of a given length containing a given amount of atoms of mass 1.0 was created. This will form the boundary for the simulations carried out.&lt;br /&gt;
&lt;br /&gt;
For atoms that move beyond this boundary, the periodic boundary conditions was able to correct the atoms&#039; coordinates by allowing its replica to enter from the opposite face.&lt;br /&gt;
&lt;br /&gt;
For instance, a&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;n atom at position (0.5, 0.5, 0.5) in a cubic simulation box which runs from (0, 0, 0) to (1.0, 1.0, 1.0), moving along a vector (0.7, 0.6, 0.2) in a single timestep, its final position is at (1.2, 1.1, 0.7). But after applying periodic boundary conditions, the atom position was corrected to (0.2, 0.1, 0.7).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To give an idea of the number of molecules simulated, the number of moles of 1 ml of water under standard conditions were estimated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of 1 ml water = ρV = 1 g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;n of 1ml water = m/M&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 0.05550843506 mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number of water molecules = nN&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 3.342796 x 10&amp;lt;sup&amp;gt;22&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a large and unsuitable number to simulate. A value of 10000 would be more reasonable, thus the volume of 10000 water molecules was calculated to give a better perspective:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For 10000 water molecules, n of water = n.o.m./N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 1.660539&lt;br /&gt;
x 10&amp;lt;sup&amp;gt;-20&amp;lt;/sup&amp;gt; mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of water = nM&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V of water = m/ρ = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; ml&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Forcefield ===&lt;br /&gt;
The Lennard-Jones potential, which fits well into the physic of the simulation, was utilised knowing that the force acting on the atoms depended on the potential they experienced. At longer distances however, this interaction will be so small that it can be negligible, so a cutoff point of 3.0&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ was put in place.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Lennard-Jones Potential, U = 4ε [(σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To understand the relationship better, the separation &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; at which the potential of zero was evaluated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;When U=0, (σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Let (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = y, thus y&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;-y = 0, y(y-1) = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore, y=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0, undefined; (y-1)=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;= 1, hence R=r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;=σ (F = repulsive force)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along with the separation at equilibrium and hence the well depth &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ϕ(r&amp;lt;sub&amp;gt;eq),&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;At equilibrium, F=0 (minimum), dU/dR = -48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&lt;br /&gt;
+ 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For turning point, dU/dR = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;),&lt;br /&gt;
(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)/(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;, R&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;=2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;,&lt;br /&gt;
hence R=(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)σ, R=r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;=1.12246σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore well depth, ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;)&lt;br /&gt;
- (σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;)]&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(1/4)-(1/2)], ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = -ε (minimum)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Moreover, the values of integrals of 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, 2.5 σ and 3 σ to infinity were calculated respectively:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;∫ϕ(r)dr = -1/3εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;), and when σ=ε=1,&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.020671&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2.5 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0068127&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0027416&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
The quantities used in the simulation were treated and divided with a scaling factor, such as &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ or &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ε, to ensure that our results were more manageable. For example, for argon with Lennard-Jones (LJ) parameters σ = 0.34nm and ε/&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; = 120K, its LJ cutoff r* = 3.2 in real units was:&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r=r*σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r = 3.2(0.34 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt;) = 1.088 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; m&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, its well depth in real units was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = ε = k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T x N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ε = (1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(120 K)(6.02214 x 10&amp;lt;sup&amp;gt;23 &amp;lt;/sup&amp;gt;&#039;&#039;mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; = 0.997735 kJ mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, the reduced temperature T* = 1.5 can be calculated in real units:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = T*ε/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = 1.5(997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)/(1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(6.02214 &#039;&#039;x 10&amp;lt;sup&amp;gt;23&amp;lt;/sup&amp;gt; mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 180 K&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lattice Structure ===&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Giving atoms random starting coordinates can be problematic as this may generate two atoms close to each other in our simulation, where if the separation between them was below σ, this can cause a strong (or even infinite) repulsion pushing the atoms apart. Therefore, the atoms were initially created in a 3D simple cubic (sc) lattice.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given that the number density (N/V) of lattice points was 0.8, the lattice spacing was found to be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number density, ρ=N/V, V=N/ρ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V = 1/0.8 = 1.25&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;L&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;attice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√1.25 = 1.07722&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or a face-centred cubic (fcc) lattice with number density 1.2, its lattice spacing was calculated:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.2 = 3.33333&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√3.33333 = 1.49380&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Furthermore, a simulation sc box of width 10 was created as a control. Within this region, there were &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;4000 atoms present (4 atoms in each unit cell where there are 10x10x10 = 1000 unit cells). Following this, the mass and pair coefficient of the each type of atom were assigned as below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Definitions for each line in the command code are provided as such:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Assigning mass of value 1.0 to all type 1 atoms&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Specifying a standard 12/6 Lennard-Jones potential with no Coulomb between atom pairs with global LJ cutoff set to distance r*=3.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Setting the pairwise forcefield coefficients for the&lt;br /&gt;
symmetric I,J interaction to the same value of 1.0 for all (given by asterisk) type 1 with type 1 atom pairs&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Timestep Optimisation ===&lt;br /&gt;
The code below was written in the input script with the timestep taking a value of 0.001:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### SPECIFY TIMESTEP ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable timestep equal 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable n_steps equal floor(100/${timestep})&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep ${timestep}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### RUN SIMULATION ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run ${n_steps}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: T&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he variable command is a loop which was assigned a value that is later evaluated in the input script, where in this case timestep was equal to 0.001. This is useful because the defined value can be referenced in subsequent variables, therefore making it reusable and eliminating the need to repeatedly input the value 0.001. For instance, the defined timestep was used in the math function &amp;quot;floor&amp;quot; assigned to variable n_step and subsequently the value n_step is used in the &amp;quot;run&amp;quot; command. Hence, this coding method will be more pragmatic than just writing the script simply as:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choosing the correct timestep was crucial for the subsequent simulations which were undertaken. To determine the optimum timestep, simulations using different timesteps (0.001, 0.0025, 0.0075, 0.01 and 0.015) were tested. To illustrate that the simulation had equilibrated, the graphs of total e&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;nergy, temperature and pressure against time were plotted for the 0.001 timestep experiment:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_1.jpg|&#039;&#039;&#039;Figure 1:&#039;&#039;&#039; Total energy against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_2.jpg|&#039;&#039;&#039;Figure 2:&#039;&#039;&#039; Temperature against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_3.jpg|&#039;&#039;&#039;Figure 3:&#039;&#039;&#039; Pressure against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the plots above, the simulation did achieve equilibrium and the values of total energy, temperature and pressure had converged to a constant average (within a certain degree of error) at approximately 0.5 s into the simulation.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_4.jpg|&#039;&#039;&#039;Figure 4:&#039;&#039;&#039; Single plot of total energy against time for all five timesteps.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Among the five timesteps, 0.001 was most likely to give acceptable results. The data obtained was of high resolution, with the smallest interval between data points. The simulation was said to give the best representation of a physical reality being investigated. On the other hand, a timestep of 0.015 was the least suitable choice because the total energy does not converge. The energy initially stabilised but subsequently diverged (increased) after 20 s and thus system has not fully equilibrated. To give the best balance between resolution and speed (time taken to complete a simulation), timestep within the acceptable range of 0.001 to 0.003 were used. Any timestep above 0.003 would not properly allow for total energy to converge and gives a large gap between data points.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== LAMMPS Toolkit ===&lt;br /&gt;
The LAMMPS Molecular Dynamics Simulator is an extremely useful simulation software containing a vast array of tools that was further utilised throughout this experiment. Among them were the &amp;quot;variable&amp;quot; and &amp;quot;thermo_style&amp;quot; commands used in changing ensembles and measuring thermodynamics properties respectively, which were crucial in obtaining key data. Towards the end of the investigation, the usage of the radial distribution function (RDF), mean squared displacement (MSD) and velocity autocorrelation function (VACF) were also explored and applied into many of the simulations conducted.&lt;br /&gt;
&lt;br /&gt;
=== Visual Molecular Dynamics (VMD) ===&lt;br /&gt;
To help visualise some of the simulations, LAMMPS was also supported by the VMD 3D graphics programme that was able to read trajectory (.trj) files in order to display our simulation through multiple modes and perspectives. This software was also used to conduct further calculations such as evaluating running integrals for the RDF.&lt;br /&gt;
&lt;br /&gt;
== Results and Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== NpT Ensemble ===&lt;br /&gt;
For this section of the investigation, the simulation has been modified so that it can run under NpT conditions (called the isobaric-isothermal ensemble in statistical mechanics) to understand what changes to thermodynamic properties occur at this particular experimental condition. The data collected was used to plot an equation of state at atmospheric pressure for the case of our model fluid.&lt;br /&gt;
&lt;br /&gt;
Five values of temperature (2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;.0, 2.5, 3.0, 3.5, 4.0&amp;lt;/span&amp;gt;) and two values of pressure (3.0, 4.0) given in Lennard-Jones units were chosen based on the results of the optimisation test ran earlier. The timestep was set to 0.0025 and the input script modified accordingly for all ten (p,T) phase points before being submitted to LAMMPS.&lt;br /&gt;
&lt;br /&gt;
==== 1. Controlling Temperature ====&lt;br /&gt;
In general, temperature, T at a given time during the course of the simulation will be prone to fluctuations and will differ slightly from the intended temperature of the system, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;𝛕 (value specified in the input script). However, T can be easily controlled by multiplying each velocity term of each atom by a constant factor, γ whereby:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The kinetic energy of the system can be written as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T &#039;&#039;&#039;&#039;&#039;(Eq. 1)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;𝛕 &#039;&#039;&#039;&#039;&#039;(Eq. 2)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Dividing (Eq. 2) by (Eq. 1):&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)/( v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;) = 𝛕/T&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 𝛕/T, thus γ = √(𝛕/T)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, the value of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;γ can be determined and used to correct any deviations in T.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Sampling and Averaging ====&lt;br /&gt;
In the input script, there were lines entered as:&lt;br /&gt;
 fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
 run 100000&lt;br /&gt;
These lines were needed to measure key thermodynamics properties such as density, temperature and pressure respectively. Most importantly, the values 100, 1000 and 100000 play a vital role in directing how often these properties are averaged and how many measurements contribute to the final average. Each number is represented as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100 = Nevery&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1000 = Nrepeat&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100000 = Nfreq&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The three arguments above specify the timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a multiple of 100000. The average is over 1000 quantities, computed in the preceding portion of the simulation every 100 timesteps. Nfreq must be a multiple of Nevery and Nevery must be non-zero even if Nrepeat is 1. Also, the timesteps contributing to the average value cannot overlap, i.e. Nrepeat*Nevery cannot exceed Nfreq.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;, by referring to the log (.log) output file, the amount of time that have been simulated for this investigation was 50 s.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Equation of State ====&lt;br /&gt;
The density of the system obtained from the log files were plotted against temperature for both of pressures that were simulated, including error bars. Also included in the graphs was a curve for the expected densities as predicted by the ideal gas law, pV =NkT. &amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_5.jpg|&#039;&#039;&#039;Figure 5:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 3.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_6.jpg|&#039;&#039;&#039;Figure 6:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 4.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;It was found that the&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulated density was always lower than the values predicted by the ideal gas law for a given pressure. This was because for an ideal gas, there was no interactions between the atoms whereas the atoms in our simulation had been modeled using a forcefield of the Lennard-Jones potential. Moreover, the discrepancy between the observed and predicted values of density increased with pressure, especially at the lower temperatures where the deviation was larger.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== NVT Ensemble ===&lt;br /&gt;
&lt;br /&gt;
==== 1. Heat Capacity ====&lt;br /&gt;
In a particular system where temperature was fixed, thermodynamic properties such as total energy were likely to fluctuate from its constant average and these fluctuations gives rise to the heat capacity, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv&amp;lt;/span&amp;gt; where its value can be calculated using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv = δE/δT = N&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.Var(E)/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, it was important to note that the simulation carried out here was altered to NVT conditions (canonical ensemble). As with the previous simulation, ten phase points was ran, but this time requiring five values of temperature (2.0, 2.2, 2.4, 2.6, 2.8) and two values of density (0.2, 0.8). A copy of the modified input script for NVT is attached below to highlight the changes made:&lt;br /&gt;
&lt;br /&gt;
https://goo.gl/5GnrfV&lt;br /&gt;
&lt;br /&gt;
==== 2. Results ====&lt;br /&gt;
Once data was collected from the log files, the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv/V against average temperature was plotted on the same axes, where V was the volume of the simulation cell.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_7.jpg|&#039;&#039;&#039;Figure 7:&#039;&#039;&#039; A plot of heat capacity over volume as a function of average temperature&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the results obtained, this was not the trend that was expected. The data supposed to show a constant heat capacity for both densities, but instead heat capacity decreases when temperature was increased. Comparing both sets of data, for a system having a higher density, its heat capacity will be raised.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Radial Distribution Function (RDF) ===&lt;br /&gt;
&lt;br /&gt;
==== 1. Phase Transitions ====&lt;br /&gt;
&lt;br /&gt;
=== Diffusion Coefficient ===&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement (MSD) ===&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function (VACF) ===&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Fill&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654535</id>
		<title>Rep:Mod:dw3015 y3c liqsim</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654535"/>
		<updated>2017-12-20T13:02:43Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: /* NVT Ensemble */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Year 3 Computational Labs=&lt;br /&gt;
&lt;br /&gt;
= Molecular Dynamics Simulations of Simple Liquids =&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Aims and Objectives ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
In order for the simulation to replicate a real system as accurately, a few criterion had been defined, namely the simulation model, initial test parameters, forcefield, final parameters and tools used.&lt;br /&gt;
&lt;br /&gt;
=== Velocity-Verlet Algorithm and Timestep ===&lt;br /&gt;
Using approximations, we assumed that atoms will behave classically and therefore the velocity-Verlet algorithm was applied into the simulation, where we&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; have defined the starting positions of the atoms, x&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0) and their velocities at the same time, v&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0). As an example, this algorithm was used in a simple harmonic oscillator: &amp;lt;/span&amp;gt;https://goo.gl/As44o7&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.1 was initially tested. Subsequently, the value of &amp;quot;ERROR&amp;quot; as function of time was investigated and was found that this relationship was given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;y = 0.000422x + 0.000073&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;R-squared value = 0.999977&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The function above remained constant although the value of timestep was varied. It was found that w&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;hen timestep was increased, this will add more cycles to the &amp;quot;ENERGY&amp;quot; and &amp;quot;ERROR&amp;quot; graphs but period remained constant. Amplitude of &amp;quot;ERROR&amp;quot; graph will increase over time leading to bigger magnitude in error. However, the function of maxima in the &amp;quot;ERROR&amp;quot; graph was unchanged. The &amp;quot;ENERGY&amp;quot; graph will also have higher amplitude, hence bigger change in total energy. Timestep must therefore not exceed 0.1990665 for change in total energy to remain below 1%.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The prove of concept is shown here: https://goo.gl/zC9YU9&lt;br /&gt;
&lt;br /&gt;
Moreover, the t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;otal energy of a physical system was measured and expected to remain constant, indicating that the system has completed equilibration and energy has been completely redistributed among the particles in a given system (through collisions) upon the start of the simulation.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Model ===&lt;br /&gt;
A simple particle in a box model was used for all of the simulations. Using LAMMPS, a cubic box of a given length containing a given amount of atoms of mass 1.0 was created. This will form the boundary for the simulations carried out.&lt;br /&gt;
&lt;br /&gt;
For atoms that move beyond this boundary, the periodic boundary conditions was able to correct the atoms&#039; coordinates by allowing its replica to enter from the opposite face.&lt;br /&gt;
&lt;br /&gt;
For instance, a&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;n atom at position (0.5, 0.5, 0.5) in a cubic simulation box which runs from (0, 0, 0) to (1.0, 1.0, 1.0), moving along a vector (0.7, 0.6, 0.2) in a single timestep, its final position is at (1.2, 1.1, 0.7). But after applying periodic boundary conditions, the atom position was corrected to (0.2, 0.1, 0.7).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To give an idea of the number of molecules simulated, the number of moles of 1 ml of water under standard conditions were estimated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of 1 ml water = ρV = 1 g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;n of 1ml water = m/M&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 0.05550843506 mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number of water molecules = nN&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 3.342796 x 10&amp;lt;sup&amp;gt;22&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a large and unsuitable number to simulate. A value of 10000 would be more reasonable, thus the volume of 10000 water molecules was calculated to give a better perspective:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For 10000 water molecules, n of water = n.o.m./N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 1.660539&lt;br /&gt;
x 10&amp;lt;sup&amp;gt;-20&amp;lt;/sup&amp;gt; mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of water = nM&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V of water = m/ρ = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; ml&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Forcefield ===&lt;br /&gt;
The Lennard-Jones potential, which fits well into the physic of the simulation, was utilised knowing that the force acting on the atoms depended on the potential they experienced. At longer distances however, this interaction will be so small that it can be negligible, so a cutoff point of 3.0&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ was put in place.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Lennard-Jones Potential, U = 4ε [(σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To understand the relationship better, the separation &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; at which the potential of zero was evaluated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;When U=0, (σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Let (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = y, thus y&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;-y = 0, y(y-1) = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore, y=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0, undefined; (y-1)=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;= 1, hence R=r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;=σ (F = repulsive force)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along with the separation at equilibrium and hence the well depth &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ϕ(r&amp;lt;sub&amp;gt;eq),&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;At equilibrium, F=0 (minimum), dU/dR = -48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&lt;br /&gt;
+ 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For turning point, dU/dR = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;),&lt;br /&gt;
(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)/(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;, R&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;=2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;,&lt;br /&gt;
hence R=(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)σ, R=r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;=1.12246σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore well depth, ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;)&lt;br /&gt;
- (σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;)]&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(1/4)-(1/2)], ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = -ε (minimum)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Moreover, the values of integrals of 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, 2.5 σ and 3 σ to infinity were calculated respectively:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;∫ϕ(r)dr = -1/3εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;), and when σ=ε=1,&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.020671&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2.5 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) &#039;&#039;+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0068127&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 3 &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0027416&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
The quantities used in the simulation were treated and divided with a scaling factor, such as &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ or &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ε, to ensure that our results were more manageable. For example, for argon with Lennard-Jones (LJ) parameters σ = 0.34nm and ε/&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; = 120K, its LJ cutoff r* = 3.2 in real units was:&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r=r*σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r = 3.2(0.34 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt;) = 1.088 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; m&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, its well depth in real units was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = ε = k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T x N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ε = (1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(120 K)(6.02214 x 10&amp;lt;sup&amp;gt;23 &amp;lt;/sup&amp;gt;&#039;&#039;mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; = 0.997735 kJ mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, the reduced temperature T* = 1.5 can be calculated in real units:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = T*ε/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = 1.5(997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)/(1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(6.02214 &#039;&#039;x 10&amp;lt;sup&amp;gt;23&amp;lt;/sup&amp;gt; mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 180 K&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lattice Structure ===&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Giving atoms random starting coordinates can be problematic as this may generate two atoms close to each other in our simulation, where if the separation between them was below σ, this can cause a strong (or even infinite) repulsion pushing the atoms apart. Therefore, the atoms were initially created in a 3D simple cubic (sc) lattice.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given that the number density (N/V) of lattice points was 0.8, the lattice spacing was found to be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number density, ρ=N/V, V=N/ρ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V = 1/0.8 = 1.25&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;L&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;attice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√1.25 = 1.07722&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or a face-centred cubic (fcc) lattice with number density 1.2, its lattice spacing was calculated:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.2 = 3.33333&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√3.33333 = 1.49380&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Furthermore, a simulation sc box of width 10 was created as a control. Within this region, there were &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;4000 atoms present (4 atoms in each unit cell where there are 10x10x10 = 1000 unit cells). Following this, the mass and pair coefficient of the each type of atom were assigned as below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Definitions for each line in the command code are provided as such:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Assigning mass of value 1.0 to all type 1 atoms&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Specifying a standard 12/6 Lennard-Jones potential with no Coulomb between atom pairs with global LJ cutoff set to distance r*=3.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Setting the pairwise forcefield coefficients for the&lt;br /&gt;
symmetric I,J interaction to the same value of 1.0 for all (given by asterisk) type 1 with type 1 atom pairs&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Timestep Optimisation ===&lt;br /&gt;
The code below was written in the input script with the timestep taking a value of 0.001:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### SPECIFY TIMESTEP ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable timestep equal 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable n_steps equal floor(100/${timestep})&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep ${timestep}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### RUN SIMULATION ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run ${n_steps}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: T&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he variable command is a loop which was assigned a value that is later evaluated in the input script, where in this case timestep was equal to 0.001. This is useful because the defined value can be referenced in subsequent variables, therefore making it reusable and eliminating the need to repeatedly input the value 0.001. For instance, the defined timestep was used in the math function &amp;quot;floor&amp;quot; assigned to variable n_step and subsequently the value n_step is used in the &amp;quot;run&amp;quot; command. Hence, this coding method will be more pragmatic than just writing the script simply as:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choosing the correct timestep was crucial for the subsequent simulations which were undertaken. To determine the optimum timestep, simulations using different timesteps (0.001, 0.0025, 0.0075, 0.01 and 0.015) were tested. To illustrate that the simulation had equilibrated, the graphs of total e&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;nergy, temperature and pressure against time were plotted for the 0.001 timestep experiment:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_1.jpg|&#039;&#039;&#039;Figure 1:&#039;&#039;&#039; Total energy against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_2.jpg|&#039;&#039;&#039;Figure 2:&#039;&#039;&#039; Temperature against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_3.jpg|&#039;&#039;&#039;Figure 3:&#039;&#039;&#039; Pressure against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the plots above, the simulation did achieve equilibrium and the values of total energy, temperature and pressure had converged to a constant average (within a certain degree of error) at approximately 0.5 s into the simulation.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_4.jpg|&#039;&#039;&#039;Figure 4:&#039;&#039;&#039; Single plot of total energy against time for all five timesteps.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Among the five timesteps, 0.001 was most likely to give acceptable results. The data obtained was of high resolution, with the smallest interval between data points. The simulation was said to give the best representation of a physical reality being investigated. On the other hand, a timestep of 0.015 was the least suitable choice because the total energy does not converge. The energy initially stabilised but subsequently diverged (increased) after 20 s and thus system has not fully equilibrated. To give the best balance between resolution and speed (time taken to complete a simulation), timestep within the acceptable range of 0.001 to 0.003 were used. Any timestep above 0.003 would not properly allow for total energy to converge and gives a large gap between data points.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== LAMMPS Toolkit ===&lt;br /&gt;
The LAMMPS Molecular Dynamics Simulator is an extremely useful simulation software containing a vast array of tools that was further utilised throughout this experiment. Among them were the &amp;quot;variable&amp;quot; and &amp;quot;thermo_style&amp;quot; commands used in changing ensembles and measuring thermodynamics properties respectively, which were crucial in obtaining key data. Towards the end of the investigation, the usage of the radial distribution function (RDF), mean squared displacement (MSD) and velocity autocorrelation function (VACF) were also explored and applied into many of the simulations conducted.&lt;br /&gt;
&lt;br /&gt;
=== Visual Molecular Dynamics (VMD) ===&lt;br /&gt;
To help visualise some of the simulations, LAMMPS was also supported by the VMD 3D graphics programme that was able to read trajectory (.trj) files in order to display our simulation through multiple modes and perspectives. This software was also used to conduct further calculations such as evaluating running integrals for the RDF.&lt;br /&gt;
&lt;br /&gt;
== Results and Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== NpT Ensemble ===&lt;br /&gt;
For this section of the investigation, the simulation has been modified so that it can run under NpT conditions (called the isobaric-isothermal ensemble in statistical mechanics) to understand what changes to thermodynamic properties occur at this particular experimental condition. The data collected was used to plot an equation of state at atmospheric pressure for the case of our model fluid.&lt;br /&gt;
&lt;br /&gt;
Five values of temperature (2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;.0, 2.5, 3.0, 3.5, 4.0&amp;lt;/span&amp;gt;) and two values of pressure (3.0, 4.0) given in Lennard-Jones units were chosen based on the results of the optimisation test ran earlier. The timestep was set to 0.0025 and the input script modified accordingly for all ten (p,T) phase points before being submitted to LAMMPS.&lt;br /&gt;
&lt;br /&gt;
==== 1. Controlling Temperature ====&lt;br /&gt;
In general, temperature, T at a given time during the course of the simulation will be prone to fluctuations and will differ slightly from the intended temperature of the system, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;𝛕 (value specified in the input script). However, T can be easily controlled by multiplying each velocity term of each atom by a constant factor, γ whereby:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The kinetic energy of the system can be written as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T &#039;&#039;&#039;&#039;&#039;(Eq. 1)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;𝛕 &#039;&#039;&#039;&#039;&#039;(Eq. 2)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Dividing (Eq. 2) by (Eq. 1):&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)/( v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;) = 𝛕/T&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 𝛕/T, thus γ = √(𝛕/T)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, the value of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;γ can be determined and used to correct any deviations in T.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Sampling and Averaging ====&lt;br /&gt;
In the input script, there were lines entered as:&lt;br /&gt;
 fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
 run 100000&lt;br /&gt;
These lines were needed to measure key thermodynamics properties such as density, temperature and pressure respectively. Most importantly, the values 100, 1000 and 100000 play a vital role in directing how often these properties are averaged and how many measurements contribute to the final average. Each number is represented as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100 = Nevery&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1000 = Nrepeat&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100000 = Nfreq&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The three arguments above specify the timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a multiple of 100000. The average is over 1000 quantities, computed in the preceding portion of the simulation every 100 timesteps. Nfreq must be a multiple of Nevery and Nevery must be non-zero even if Nrepeat is 1. Also, the timesteps contributing to the average value cannot overlap, i.e. Nrepeat*Nevery cannot exceed Nfreq.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;, by referring to the log (.log) output file, the amount of time that have been simulated for this investigation was 50 s.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Equation of State ====&lt;br /&gt;
The density of the system obtained from the log files were plotted against temperature for both of pressures that were simulated, including error bars. Also included in the graphs was a curve for the expected densities as predicted by the ideal gas law, pV =NkT. &amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_5.jpg|&#039;&#039;&#039;Figure 5:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 3.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_6.jpg|&#039;&#039;&#039;Figure 6:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 4.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;It was found that the&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulated density was always lower than the values predicted by the ideal gas law for a given pressure. This was because for an ideal gas, there was no interactions between the atoms whereas the atoms in our simulation had been modeled using a forcefield of the Lennard-Jones potential. Moreover, the discrepancy between the observed and predicted values of density increased with pressure, especially at the lower temperatures where the deviation was larger.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== NVT Ensemble ===&lt;br /&gt;
&lt;br /&gt;
==== 1. Heat Capacity ====&lt;br /&gt;
In a particular system where temperature was fixed, thermodynamic properties such as total energy were likely to fluctuate from its constant average and these fluctuations gives rise to the heat capacity, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv&amp;lt;/span&amp;gt; where its value can be calculated using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv = δE/δT = N&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.Var(E)/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, it was important to note that the simulation carried out here was altered to NVT conditions (canonical ensemble). As with the previous simulation, ten phase points was ran, but this time requiring five values of temperature (2.0, 2.2, 2.4, 2.6, 2.8) and two values of density (0.2, 0.8). A copy of the modified input script for NVT is attached below to highlight the changes made:&lt;br /&gt;
&lt;br /&gt;
https://goo.gl/5GnrfV&lt;br /&gt;
&lt;br /&gt;
Once data was collected from the log files, the graph of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Cv/V against average temperature was plotted on the same axes, where V was the volume of the simulation cell.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_7.jpg|&#039;&#039;&#039;Figure 7:&#039;&#039;&#039; A plot of heat capacity over volume as a function of average temperature&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the results obtained, this was not the trend that was expected. The data supposed to show a constant heat capacity for both densities, but instead heat capacity decreases when temperature was increased. Comparing both sets of data, for a system having a higher density, its heat capacity will be raised.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Radial Distribution Function (RDF) ===&lt;br /&gt;
&lt;br /&gt;
=== Diffusion Coefficient ===&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement (MSD) ===&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function (VACF) ===&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Fill&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_7.jpg&amp;diff=654534</id>
		<title>File:Dw3015 7.jpg</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_7.jpg&amp;diff=654534"/>
		<updated>2017-12-20T12:59:53Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654533</id>
		<title>Rep:Mod:dw3015 y3c liqsim</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654533"/>
		<updated>2017-12-20T11:59:25Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: /* 3. Equation of State */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Year 3 Computational Labs=&lt;br /&gt;
&lt;br /&gt;
= Molecular Dynamics Simulations of Simple Liquids =&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Aims and Objectives ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
In order for the simulation to replicate a real system as accurately, a few criterion had been defined, namely the simulation model, initial test parameters, forcefield, final parameters and tools used.&lt;br /&gt;
&lt;br /&gt;
=== Velocity-Verlet Algorithm and Timestep ===&lt;br /&gt;
Using approximations, we assumed that atoms will behave classically and therefore the velocity-Verlet algorithm was applied into the simulation, where we&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; have defined the starting positions of the atoms, x&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0) and their velocities at the same time, v&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0). As an example, this algorithm was used in a simple harmonic oscillator: &amp;lt;/span&amp;gt;https://goo.gl/As44o7&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.1 was initially tested. Subsequently, the value of &amp;quot;ERROR&amp;quot; as function of time was investigated and was found that this relationship was given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;y = 0.000422x + 0.000073&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;R-squared value = 0.999977&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The function above remained constant although the value of timestep was varied. It was found that w&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;hen timestep was increased, this will add more cycles to the &amp;quot;ENERGY&amp;quot; and &amp;quot;ERROR&amp;quot; graphs but period remained constant. Amplitude of &amp;quot;ERROR&amp;quot; graph will increase over time leading to bigger magnitude in error. However, the function of maxima in the &amp;quot;ERROR&amp;quot; graph was unchanged. The &amp;quot;ENERGY&amp;quot; graph will also have higher amplitude, hence bigger change in total energy. Timestep must therefore not exceed 0.1990665 for change in total energy to remain below 1%.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The prove of concept is shown here: https://goo.gl/zC9YU9&lt;br /&gt;
&lt;br /&gt;
Moreover, the t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;otal energy of a physical system was measured and expected to remain constant, indicating that the system has completed equilibration and energy has been completely redistributed among the particles in a given system (through collisions) upon the start of the simulation.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Model ===&lt;br /&gt;
A simple particle in a box model was used for all of the simulations. Using LAMMPS, a cubic box of a given length containing a given amount of atoms of mass 1.0 was created. This will form the boundary for the simulations carried out.&lt;br /&gt;
&lt;br /&gt;
For atoms that move beyond this boundary, the periodic boundary conditions was able to correct the atoms&#039; coordinates by allowing its replica to enter from the opposite face.&lt;br /&gt;
&lt;br /&gt;
For instance, a&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;n atom at position (0.5, 0.5, 0.5) in a cubic simulation box which runs from (0, 0, 0) to (1.0, 1.0, 1.0), moving along a vector (0.7, 0.6, 0.2) in a single timestep, its final position is at (1.2, 1.1, 0.7). But after applying periodic boundary conditions, the atom position was corrected to (0.2, 0.1, 0.7).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To give an idea of the number of molecules simulated, the number of moles of 1 ml of water under standard conditions were estimated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of 1 ml water = ρV = 1 g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;n of 1ml water = m/M&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 0.05550843506 mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number of water molecules = nN&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 3.342796 x 10&amp;lt;sup&amp;gt;22&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a large and unsuitable number to simulate. A value of 10000 would be more reasonable, thus the volume of 10000 water molecules was calculated to give a better perspective:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For 10000 water molecules, n of water = n.o.m./N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 1.660539&lt;br /&gt;
x 10&amp;lt;sup&amp;gt;-20&amp;lt;/sup&amp;gt; mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of water = nM&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V of water = m/ρ = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; ml&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Forcefield ===&lt;br /&gt;
The Lennard-Jones potential, which fits well into the physic of the simulation, was utilised knowing that the force acting on the atoms depended on the potential they experienced. At longer distances however, this interaction will be so small that it can be negligible, so a cutoff point of 3.0&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ was put in place.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Lennard-Jones Potential, U = 4ε [(σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To understand the relationship better, the separation &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; at which the potential of zero was evaluated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;When U=0, (σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Let (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = y, thus y&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;-y = 0, y(y-1) = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore, y=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0, undefined; (y-1)=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;= 1, hence R=r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;=σ (F = repulsive force)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along with the separation at equilibrium and hence the well depth &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ϕ(r&amp;lt;sub&amp;gt;eq),&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;At equilibrium, F=0 (minimum), dU/dR = -48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&lt;br /&gt;
+ 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For turning point, dU/dR = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;),&lt;br /&gt;
(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)/(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;, R&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;=2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;,&lt;br /&gt;
hence R=(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)σ, R=r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;=1.12246σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore well depth, ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;)&lt;br /&gt;
- (σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;)]&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(1/4)-(1/2)], ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = -ε (minimum)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Moreover, the values of integrals of 2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, 2.5σ and 3σ to infinity were calculated respectively:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;∫ϕ(r)dr = -1/3εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;), and when σ=ε=1,&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;)&#039;&#039;&lt;br /&gt;
+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.020671&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2.5&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;)&#039;&#039;&lt;br /&gt;
+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0068127&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 3&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0027416&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
The quantities used in the simulation were treated and divided with a scaling factor, such as &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ or &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ε, to ensure that our results were more manageable. For example, for argon with Lennard-Jones (LJ) parameters σ = 0.34nm and ε/&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; = 120K, its LJ cutoff r* = 3.2 in real units was:&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r=r*σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r = 3.2(0.34 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt;) = 1.088 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; m&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, its well depth in real units was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = ε = k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T x N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ε = (1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(120 K)(6.02214 x 10&amp;lt;sup&amp;gt;23 &amp;lt;/sup&amp;gt;&#039;&#039;mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; = 0.997735 kJ mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, the reduced temperature T* = 1.5 can be calculated in real units:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = T*ε/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = 1.5(997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)/(1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(6.02214 &#039;&#039;x 10&amp;lt;sup&amp;gt;23&amp;lt;/sup&amp;gt; mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 180 K&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lattice Structure ===&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Giving atoms random starting coordinates can be problematic as this may generate two atoms close to each other in our simulation, where if the separation between them was below σ, this can cause a strong (or even infinite) repulsion pushing the atoms apart. Therefore, the atoms were initially created in a 3D simple cubic (sc) lattice.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given that the number density (N/V) of lattice points was 0.8, the lattice spacing was found to be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number density, ρ=N/V, V=N/ρ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V = 1/0.8 = 1.25&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;L&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;attice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√1.25 = 1.07722&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or a face-centred cubic (fcc) lattice with number density 1.2, its lattice spacing was calculated:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.2 = 3.33333&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√3.33333 = 1.49380&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Furthermore, a simulation sc box of width 10 was created as a control. Within this region, there were &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;4000 atoms present (4 atoms in each unit cell where there are 10x10x10 = 1000 unit cells). Following this, the mass and pair coefficient of the each type of atom were assigned as below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Definitions for each line in the command code are provided as such:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Assigning mass of value 1.0 to all type 1 atoms&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Specifying a standard 12/6 Lennard-Jones potential with no Coulomb between atom pairs with global LJ cutoff set to distance r*=3.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Setting the pairwise forcefield coefficients for the&lt;br /&gt;
symmetric I,J interaction to the same value of 1.0 for all (given by asterisk) type 1 with type 1 atom pairs&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Timestep Optimisation ===&lt;br /&gt;
The code below was written in the input script with the timestep taking a value of 0.001:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### SPECIFY TIMESTEP ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable timestep equal 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable n_steps equal floor(100/${timestep})&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep ${timestep}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### RUN SIMULATION ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run ${n_steps}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: T&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he variable command is a loop which was assigned a value that is later evaluated in the input script, where in this case timestep was equal to 0.001. This is useful because the defined value can be referenced in subsequent variables, therefore making it reusable and eliminating the need to repeatedly input the value 0.001. For instance, the defined timestep was used in the math function &amp;quot;floor&amp;quot; assigned to variable n_step and subsequently the value n_step is used in the &amp;quot;run&amp;quot; command. Hence, this coding method will be more pragmatic than just writing the script simply as:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choosing the correct timestep was crucial for the subsequent simulations which were undertaken. To determine the optimum timestep, simulations using different timesteps (0.001, 0.0025, 0.0075, 0.01 and 0.015) were tested. To illustrate that the simulation had equilibrated, the graphs of total e&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;nergy, temperature and pressure against time were plotted for the 0.001 timestep experiment:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_1.jpg|&#039;&#039;&#039;Figure 1:&#039;&#039;&#039; Total energy against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_2.jpg|&#039;&#039;&#039;Figure 2:&#039;&#039;&#039; Temperature against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_3.jpg|&#039;&#039;&#039;Figure 3:&#039;&#039;&#039; Pressure against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the plots above, the simulation did achieve equilibrium and the values of total energy, temperature and pressure had converged to a constant average (within a certain degree of error) at approximately 0.5 s into the simulation.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_4.jpg|&#039;&#039;&#039;Figure 4:&#039;&#039;&#039; Single plot of total energy against time for all five timesteps.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Among the five timesteps, 0.001 was most likely to give acceptable results. The data obtained was of high resolution, with the smallest interval between data points. The simulation was said to give the best representation of a physical reality being investigated. On the other hand, a timestep of 0.015 was the least suitable choice because the total energy does not converge. The energy initially stabilised but subsequently diverged (increased) after 20 s and thus system has not fully equilibrated. To give the best balance between resolution and speed (time taken to complete a simulation), timestep within the acceptable range of 0.001-0.003 were used. Any timestep above 0.003 would not properly allow for total energy to converge and gives a large gap between data points.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== LAMMPS Toolkit ===&lt;br /&gt;
The LAMMPS Molecular Dynamics Simulator is an extremely useful simulation software containing a vast array of tools that was further utilised throughout this experiment. Among them were the &amp;quot;variable&amp;quot; and &amp;quot;thermo_style&amp;quot; commands used to change ensemble and measure thermodynamics properties respectively, which were crucial in obtaining data. Towards the end of the investigation, the usage of the radial distribution function (RDF), mean squared displacement (MSD) and velocity autocorrelation function (VACF) were also explored and applied into many of the simulations conducted.&lt;br /&gt;
&lt;br /&gt;
=== Visual Molecular Dynamics (VMD) ===&lt;br /&gt;
To help visualise some of the simulations, LAMMPS was also supported by the VMD 3D graphics programme that was able to read trajectory (.trj) files in order to display our simulation through multiple modes and perspectives. This software was also used to conduct further calculations such as evaluating running integrals for the RDF.&lt;br /&gt;
&lt;br /&gt;
== Results and Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== NpT Ensemble ===&lt;br /&gt;
For this section of the investigation, the simulation has been modified so that it can run under NpT conditions (called the isobaric-isothermal ensemble in statistical mechanics) to understand what changes to thermodynamic properties occur at this particular experimental condition. The data collected was used to plot an equation of state at atmospheric pressure for the case of our model fluid.&lt;br /&gt;
&lt;br /&gt;
Five values of temperature (2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;.0, 2.5, 3.0, 3.5, 4.0&amp;lt;/span&amp;gt;) and two values of pressure (3.0, 4.0) given in Lennard-Jones units were chosen based on the results of the optimisation test ran earlier. The timestep was set to 0.0025 and the input script modified accordingly for all ten (p,T) phase points before being submitted to LAMMPS.&lt;br /&gt;
&lt;br /&gt;
==== 1. Controlling Temperature ====&lt;br /&gt;
In general, temperature, T at a given time during the course of the simulation will be prone to fluctuations and will differ slightly from the intended temperature of the system, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;𝛕 (value specified in the input script). However, T can be easily controlled by multiplying each velocity term of each atom by a constant factor, γ whereby:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The kinetic energy of the system can be written as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T &#039;&#039;&#039;&#039;&#039;(Eq. 1)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;𝛕 &#039;&#039;&#039;&#039;&#039;(Eq. 2)&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Dividing (Eq. 2) by (Eq. 1):&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)/( v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;) = 𝛕/T&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 𝛕/T, thus γ = √(𝛕/T)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, the value of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;γ can be determined and used to correct any deviations in T.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Sampling and Averaging ====&lt;br /&gt;
In the input script, there were lines entered as:&lt;br /&gt;
 fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
 run 100000&lt;br /&gt;
In order to measure key thermodynamics properties such as density, temperature and pressure respectively. Most importantly, the values 100, 1000 and 100000 play a vital role in directing how often these properties are averaged and how many measurements contribute to the final average. Each number is represent as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100 = Nevery&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;1000 = Nrepeat&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;100000 = Nfreq&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The three arguments above specify the timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a multiple of 100000. The average is over 1000 quantities, computed in the preceding portion of the simulation every 100 timesteps. Nfreq must be a multiple of Nevery and Nevery must be non-zero even if Nrepeat is 1. Also, the timesteps contributing to the average value cannot overlap, i.e. Nrepeat*Nevery cannot exceed Nfreq.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;, by referring to the log (.log) output file, the amount of time that have been simulated for this investigation was 50 s.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Equation of State ====&lt;br /&gt;
The density of the system obtained from the log files were plotted against temperature for both of pressures that were simulated, including error bars. Also included in the graphs was a curve for the expected densities as predicted by the ideal gas law, pV =NkT. &amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_5.jpg|&#039;&#039;&#039;Figure 5:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 3.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_6.jpg|&#039;&#039;&#039;Figure 6:&#039;&#039;&#039; Density as a function of temperature at pressure, p = 4.0&lt;br /&gt;
&amp;lt;/gallery&amp;gt;It was found that the&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; simulated density was always lower than the values predicted by the ideal gas law for a given pressure. This was because for an ideal gas, there was no interactions between the atoms whereas the atoms in our simulation had been modeled using a forcefield of the Lennard-Jones potential. Moreover, the discrepancy between the observed and predicted values of density increased with pressure, especially at the lower temperatures where the deviation was larger.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== NVT Ensemble ===&lt;br /&gt;
&lt;br /&gt;
=== Radial Distribution Function (RDF) ===&lt;br /&gt;
&lt;br /&gt;
=== Diffusion Coefficient ===&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement (MSD) ===&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function (VACF) ===&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Fill&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654526</id>
		<title>Rep:Mod:dw3015 y3c liqsim</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=Rep:Mod:dw3015_y3c_liqsim&amp;diff=654526"/>
		<updated>2017-12-20T11:45:11Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: /* Results and Discussion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Year 3 Computational Labs=&lt;br /&gt;
&lt;br /&gt;
= Molecular Dynamics Simulations of Simple Liquids =&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Aims and Objectives ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
In order for the simulation to replicate a real system as accurately, a few criterion had been defined, namely the simulation model, initial test parameters, forcefield, final parameters and tools used.&lt;br /&gt;
&lt;br /&gt;
=== Velocity-Verlet Algorithm and Timestep ===&lt;br /&gt;
Using approximations, we assumed that atoms will behave classically and therefore the velocity-Verlet algorithm was applied into the simulation, where we&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt; have defined the starting positions of the atoms, x&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0) and their velocities at the same time, v&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;(0). As an example, this algorithm was used in a simple harmonic oscillator: &amp;lt;/span&amp;gt;https://goo.gl/As44o7&lt;br /&gt;
&lt;br /&gt;
A timestep of 0.1 was initially tested. Subsequently, the value of &amp;quot;ERROR&amp;quot; as function of time was investigated and was found that this relationship was given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;y = 0.000422x + 0.000073&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;R-squared value = 0.999977&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The function above remained constant although the value of timestep was varied. It was found that w&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;hen timestep was increased, this will add more cycles to the &amp;quot;ENERGY&amp;quot; and &amp;quot;ERROR&amp;quot; graphs but period remained constant. Amplitude of &amp;quot;ERROR&amp;quot; graph will increase over time leading to bigger magnitude in error. However, the function of maxima in the &amp;quot;ERROR&amp;quot; graph was unchanged. The &amp;quot;ENERGY&amp;quot; graph will also have higher amplitude, hence bigger change in total energy. Timestep must therefore not exceed 0.1990665 for change in total energy to remain below 1%.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The prove of concept is shown here: https://goo.gl/zC9YU9&lt;br /&gt;
&lt;br /&gt;
Moreover, the t&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;otal energy of a physical system was measured and expected to remain constant, indicating that the system has completed equilibration and energy has been completely redistributed among the particles in a given system (through collisions) upon the start of the simulation.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Model ===&lt;br /&gt;
A simple particle in a box model was used for all of the simulations. Using LAMMPS, a cubic box of a given length containing a given amount of atoms of mass 1.0 was created. This will form the boundary for the simulations carried out.&lt;br /&gt;
&lt;br /&gt;
For atoms that move beyond this boundary, the periodic boundary conditions was able to correct the atoms&#039; coordinates by allowing its replica to enter from the opposite face.&lt;br /&gt;
&lt;br /&gt;
For instance, a&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;n atom at position (0.5, 0.5, 0.5) in a cubic simulation box which runs from (0, 0, 0) to (1.0, 1.0, 1.0), moving along a vector (0.7, 0.6, 0.2) in a single timestep, its final position is at (1.2, 1.1, 0.7). But after applying periodic boundary conditions, the atom position was corrected to (0.2, 0.1, 0.7).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To give an idea of the number of molecules simulated, the number of moles of 1 ml of water under standard conditions were estimated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of 1 ml water = ρV = 1 g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;n of 1ml water = m/M&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 0.05550843506 mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number of water molecules = nN&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 3.342796 x 10&amp;lt;sup&amp;gt;22&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a large and unsuitable number to simulate. A value of 10000 would be more reasonable, thus the volume of 10000 water molecules was calculated to give a better perspective:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For 10000 water molecules, n of water = n.o.m./N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = 1.660539&lt;br /&gt;
x 10&amp;lt;sup&amp;gt;-20&amp;lt;/sup&amp;gt; mol&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;m of water = nM&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; g&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V of water = m/ρ = 2.991507 x 10&amp;lt;sup&amp;gt;-19&amp;lt;/sup&amp;gt; ml&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Forcefield ===&lt;br /&gt;
The Lennard-Jones potential, which fits well into the physic of the simulation, was utilised knowing that the force acting on the atoms depended on the potential they experienced. At longer distances however, this interaction will be so small that it can be negligible, so a cutoff point of 3.0&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ was put in place.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Lennard-Jones Potential, U = 4ε [(σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To understand the relationship better, the separation &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; at which the potential of zero was evaluated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;When U=0, (σ/R)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;-(σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Let (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = y, thus y&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;-y = 0, y(y-1) = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore, y=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; = 0, undefined; (y-1)=0, (σ/R)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;= 1, hence R=r&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;=σ (F = repulsive force)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along with the separation at equilibrium and hence the well depth &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ϕ(r&amp;lt;sub&amp;gt;eq),&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;At equilibrium, F=0 (minimum), dU/dR = -48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&lt;br /&gt;
+ 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;For turning point, dU/dR = 0&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Thus, 24εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 48εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;),&lt;br /&gt;
(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;(1/R&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt;)/(1/R&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;) = 2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;, R&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;=2σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;,&lt;br /&gt;
hence R=(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)σ, R=r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;=1.12246σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Therefore well depth, ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;)&lt;br /&gt;
- (σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;/(&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;√2)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;σ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;)]&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = 4ε [(1/4)-(1/2)], ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = -ε (minimum)&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Moreover, the values of integrals of 2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, 2.5σ and 3σ to infinity were calculated respectively:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;∫ϕ(r)dr = -1/3εσ&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3εσ&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/R&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;), and when σ=ε=1,&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;)&#039;&#039;&lt;br /&gt;
+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.020671&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 2.5&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;)&#039;&#039;&lt;br /&gt;
+ 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/2.5&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0068127&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For 3&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ, ∫ϕ(r)dr = -1/3(1)(1)&amp;lt;sup&amp;gt;12&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;) + 2/3(1)(1)&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt;(1/3&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;) = 0.0027416&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Reduced Units ===&lt;br /&gt;
The quantities used in the simulation were treated and divided with a scaling factor, such as &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;σ or &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;ε, to ensure that our results were more manageable. For example, for argon with Lennard-Jones (LJ) parameters σ = 0.34nm and ε/&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; = 120K, its LJ cutoff r* = 3.2 in real units was:&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r=r*σ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;r = 3.2(0.34 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt;) = 1.088 x 10&amp;lt;sup&amp;gt;-9&amp;lt;/sup&amp;gt; m&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, its well depth in real units was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ϕ(r&amp;lt;sub&amp;gt;eq&amp;lt;/sub&amp;gt;) = ε = k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T x N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;ε = (1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(120 K)(6.02214 x 10&amp;lt;sup&amp;gt;23 &amp;lt;/sup&amp;gt;&#039;&#039;mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; = 0.997735 kJ mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, the reduced temperature T* = 1.5 can be calculated in real units:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = T*ε/k&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;N&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;T = 1.5(997.73546 J mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)/(1.38065 x 10&amp;lt;sup&amp;gt;-23&amp;lt;/sup&amp;gt; JK&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)(6.02214 &#039;&#039;x 10&amp;lt;sup&amp;gt;23&amp;lt;/sup&amp;gt; mol&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;) = 180 K&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lattice Structure ===&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Giving atoms random starting coordinates can be problematic as this may generate two atoms close to each other in our simulation, where if the separation between them was below σ, this can cause a strong (or even infinite) repulsion pushing the atoms apart. Therefore, the atoms were initially created in a 3D simple cubic (sc) lattice.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given that the number density (N/V) of lattice points was 0.8, the lattice spacing was found to be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Number density, ρ=N/V, V=N/ρ&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V = 1/0.8 = 1.25&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;L&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;attice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√1.25 = 1.07722&amp;lt;/span&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also f&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;or a face-centred cubic (fcc) lattice with number density 1.2, its lattice spacing was calculated:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;V=N/ρ = 4/1.2 = 3.33333&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;Lattice spacing, l = &amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;√3.33333 = 1.49380&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Furthermore, a simulation sc box of width 10 was created as a control. Within this region, there were &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&#039;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&amp;lt;/span&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;4000 atoms present (4 atoms in each unit cell where there are 10x10x10 = 1000 unit cells). Following this, the mass and pair coefficient of the each type of atom were assigned as below:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Definitions for each line in the command code are provided as such:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;mass 1 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Assigning mass of value 1.0 to all type 1 atoms&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_style lj/cut 3.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Specifying a standard 12/6 Lennard-Jones potential with no Coulomb between atom pairs with global LJ cutoff set to distance r*=3.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;pair_coeff * * 1.0 1.0&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Description: Setting the pairwise forcefield coefficients for the&lt;br /&gt;
symmetric I,J interaction to the same value of 1.0 for all (given by asterisk) type 1 with type 1 atom pairs&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Timestep Optimisation ===&lt;br /&gt;
The code below was written in the input script with the timestep taking a value of 0.001:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### SPECIFY TIMESTEP ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable timestep equal 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;variable n_steps equal floor(100/${timestep})&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep ${timestep}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;### RUN SIMULATION ###&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run ${n_steps}&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: T&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;he variable command is a loop which was assigned a value that is later evaluated in the input script, where in this case timestep was equal to 0.001. This is useful because the defined value can be referenced in subsequent variables, therefore making it reusable and eliminating the need to repeatedly input the value 0.001. For instance, the defined timestep was used in the math function &amp;quot;floor&amp;quot; assigned to variable n_step and subsequently the value n_step is used in the &amp;quot;run&amp;quot; command. Hence, this coding method will be more pragmatic than just writing the script simply as:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;timestep 0.001&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;&amp;lt;code&amp;gt;run 100000&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choosing the correct timestep was crucial for the subsequent simulations which were undertaken. To determine the optimum timestep, simulations using different timesteps (0.001, 0.0025, 0.0075, 0.01 and 0.015) were tested. To illustrate that the simulation had equilibrated, the graphs of total e&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;nergy, temperature and pressure against time were plotted for the 0.001 timestep experiment:&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_1.jpg|Total energy against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_2.jpg|Temperature against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_3.jpg|Pressure against time plot for timestep 0.001&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;From the plots above, the simulation did achieve equilibrium and the values of total energy, temperature and pressure had converged to a constant average (within a certain degree of error) at approximately 0.5 s into the simulation.&amp;lt;/span&amp;gt;&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:dw3015_4.jpg|Single plot of total energy against time for all five timesteps.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Among the five timesteps, 0.001 was most likely to give acceptable results. The data obtained was of high resolution, with the smallest interval between data points. The simulation was said to give the best representation of a physical reality being investigated. On the other hand, a timestep of 0.015 was the least suitable choice because the total energy does not converge. The energy initially stabilised but subsequently diverged (increased) after 20 s and thus system has not fully equilibrated. To give the best balance between resolution and speed (time taken to complete a simulation), timestep within the acceptable range of 0.001-0.003 were used. Any timestep above 0.003 would not properly allow for total energy to converge and gives a large gap between data points.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== LAMMPS Toolkit ===&lt;br /&gt;
The LAMMPS Molecular Dynamics Simulator is an extremely useful simulation software containing a vast array of tools that was further utilised throughout this experiment. Among them were the &amp;quot;variable&amp;quot; and &amp;quot;thermo_style&amp;quot; commands used to change ensemble and measure thermodynamics properties respectively, which were crucial in obtaining data. Towards the end of the investigation, the usage of the radial distribution function (RDF), mean squared displacement (MSD) and velocity autocorrelation function (VACF) were also explored and applied into many of the simulations conducted.&lt;br /&gt;
&lt;br /&gt;
=== Visual Molecular Dynamics (VMD) ===&lt;br /&gt;
To help visualise some of the simulations, LAMMPS was also supported by the VMD 3D graphics programme that was able to read trajectory (.trj) files in order to display our simulation through multiple modes and perspectives. This software was also used to conduct further calculations such as evaluating running integrals for the RDF.&lt;br /&gt;
&lt;br /&gt;
== Results and Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== NpT Ensemble ===&lt;br /&gt;
For this section of the investigation, the simulation has been modified so that it can run under NpT conditions (called the isobaric-isothermal ensemble in statistical mechanics) to understand what changes to thermodynamic properties occur at this particular experimental condition. The data collected was used to plot an equation of state at atmospheric pressure for the case of our model fluid.&lt;br /&gt;
&lt;br /&gt;
Five values of temperature (2&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;.0, 2.5, 3.0, 3.5, 4.0&amp;lt;/span&amp;gt;) and two values of pressure (3.0, 4.0) given in Lennard-Jones units were chosen based on the results of the optimisation test ran earlier. The timestep was set to 0.0025 and the input script modified accordingly for all ten (p,T) phase points before being submitted to LAMMPS.&lt;br /&gt;
&lt;br /&gt;
==== 1. Controlling Temperature ====&lt;br /&gt;
In general, temperature, T at a given time during the course of the simulation will be prone to fluctuations and will differ slightly from the intended temperature of the system, &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;𝛕 (value specified in the input script). However, T can be easily controlled by multiplying each velocity term of each atom by a constant factor, γ whereby:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The kinetic energy of the system can be written as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;T (Eq. 1)&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;1/2m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + 1/2m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ 1/2m&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;(γv&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 3/2Nk&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;𝛕 (Eq. 2)&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Dividing (Eq. 2) by (Eq. 1):&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;(γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)/( v&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + v&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2 &amp;lt;/sup&amp;gt;+ v&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;) = 𝛕/T&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;γ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = 𝛕/T, thus γ = √(𝛕/T)&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, the value of &amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;γ can be determined and used to correct any deviations in T.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Sampling and Averaging ====&lt;br /&gt;
In the input script, there were lines entered as:&lt;br /&gt;
 fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2&lt;br /&gt;
 run 100000&lt;br /&gt;
In order to measure key thermodynamics properties such as density, temperature and pressure respectively. Most importantly, the values 100, 1000 and 100000 play a vital role in directing how often these properties are averaged and how many measurements contribute to the final average. Each number is represent as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;100 = Nevery&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;1000 = Nrepeat&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;100000 = Nfreq&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;The three arguments above specify the timesteps the input values will be used in order to contribute to the average. The final averaged quantities are generated on timesteps that are a multiple of 100000. The average is over 1000 quantities, computed in the preceding portion of the simulation every 100 timesteps. Nfreq must be a multiple of Nevery and Nevery must be non-zero even if Nrepeat is 1. Also, the timesteps contributing to the average value cannot overlap, i.e. Nrepeat*Nevery cannot exceed Nfreq.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;EN-GB&amp;quot;&amp;gt;Therefore, the amount of time we have simulated was 50 s.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 3. Equation of State ====&lt;br /&gt;
&lt;br /&gt;
=== NVT Ensemble ===&lt;br /&gt;
&lt;br /&gt;
=== Radial Distribution Function (RDF) ===&lt;br /&gt;
&lt;br /&gt;
=== Diffusion Coefficient ===&lt;br /&gt;
&lt;br /&gt;
=== Mean Squared Displacement (MSD) ===&lt;br /&gt;
&lt;br /&gt;
=== Velocity Autocorrelation Function (VACF) ===&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
Fill&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Fill&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_6.jpg&amp;diff=654516</id>
		<title>File:Dw3015 6.jpg</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_6.jpg&amp;diff=654516"/>
		<updated>2017-12-20T11:11:44Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
	<entry>
		<id>https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_5.jpg&amp;diff=654515</id>
		<title>File:Dw3015 5.jpg</title>
		<link rel="alternate" type="text/html" href="https://chemwiki.ch.ic.ac.uk/index.php?title=File:Dw3015_5.jpg&amp;diff=654515"/>
		<updated>2017-12-20T11:09:26Z</updated>

		<summary type="html">&lt;p&gt;Dw3015: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dw3015</name></author>
	</entry>
</feed>